%define _localstatedir %{_var}/lib Name: gal Version: 0.8.99.8 Release: snap_2001_07_11_11amPDT BuildRoot: %{_tmppath}/%{name}-%{version}-root Summary: The G App library. License: GPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gal/%{name}-%{version}.tar.gz Requires: libxml >= 1.8.8 Requires: libxml < 2.0.0 Requires: gnome-print >= 0.22 Requires: libglade >= 0.13 Requires: gtk+ >= 1.2.7 BuildRequires: flex, bison, xml-i18n-tools, gnome-vfs-devel, xml-i18n-tools BuildRequires: gnome-libs-devel, gdk-pixbuf-devel, db1-devel BuildRequires: libxml-devel < 2.0.0 BuildRequires: gnome-print-devel >= 0.22 BuildRequires: libglade-devel >= 0.13 BuildRequires: gtk+-devel >= 1.2.7 %description Reuseable GNOME library functions. %package devel Summary: Libraries and include files for the G App library. Group: Development/Libraries Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel The gal-devel package includes the static libraries and header files for the gal package. Install gal-devel if you want to develop programs which will use gal. %prep %setup -q %build CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; ./configure %{_target_platform} \ --prefix=%{_prefix} \ --exec-prefix=%{_exec_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --libdir=%{_libdir} \ --libexecdir=%{_libexecdir} \ --localstatedir=%{_localstatedir} \ --sharedstatedir=%{_sharedstatedir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} %__make %install if test "$RPM_BUILD_ROOT" != "/"; then rm -rf $RPM_BUILD_ROOT fi %{__make} \ prefix=%{?buildroot:%{buildroot}}%{_prefix} \ exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \ bindir=%{?buildroot:%{buildroot}}%{_bindir} \ sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \ sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \ datadir=%{?buildroot:%{buildroot}}%{_datadir} \ libdir=%{?buildroot:%{buildroot}}%{_libdir} \ libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \ localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \ sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \ mandir=%{?buildroot:%{buildroot}}%{_mandir} \ infodir=%{?buildroot:%{buildroot}}%{_infodir} \ install %{find_lang} %{name} %clean if test "$RPM_BUILD_ROOT" != "/"; then rm -rf $RPM_BUILD_ROOT fi %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-, root, root) %doc README AUTHORS COPYING ChangeLog NEWS %{_datadir}/etable/%{version} %{_datadir}/gal/%{version} %{_datadir}/gal/html %{_libdir}/*.so.* %files devel %defattr(-, root, root) %{_libdir}/*.sh %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_includedir}/* %changelog * Fri May 4 2001 Peter Bowen - Macroize * Thu Mar 15 2001 Matthew Wilson - the -devel package must own the /usr/include/gal directory and all its contents * Fri Oct 10 2000 John Gotts - Created spec file.