Commit 42ab53da authored by Jens Finke's avatar Jens Finke Committed by Jens Finke

Added *.spec[.in] and xml-i18n-*.in files.

2001-08-08  Jens Finke <jens@gnome.org>

	* Makefile.am (EXTRA_DIST): Added *.spec[.in] and xml-i18n-*.in
	files.

	* configure.in: Added *_REQUIRED variables and appropriate
	AC_SUBST calls, use *_REQUIRED vars in CHECK_LIB macro, generate
	gdl.spec.

	* scintilla-control/Makefile.am: Removed duplicated EXTRA_DIST.
parent 626a6d09
2001-08-08 Jens Finke <jens@gnome.org>
* Makefile.am (EXTRA_DIST): Added *.spec[.in] and xml-i18n-*.in
files.
* configure.in: Added *_REQUIRED variables and appropriate
AC_SUBST calls, use *_REQUIRED vars in CHECK_LIB macro, generate
gdl.spec.
* scintilla-control/Makefile.am: Removed duplicated EXTRA_DIST.
2001-07-20 Dave Camp <dave@ximian.com>
* Applied a patch from Gustavo M. Giraldez <gustavo.giraldez@gmx.net>
......
......@@ -18,6 +18,11 @@ EXTRA_DIST = \
gdl.m4 \
gdlConf.sh.in \
MAINTAINERS \
AUTHORS
AUTHORS \
gdl.spec.in \
gdl.spec \
xml-i18n-extract.in \
xml-i18n-merge.in \
xml-i18n-update.in
CLEANFILES = gdlConf.sh
AC_INIT(gdlConf.sh.in)
dnl ==========================================================================
dnl
dnl If you add a version number here, you *must* add an AC_SUBST line for
dnl it too, or it will never make it into the spec file!
dnl
dnl ==========================================================================
GTK_REQUIRED=1.2.0
GNOME_LIBS_REQUIRED=1.2.9
BONOBO_REQUIRED=1.0.7
OAF_REQUIRED=0.6.5
GNOME_VFS_REQUIRED=1.0
AC_SUBST(GTK_REQUIRED)
AC_SUBST(GNOME_LIBS_REQUIRED)
AC_SUBST(BONOBO_REQUIRED)
AC_SUBST(OAF_REQUIRED)
AC_SUBST(GNOME_VFS_REQUIRED)
dnl ==========================================================================
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gdl,0.1.0)
......@@ -106,11 +128,11 @@ dnl ***************
dnl GNOME Libraries
dnl ***************
CHECK_LIB(gnome-libs, gnome, 1.2.9)
CHECK_LIB(Bonobo, bonobo, 1.0.7)
CHECK_LIB(Bonobo X, bonobox, 1.0.7)
CHECK_LIB(OAF, oaf, 0.6.5)
CHECK_LIB(GNOME-VFS, vfs, 1.0)
CHECK_LIB(gnome-libs, gnome, $GNOME_LIBS_REQUIRED)
CHECK_LIB(Bonobo, bonobo, $BONOBO_REQUIRED)
CHECK_LIB(Bonobo X, bonobox, $BONOBO_REQUIRED)
CHECK_LIB(OAF, oaf, $OAF_REQUIRED)
CHECK_LIB(GNOME-VFS, vfs, $GNOME_VFS_REQUIRED)
IDL_CFLAGS=`gnome-config --cflags idl`
......@@ -146,4 +168,5 @@ scintilla-control/scintilla/Makefile
intl/Makefile
po/Makefile.in
stamp.h
gdl.spec
],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
Name: gdl
Summary: Components and library for GNOME development tools.
Version: @VERSION@
Release: 1
License: GPL
Group: Development/Libraries
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
URL: http://www.gnome.org
Requires: oaf >= @OAF_REQUIRED@
Requires: gnome-vfs >= @GNOME_VFS_REQUIRED@
Requires: gnome-libs >= @GNOME_LIBS_REQUIRED@
Requires: bonobo >= @BONOBO_REQUIRED@
BuildRequires: gtk+-devel >= @GTK_REQUIRED@
BuildRequires: oaf-devel >= @OAF_REQUIRED@
BuildRequires: gnome-vfs-devel >= @GNOME_VFS_REQUIRED@
BuildRequires: gnome-libs-devel >= @GNOME_LIBS_REQUIRED@
BuildRequires: bonobo-devel >= @BONOBO_REQUIRED@
%description
This package contains components and libraries that are intended to be
shared between GNOME development tools, including gnome-debug,
gnome-build, and gIDE.
The current pieces of GDL include:
- A code-editing bonboo component based on the Scintilla
widget (scintilla-control).
- A utility library that also contains the stubs and skels for
the above components (gdl).
%package devel
Summary: Libraries and include files for gdl.
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Libraries and header files if you want to make use of the gdl library in your
own programs.
%prep
%setup -q
%build
./configure --prefix=%{_prefix} \
--bindir=%{_bindir} --mandir=%{_mandir} \
--localstatedir=%{_localstatedir} --libdir=%{_libdir} \
--datadir=%{_datadir} --includedir=%{_includedir} \
--sysconfdir=%{_sysconfdir}
CFLAGS="$RPM_OPT_FLAGS" make
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
datadir=$RPM_BUILD_ROOT%{_datadir} \
includedir=$RPM_BUILD_ROOT%{_includedir} \
sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_datadir}/aclocal/gdl.m4
%{_datadir}/gnome/ui/*.xml
%{_datadir}/oaf/*.oaf
%files devel
%defattr (-, root, root)
%{_includedir}/gdl
%{_libdir}/*a
%{_libdir}/*so
%{_libdir}/*sh
%{_datadir}/idl/*.idl
%changelog
* Wed Aug 8 2001 Jens Finke <jens@gnome.org>
- created spec file
\ No newline at end of file
......@@ -13,8 +13,6 @@ INCLUDES = \
uidir = $(datadir)/gnome/ui
ui_DATA = scintilla-ui.xml
EXTRA_DIST = $(oaf_DATA) $(ui_DATA)
bin_PROGRAMS = scintilla-control
noinst_PROGRAMS = test-scintilla
......@@ -68,4 +66,4 @@ oaf_DATA = $(oaf_in_files:.oaf.in=.oaf)
@XML_I18N_MERGE_OAF_RULE@
EXTRA_DIST=$(oaf_in_files) $(oaf_DATA)
\ No newline at end of file
EXTRA_DIST=$(oaf_in_files) $(oaf_DATA) $(ui_DATA)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment