%define name hal-info %define version 0.0 %define distversion 20091130 %define release %mkrel 5.%distversion.2 %define git_url git://git.freedesktop.org/git/hal-info Summary: Device information for HAL Name: %{name} Version: %{version} Release: %{release} Source0: http://hal.freedesktop.org/releases/%{name}-%{distversion}.tar.bz2 Source1: 10-camera-storage.fdi # (fc) update to latest git (git diff HAL_INFO_snapshot..master) #Patch0: now patch now # (fc) 0.0-4.20070425.1mdv re-add untested quirks (git diff master..mandriva Patch1: hal-info-20090716-untestedquirks.patch # (fc) 0.0-5.20070725.2mdv add patches pending merge (git diff master..pending) #Patch3: no patch now License: AFL or GPLv2 Group: System/Kernel and hardware Url: http://www.freedesktop.org/Software/hal BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch Conflicts: hal < 0.5.8.1-10mdv2007.1 %if %mdkversion >= 200800 BuildRequires: hal-devel >= 0.5.10 %else BuildRequires: hal-devel %endif #needed for make check BuildRequires: libxml2-utils %description hal-info contains device information for HAL. %prep %setup -q -n %{name}-%{distversion} #%patch0 -p1 -b .git %patch1 -p1 -b .untestedquirks #%patch3 -p1 -b .pending %build %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std install %{SOURCE1} %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop/10-camera-storage.fdi cat << EOF > $RPM_BUILD_ROOT%{_datadir}/hal/fdi/preprobe/10osvendor/10-usb-disable-mediacheck.fdi false false EOF %check make check %clean rm -rf %{buildroot} %postun if [ "$1" = "1" -a -r /etc/init.d/haldaemon ]; then service haldaemon condrestart > /dev/null 2>/dev/null fi %files %defattr(-,root,root) %doc AUTHORS NEWS README %{_datadir}/hal/fdi/information %{_datadir}/hal/fdi/preprobe