2003-07-16 Mark McLoughlin <
[email protected]>
* *.spec: its RPM_OPT_FLAGS not RPM_OPT_CFLAGS.
Name: libgnome
License: LGPL
Group: System/Libraries/GNOME
Version: 2.2.0.1
Release: 8
Distribution: Mercury
Vendor: Sun Microsystems, Inc.
Summary: GNOME Base Library
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome/libgnome-%{version}.tar.bz2
Source1: warped.png
Source2: libgnome-l10n-po.tar.bz2
Patch0: libgnome-01-default-background.diff
Patch1: libgnome-02-default-theme.diff
Patch2: libgnome-03-potfiles_in.diff
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: on
%define GConf_version 2.2.0
%define gnome_vfs_version 2.2.3
%define libbonobo_version 2.2.1
%define libxslt_version 1.0.19
%define audiofile_version 0.2.3
%define esound_version 0.2.28
%define gtk_doc_version 1.0
%define popt_version 1.6.4
BuildRequires: GConf-devel >= %{GConf_version}
BuildRequires: libbonobo-devel >= %{libbonobo_version}
BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version}
BuildRequires: libxslt-devel >= %{libxslt_version}
BuildRequires: esound-devel >= %{esound_version}
BuildRequires: audiofile-devel >= %{audiofile_version}
BuildRequires: gtk-doc >= %{gtk_doc_version}
BuildRequires: popt-devel >= %{popt_version}
Requires: GConf >= %{GConf_version}
Requires: libbonobo >= %{libbonobo_version}
Requires: esound >= %{esound_version}
Requires: audiofile >= %{audiofile_version}
Requires: libxslt >= %{libxslt_version}
%description
libgnome is one of the base GNOME libraries, containing convenient API for
configuration, help, initialization and web links, all specific to the
GNOME desktop.
%package devel
Summary: GNOME Base Development Library
Group: Development/Libraries/GNOME
Requires: %name = %version-%release
Requires: popt-devel >= %{popt_version}
Requires: libbonobo-devel >= %{libbonobo_version}
%description devel
libgnome is one of the base GNOME libraries, containing convenient API for
configuration, help, initialization and web links, all specific to the
GNOME desktop.
%prep
%setup
%patch0
%patch1 -p1
tar -jxf %SOURCE2
%patch2 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--disable-gtk-doc
make
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=$RPM_BUILD_ROOT install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds
cp %SOURCE1 $RPM_BUILD_ROOT/usr/share/pixmaps/backgrounds
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
SCHEMAS="desktop_gnome_accessibility_keyboard.schemas \
desktop_gnome_applications_browser.schemas \
desktop_gnome_applications_help_viewer.schemas \
desktop_gnome_applications_terminal.schemas \
desktop_gnome_applications_window_manager.schemas \
desktop_gnome_background.schemas \
desktop_gnome_file_views.schemas \
desktop_gnome_interface.schemas \
desktop_gnome_peripherals_keyboard.schemas \
desktop_gnome_peripherals_mouse.schemas \
desktop_gnome_sound.schemas \
desktop_gnome_thumbnailers.schemas \
desktop_gnome_url_handlers.schemas"
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
for S in $SCHEMAS; do
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
done
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_libdir}/gnome-vfs-2.0/modules/*.so
%{_sysconfdir}/sound/events/*.soundlist
%{_sysconfdir}/gconf/schemas/*
%{_libdir}/libgnome*so*
%{_libdir}/bonobo/monikers/*so*
%{_libexecdir}/*
%{_datadir}/pixmaps/backgrounds/*
%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/libgnome-2.0.pc
%{_includedir}/libgnome-2.0/libgnome/*.h
%{_datadir}/gtk-doc/*
%{_datadir}/sgml/*
%{_libdir}/*a
%changelog -n libgnome
* Thu Jul 10 2003 - [email protected]
- Added .po tarball
* Thu Jul 03 2003 - [email protected]
- Remove the joint theme/background patch and separate them
out
* Wed Apr 30 2003 - [email protected]
- Create new spec file for libgnome