%define name drivel %define version 1.2.2 %define release 1 %define prefix /usr %define sysconfdir /etc %define gettext_package drivel Summary: A LiveJournal client Name: %{name} Version: %{version} Release: %{release} Epoch: 1 License: GPL Group: Applications Vendor: Dropline Systems Url: http://www.dropline.net/drivel Source: %{name}-%{version}.tar.bz2 Packager: Todd Kulesza BuildRoot: /var/tmp/%{name}-%{version}-root Requires: glib2 >= 2.4.0 Requires: gtk2 >= 2.4.0 Prefix: %{prefix} %description Drivel is an advanced LiveJournal client for the GNOME desktop. While maintaining a full set of features, it had been designed with usability in mind, and presents an elegant user interface. %prep %setup -q %build %configure --disable-schemas-install make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # Remove the Shared MIME Database files, these need to be created after # package installation /bin/rm -f %{buildroot}/%{_datadir}/mime/XMLnamespaces /bin/rm -f %{buildroot}/%{_datadir}/mime/globs /bin/rm -f %{buildroot}/%{_datadir}/mime/magic /bin/rm -f %{buildroot}/%{_datadir}/mime/application/x-drivel.xml %clean rm -rf $RPM_BUILD_ROOT # Clean out files that should not be part of the rpm. # This is the recommended way of dealing with it for RH8 rm -rf $RPM_BUILD_ROOT/var/scrollkeeper/* %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` SCHEMAS="drivel.schemas" for S in $SCHEMAS; do gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null done if (update-mime-database -v &> /dev/null); then update-mime-database "%{_datadir}/mime" > /dev/null fi /sbin/ldconfig %postun if (update-mime-database -v &> /dev/null); then update-mime-database "%{_datadir}/mime" > /dev/null fi /sbin/ldconfig /bin/true ## for rpmlint, -p requires absolute path and is just dumb %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{_bindir}/drivel %{_datadir}/applications/drivel.desktop %{_datadir}/application-registry/drivel.applications %{_datadir}/drivel/glade/drivel.glade %{_datadir}/drivel/languages/livejournal.lang %{_datadir}/gnome/help/drivel/* %{_datadir}/locale/* %{_datadir}/mime/packages/drivel.xml %{_datadir}/mime-info/drivel.keys %{_datadir}/mime-info/drivel.mime %{_datadir}/omf/drivel/drivel-C.omf %{_datadir}/pixmaps/livejournal.png %{_datadir}/pixmaps/gnome-application-x-drivel.png %{_datadir}/pixmaps/drivel/*.png %{_datadir}/pixmaps/drivel/*.xpm %config %{_sysconfdir}/gconf/schemas/* %changelog * Sat Aug 28 2004 Todd Kulesza - Add a user manual. * Sat Jul 31 2004 Todd Kulesza - Add Shared MIME Database support.