# Bootstrap build (no first stage deps) # rpmbuild -ba --define='bootstrap 1' hal.spec %define haldaemon_uid 26 %define haldaemon_gid 26 Name: hal Version: 0.5.15 Release: 2mamba Summary: An Hardware Abstraction Layer implementation Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.freedesktop.org/Software/hal Source: http://hal.freedesktop.org/releases/hal-%{version}.tar.gz Source1: %{name}-initscript Patch1: %{name}-0.5.7-allow_plugved.patch Patch2: %{name}-0.5.9-configure.patch Patch3: %{name}-0.5.10-uid_ntfs.patch Patch4: %{name}-0.5.11-storage_policy_fixed_drives.patch Patch5: %{name}-0.5.10-parted-1.8.8.patch Patch6: %{name}-0.5.11-increase_dbus_connections.patch Patch7: %{name}-0.5.11-dbus-1.2.8-introspection.patch Patch8: %{name}-0.5.12-storage-mount.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: dbus BuildRequires: glibc-devel BuildRequires: hal-info BuildRequires: libblkid-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel BuildRequires: libe2fs-devel BuildRequires: libexpat-devel BuildRequires: libgcc BuildRequires: libglib-devel BuildRequires: libparted-devel BuildRequires: libstdc++6-devel BuildRequires: libusb-devel %ifarch %{ix86} BuildRequires: libsmbios-devel %endif ## AUTOBUILDREQ-END BuildRequires: perl-XML-Parser >= 2.34 %if "%{?bootstrap}" != "1" BuildRequires: doxygen >= 1.4.6 BuildRequires: libparted-devel >= 1.7.1 %endif BuildRequires: xmlto BuildRequires: libxml2-utils BuildRequires: gperf BuildRequires: libblkid-devel BuildRequires: ConsoleKit-devel BuildRequires: PolicyKit-devel BuildRequires: libdevmapper-devel BuildRequires: libsepol-devel Requires: dbus >= 1.0.1 Requires: hal-info Requires(pre): /usr/sbin/groupadd Requires(pre): /usr/sbin/useradd Requires(pre): /sbin/chkconfig BuildRoot: %{_tmppath}/%{name}-%{version}-root %description HAL is a piece of software that provides a view of the various hardware attached to a system. In addition to this, HAL keeps detailed metadata for each piece of hardware and provide hooks such that system- and desktop-level software can react to changes in the hardware configuration in order to maintain system policy. The most important goal of HAL is to provide plug-and-play facilities for UNIX-like desktops with focus on providing a rich and extensible description of device characteristics and features. HAL has no other major dependencies apart from D-BUS which, given sufficient infrastructure, allows it to be implemented on many UNIX-like systems. The major focus, initially, is systems running the Linux 2.6 series kernels. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel HAL is a piece of software that provides a view of the various hardware attached to a system. In addition to this, HAL keeps detailed metadata for each piece of hardware and provide hooks such that system- and desktop-level software can react to changes in the hardware configuration in order to maintain system policy. The most important goal of HAL is to provide plug-and-play facilities for UNIX-like desktops with focus on providing a rich and extensible description of device characteristics and features. HAL has no other major dependencies apart from D-BUS which, given sufficient infrastructure, allows it to be implemented on many UNIX-like systems. The major focus, initially, is systems running the Linux 2.6 series kernels. This package contains static libraries and header files need for development. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description doc HAL is a piece of software that provides a view of the various hardware attached to a system. In addition to this, HAL keeps detailed metadata for each piece of hardware and provide hooks such that system- and desktop-level software can react to changes in the hardware configuration in order to maintain system policy. The most important goal of HAL is to provide plug-and-play facilities for UNIX-like desktops with focus on providing a rich and extensible description of device characteristics and features. HAL has no other major dependencies apart from D-BUS which, given sufficient infrastructure, allows it to be implemented on many UNIX-like systems. The major focus, initially, is systems running the Linux 2.6 series kernels. This package contains the documentation. # FIXME/NOTE (not built): # use PolicyKit: no # use ACL management: no # use umount.hal helper: no # OMAP utils: no (Linux only, arm only) %prep %setup -q %patch1 -p1 -b .allow_plugved #%patch2 -p1 -b .configure #%patch3 -p1 -b .uid_ntfs %patch4 -p0 #%patch5 -p1 %patch6 -p1 #%patch7 -p1 #%patch8 -p1 %build # FIXME: ConsoleKit is disabled; enabling it requires a KDM patch too # or devices unmounting resolts in "Permission denied: Not in active session" %configure \ --enable-acpi-toshiba \ --enable-acpi-ibm \ --enable-sonypic \ --with-os-type=redhat \ --disable-console-kit \ --disable-policy-kit \ %ifarch %{ix86} --with-macbookpro \ --with-macbook \ %endif --with-usb-csr \ --with-udev-prefix=/lib \ %if "%{?bootstrap}" != "1" --enable-parted %endif # --enable-docbook-docs %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -D -m 0755 %{S:1} \ %{buildroot}%{_initrddir}/haldaemon install -d -m 0755 %{buildroot}%{_localstatedir}/run/hald install -d -m 0755 %{buildroot}%{_localstatedir}/lib/pcmcia/stab rm -f %{buildroot}/lib/udev/rules.d/90-hal.rules %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre # add HAL Daemon group and user /usr/sbin/groupadd haldaemon -g %{haldaemon_gid} 2>/dev/null /usr/sbin/useradd -u %{haldaemon_uid} -c 'HAL Daemon' -d /dev/null \ -g haldaemon -s /bin/false haldaemon 2>/dev/null : %post if [ $1 -ge 1 ]; then /sbin/chkconfig --del haldaemon service haldaemon stop fi : %preun # erase if [ $1 -eq 0 ]; then service haldaemon stop 2>/dev/null /sbin/chkconfig --del haldaemon /usr/sbin/userdel haldaemon 2>/dev/null fi : %files %defattr(-,root,root) #%dir %{_sysconfdir}/PolicyKit/privilege.d/ #%{_sysconfdir}/PolicyKit/privilege.d/* %{_initrddir}/haldaemon %{_sysconfdir}/dbus-1/system.d/hal.conf %dir %{_sysconfdir}/hal %{_sysconfdir}/hal/* %{_bindir}/hal-device %{_bindir}/hal-disable-polling %{_bindir}/hal-find-* %{_bindir}/hal-get-property %{_bindir}/hal-set-property %{_bindir}/hal-is-caller-locked-out %{_bindir}/hal-lock %{_bindir}/hal-setup-keymap %{_bindir}/lshal %{_libdir}/libhal.so.* %{_libdir}/libhal-storage.so.* %{_sbindir}/hald #%{_libdir}/hal/scripts/* %{_libexecdir}/* %{_datadir}/hal/fdi/* %dir %{_localstatedir}/cache/hald %{_mandir}/man1/*.gz %{_mandir}/man8/*.gz %dir %{_localstatedir}/run/hald %dir %{_localstatedir}/lib/pcmcia/stab %doc AUTHORS COPYING ChangeLog NEWS README %files doc %defattr(-,root,root) %dir %{_datadir}/gtk-doc/html/libhal %{_datadir}/gtk-doc/html/libhal/* %dir %{_datadir}/gtk-doc/html/libhal-storage %{_datadir}/gtk-doc/html/libhal-storage/* %files devel %defattr(-,root,root) %{_libdir}/libhal*.a %{_libdir}/libhal*.la %{_libdir}/libhal*.so %dir %{_includedir}/hal %{_includedir}/hal/*.h %{_exec_prefix}/lib/pkgconfig/*.pc %changelog * Thu Feb 02 2012 Silvan Calarco 0.5.15-2mamba - remove udev rule * Wed Sep 28 2011 Silvan Calarco 0.5.15-1mamba - update to 0.5.15 (generated from git at cgit.freedesktop.org/hal/tree/doc to fix build) - obsolete: disable service startup; will be removed when remaining dependendent packages are checked * Thu Nov 11 2010 Silvan Calarco 0.5.14-3mamba - rebuilt to add pkgconfig provide * Mon Mar 15 2010 Silvan Calarco 0.5.14-2mamba - rebuilt with libparted 2.2 * Tue Dec 01 2009 Automatic Build System 0.5.14-1mamba - automatic update to 0.5.14 by autodist * Sun Jul 26 2009 Automatic Build System 0.5.13-2mamba - automatic rebuild by autodist * Sat Jul 25 2009 Automatic Build System 0.5.13-1mamba - automatic update to 0.5.13 by autodist * Tue Jun 23 2009 Silvan Calarco 0.5.12-3mamba - initscript: remove udev events trigger workaround to remove hal duplicated entries - rebuilt with libsmbios 2.2.16 * Sun Jun 14 2009 Davide Madrisan 0.5.12-2mamba - fixed segfault in hal-storage-mount * Tue May 19 2009 Automatic Build System 0.5.12-1mamba - automatic update to 0.5.12 by autodist * Thu Jan 22 2009 Silvan Calarco 0.5.11-5mamba - patch: fix configuration with d-bus >= 1.2.8 - added configure options: --enable-acpi-toshiba --enable-acpi-ibm --enable-sonypic * Fri Oct 24 2008 Silvan Calarco 0.5.11-4mamba - added patch to increase dbus connection limit (fixes KDE4 init) * Wed Oct 15 2008 Silvan Calarco 0.5.11-3mamba - initscript: trigger udev events after daemon startup * Sun Sep 28 2008 Silvan Calarco 0.5.11-2mamba - rebuilt against udev 128 * Sat Sep 13 2008 Silvan Calarco 0.5.11-1mamba - automatic update to 0.5.11 by autodist * Tue Feb 12 2008 Silvan Calarco 0.5.10-4mamba - rebuilt with libparted 1.8.8 * Mon Jan 14 2008 Silvan Calarco 0.5.10-3mamba - updated and re-enabled uid_ntfs patch * Tue Jan 08 2008 Silvan Calarco 0.5.10-2mamba - rebuild with statically build libpci * Mon Dec 03 2007 Silvan Calarco 0.5.10-1mamba - update to 0.5.10 - hal-info: moved to external hal-info package and added requirement - removed subpackage hal-device-manager (obsoleted by gnome-device-manager) * Tue Aug 14 2007 Silvan Calarco 0.5.9.1-1mamba - update to 0.5.9.1 - hal-info: added subpackage (20070618) * Mon Jul 02 2007 Silvan Calarco 0.5.9-5mamba - disabled ConsoleKit support - added requirement for libdevmapper * Fri May 04 2007 Stefano Cotta Ramusino 0.5.9-4mamba - rebuilt against libparted 1.8.6 - added missing build requirements * Wed Apr 11 2007 Silvan Calarco 0.5.9-3mamba - rebuilt * Mon Apr 02 2007 Silvan Calarco 0.5.9-2mamba - added requirement for dbus - removed requirement for pmount * Fri Dec 08 2006 Silvan Calarco 0.5.9-1qilnx - update to version 0.5.9 by autospec * Tue Nov 28 2006 Silvan Calarco 0.5.8.1-3qilnx - fix: don't call dbus_connection_close for shared dbus connections * Wed Oct 25 2006 Davide Madrisan 0.5.8.1-2qilnx - rebuilt for QiLinux * Tue Oct 24 2006 Silvan Calarco 0.5.8.1-1qilnx - update to version 0.5.8.1 by autospec - disabled verbose mode * Tue Oct 24 2006 Silvan Calarco 0.5.8-1qilnx - update to version 0.5.8 by autospec * Fri Sep 01 2006 Davide Madrisan 0.5.7-3qilnx - patched default hal configuration to allow plugdev members to mount volumes (this fixes some issues when mounting removable medias under KDE 3.5.4) * Tue May 23 2006 Silvan Calarco 0.5.7-2qilnx - removed pmount fdi (moved to pmount package) * Tue Apr 18 2006 Silvan Calarco 0.5.7-1qilnx - update to version 0.5.7 by autospec - removed hotplug bind to hal * Wed Mar 01 2006 Stefano Cotta Ramusino 0.5.6-2qilnx - added PreReq - added missing build requirements * Tue Jan 17 2006 Silvan Calarco 0.5.6-1qilnx - update to version 0.5.6 by autospec * Tue Jan 17 2006 Silvan Calarco 0.5.5-1qilnx - update to version 0.5.5 by autospec - added doxygen documentation * Mon Aug 29 2005 Silvan Calarco 0.5.4-1qilnx - update to version 0.5.4 by autospec * Mon Aug 12 2005 Silvan Calarco 0.5.3-3qilnx - post script: don't restart daemon on upgrade - add dbus-python requirement for hal-device-manager - added pmount fdi * Tue Jul 19 2005 Silvan Calarco 0.5.3-2qilnx - fix wrong uid and gid for haldaemon user and group - fixed initscript stop/restart * Mon Jul 18 2005 Silvan Calarco 0.5.3-1qilnx - new version build - added haldaemon user creation - added initscript * Fri Jun 03 2005 Silvan Calarco 0.5.2-1qilnx - package created by autospec