Name: halevt Version: 0.1.6.2 Release: 1%{?dist} Summary: Generic handler for HAL events Group: Applications/System License: GPLv2+ URL: http://www.nongnu.org/halevt/ Source0: http://savannah.nongnu.org/download/halevt/halevt-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: dbus-glib-devel hal-devel libxml2-devel boolstuff-devel >= 0.1.12 BuildRequires: gettext pkgconfig %{_bindir}/makeinfo %{_bindir}/man2html Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(post): info Requires(preun): info Requires(pre): shadow-utils %description Halevt (HAL events manager) is a daemon that executes arbitrary commands when a device with certain properties is added to the system and when device properties change. Halevt uses HAL to monitor the state of your system's hardware. Halevt comes with halevt-mount a program able to use HAL to mount, umount devices and keep a list of devices handled by halevt-mount. %prep %setup -q %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' rm -f $RPM_BUILD_ROOT%{_infodir}/dir mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d #remove some example scripts from the default bindir rm -f $RPM_BUILD_ROOT%{_bindir}/*sh rm examples/Make* install -m 0755 -p halevt-initscript $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/halevt %find_lang %{name} %find_lang %{name}-mount cat %{name}-mount.lang >> %{name}.lang %clean rm -rf $RPM_BUILD_ROOT %pre getent group halevt >/dev/null || groupadd -r halevt getent passwd halevt >/dev/null || \ useradd -r -g halevt -d %{_localstatedir}/lib/halevt -s /sbin/nologin \ -c "Halevt system user" halevt exit 0 %post # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add halevt /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/service halevt stop >/dev/null 2>&1 || : /sbin/chkconfig --del halevt /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING AUTHORS README NEWS examples/ %doc doc/*.html %dir %{_sysconfdir}/halevt %{_sysconfdir}/rc.d/init.d/halevt %{_bindir}/halevt %{_bindir}/halevt-mount %{_bindir}/halevt-umount %{_bindir}/hvmount %{_bindir}/hvumount %{_infodir}/halevt.info* %{_mandir}/man1/halevt*.1* %{_mandir}/man1/hvmount*.1* %dir %attr(750,halevt,halevt) %{_localstatedir}/run/halevt %dir %attr(755,halevt,halevt) %{_localstatedir}/lib/halevt %changelog * Sun Jun 6 2010 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 0.1.6.2-1 - update to 0.1.6.2 - adjust %%Source, %%URL, %%description and %%files * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jul 10 2008 Patrice Dumas <pertusus@free.fr> 0.1.2-1 - update to 0.1.2 * Sat Jun 14 2008 Patrice Dumas <pertusus@free.fr> 0.1.1-1 - update to 0.1.1 * Mon Jun 9 2008 Patrice Dumas <pertusus@free.fr> 0.1.0-2 - update to 0.1.0 * Sat May 24 2008 Patrice Dumas <pertusus@free.fr> 0.0.9-1 - update to 0.0.9 * Mon Mar 10 2008 Patrice Dumas <pertusus@free.fr> 0.0.8-1 - update to 0.0.8 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.0.7-2 - Autorebuild for GCC 4.3 * Thu Jan 10 2008 Patrice Dumas <pertusus@free.fr> 0.0.7-1 - initial release