All pastes #413478 Raw Edit

Mine

public text v1 · immutable
#413478 ·published 2007-03-28 13:33 UTC
rendered paste body
%{!?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 scrollkeeper
Requires(preun):  GConf2 
Requires(postun): scrollkeeper

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
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper

%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 || :
scrollkeeper-update -q || :

%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

%postun
scrollkeeper-update -q || :


%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
%{_datadir}/omf/*


%changelog
* Wed Mar 28 2007 Damien Durand <splinux@fedoraproject.org> - 0.3.0-1
- Initial RPM release