Name: minbar Version: 0.2.1 Release: 1%{?dist} Summary: Athan call and prayer times notification software Group: User Interface/Desktops License: GPLv2+ URL: http://djihed.com/minbar/ Source0: http://files.djihed.com/%{name}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libitl-devel libglade2.0_0-devel libgstreamer0.10_0.10-devel libgnomecanvas2_0-devel BuildRequires: libGConf2_4-devel libnotify-devel gettext desktop-file-utils BuildRequires: perl(XML::Parser) Requires(post): GConf2 Requires(preun): GConf2 #Requires: %description Minbar is a GNOME GUI with tray icon, for athan call and notifications for Islam prayer times. %prep %setup -q sed -i -e "s|\(Utility;\)\1|\1|" %{name}.desktop.in %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT prefix=%{_exec_prefix} exec_prefix=%{_exec_prefix} INSTALL="install -p" unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL desktop-file-install --vendor="pclos" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ --delete-original \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %find_lang %{name} %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || : fi %post GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %preun if [ "$1" -eq 0 ]; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : fi %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS README NEWS TODO HACKING ChangeLog %{_bindir}/minbar %{_datadir}/applications/pclos-minbar.desktop %{_datadir}/icons/hicolor/*/apps/minbar.png %{_sysconfdir}/gconf/schemas/minbar.schemas %{_mandir}/man1/minbar.1.bz2 %{_datadir}/minbar/ %changelog * Mon Apr 28 2008 Muhammad Suleman Khalid 0.2.1-1 - Initial package. Spec file adopted from the one from fedora source RPM from Mohd Izhar Firdaus Ismail 0.2.1-5. See http://izhar.fedorapeople.org/itl/.