Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > bf0cb782fe3d68c386e7a604ee7e5eba > files > 4

halevt-0.1.5-5mdv2010.1.src.rpm

Name:    halevt
Summary: Generic handler for HAL events
Version: 0.1.5
Release: %mkrel 5
License: GPLv2+
Group:   System/Configuration/Hardware
URL:     http://www.nongnu.org/halevt/
Source0: http://savannah.nongnu.org/download/halevt/%{name}-%{version}.tar.gz
Source1: %{name}.xml
Source2: %{name}-explore-directory
Source3: %{name}-explore-mount
Source4: %{name}.xinit
BuildRoot: %{_tmppath}/%{name}-%{version}

BuildRequires: dbus-glib-devel
BuildRequires: hal-devel
BuildRequires: libxml2-devel
BuildRequires: libboolstuff-devel >= 0.1.12
BuildRequires: gettext
BuildRequires: texinfo
BuildRequires: man

%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. With the default config file, it can handle
the mounting of media as they are inserted/attached to the system.

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.

%package system
Summary: Run halevt system-wide
Group: System/Configuration/Hardware
Requires: %{name}

%description system
This package will make halevt run system-wide.

%package user
Summary: Run halevt as user
Group: System/Configuration/Hardware
Requires: %{name}

%description user
This package will make halevt run as user.

%prep
%setup -q

%build
%configure2_5x
%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -f %{buildroot}%{_infodir}/dir

mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d

install -m 0755 -p halevt-initscript %{buildroot}%{_sysconfdir}/rc.d/init.d/halevt

install -d %{buildroot}%{_sysconfdir}/%{name}
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/

install -m755 %{SOURCE2} %{SOURCE3} %{buildroot}%{_bindir}/

install -d %{buildroot}%{_sysconfdir}/X11/xinit.d
install -m755 %{SOURCE4} %{buildroot}%{_sysconfdir}/X11/xinit.d/%{name}

%find_lang %{name}
%find_lang %{name}-mount
cat %{name}-mount.lang >> %{name}.lang

%clean
rm -rf %{buildroot}

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/halevt /sbin/nologin

%post
%_install_info %{name}.info

%preun
%_remove_install_info %{name}.info

%postun
%_postun_userdel %{name}
%_postun_groupdel %{name}

%post system
%_post_service %{name}

%preun system
%_preun_service service_name

%files -f %{name}.lang
%doc  AUTHORS README NEWS examples
%doc doc/*.html
%dir %{_sysconfdir}/halevt
%{_sysconfdir}/%{name}/%{name}.xml
%{_bindir}/halevt
%{_bindir}/halevt-mount
%{_bindir}/halevt-umount
%{_bindir}/halevt-explore-*
%{_bindir}/hvmount
%{_bindir}/hvumount
%{_bindir}/halevt_umount_from_tray-gtkdialog.sh
%{_bindir}/halevt_umount_from_tray-xmessage.sh
%{_bindir}/halevt_umount_report.sh
%{_infodir}/halevt.info*
%{_mandir}/man1/halevt*.1*
%{_mandir}/man1/hvm*.1*
%dir %attr(750,halevt,halevt) %{_localstatedir}/run/halevt
%dir %attr(755,halevt,halevt) %{_localstatedir}/lib/halevt

%files system
%defattr(-,root,root,-)
%{_sysconfdir}/rc.d/init.d/halevt

%files user
%defattr(-,root,root,-)
%{_sysconfdir}/X11/xinit.d/%{name}


%changelog
* Thu Dec 10 2009 Olivier Blin <oblin@mandriva.com> 0.1.5-5mdv2010.1
+ Revision: 476072
- do not run nautilus again if nautilus is already started, since it will automatically open a new window for the removable device

* Tue Dec 01 2009 Olivier Blin <oblin@mandriva.com> 0.1.5-4mdv2010.1
+ Revision: 472290
- handle mountpoints with space

* Wed Oct 21 2009 Olivier Blin <oblin@mandriva.com> 0.1.5-3mdv2010.0
+ Revision: 458565
- exec halevt-explore-directory instead of running it
- do not try to run file manager if DISPLAY is empty

* Tue Oct 20 2009 Olivier Blin <oblin@mandriva.com> 0.1.5-2mdv2010.0
+ Revision: 458462
- move service in halevt-system and xinit in halevt-user
- fix preun service
- add xinit script to run halevt
- use flush instead of sync and drop 002 umask on init too
- add helpers to run nautilus or pcmanfm when key is mounted
- use flush option instead of sync, and drop 002 umask
- update with automatic_sync_mount.xml example from halevt 1.0.5
- add default config file (from 1.0.4 tarball)
- fix install info macros

* Fri Sep 25 2009 Frederik Himpe <fhimpe@mandriva.org> 0.1.5-1mdv2010.0
+ Revision: 449192
- Update to new version 0.1.5
- First attempt in cleaning up Fedora SPEC file

* Fri Jun 26 2009 Paulo Ricardo Zanoni <pzanoni@mandriva.com> 0.1.4-1mdv2010.0
+ Revision: 389543
- Replace hardcoded files in BuildRequires for corresponding packages
- imported package halevt


* Sun Feb  4 2007 Patrice Dumas <pertusus@free.fr> 0.1.4-1
- initial release