%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: bandsaw Version: 0.3.0 Release: 1%{?dist} Summary: A syslog monitoring program for the GNOME desktop Group: Applications/System License: GPL URL: http://bandsaw.sourceforge.net/ Source0: http://belnet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(pre): GConf2 Requires(post): GConf2 Requires(preun): GConf2 BuildRequires: pygtk2-devel, gnome-python2-devel, gnome-doc-utils %description Band Saw is a syslog monitoring program for the GNOME desktop. It allows the user to setup filters that define which messages should generate alerts. Combined with syslog's remote logging functionality it provides a scalable and easily deployed monitoring solution %prep %setup -q %build %configure --disable-schemas-install --disable-scrollkeeper make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %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 || : killall -HUP gconfd-2 || : fi %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : killall -HUP gconfd-2 || : %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : killall -HUP gconfd-2 || : fi %files %defattr(-,root,root,-) %doc %{_bindir}/%{name} %{python_sitearch}/* %{_datadir}/applications/*.desktop %{_datadir}/%{name} %{_datadir}/omf/%{name} %{_datadir}/gnome/help/%{name} %{_datadir}/pixmaps/%{name} %{_sysconfdir}/gconf/schemas/%{name}.schemas %changelog * Wed Mar 28 2007 Damien Durand - 0.3.0-1 - Initial RPM release