/[packages]/cauldron/hal-info/current/SPECS/hal-info.spec
ViewVC logotype

Contents of /cauldron/hal-info/current/SPECS/hal-info.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16754 - (show annotations) (download)
Fri Jan 14 00:44:17 2011 UTC (10 years, 8 months ago) by blino
File size: 2503 byte(s)
imported package hal-info
1 %define name hal-info
2 %define version 0.0
3 %define distversion 20091130
4 %define release %mkrel 5.%distversion.2
5
6 %define git_url git://git.freedesktop.org/git/hal-info
7
8 Summary: Device information for HAL
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}
12 Source0: http://hal.freedesktop.org/releases/%{name}-%{distversion}.tar.bz2
13 Source1: 10-camera-storage.fdi
14 # (fc) update to latest git (git diff HAL_INFO_snapshot..master)
15 #Patch0: now patch now
16 # (fc) 0.0-4.20070425.1mdv re-add untested quirks (git diff master..mandriva
17 Patch1: hal-info-20090716-untestedquirks.patch
18 # (fc) 0.0-5.20070725.2mdv add patches pending merge (git diff master..pending)
19 #Patch3: no patch now
20
21 License: AFL or GPLv2
22 Group: System/Kernel and hardware
23 Url: http://www.freedesktop.org/Software/hal
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
25 BuildArch: noarch
26 Conflicts: hal < 0.5.8.1-10mdv2007.1
27 %if %mdkversion >= 200800
28 BuildRequires: hal-devel >= 0.5.10
29 %else
30 BuildRequires: hal-devel
31 %endif
32 #needed for make check
33 BuildRequires: libxml2-utils
34
35 %description
36 hal-info contains device information for HAL.
37
38 %prep
39 %setup -q -n %{name}-%{distversion}
40 #%patch0 -p1 -b .git
41 %patch1 -p1 -b .untestedquirks
42 #%patch3 -p1 -b .pending
43
44 %build
45
46 %configure2_5x
47 %make
48
49 %install
50 rm -rf %{buildroot}
51 %makeinstall_std
52 install %{SOURCE1} %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop/10-camera-storage.fdi
53
54 cat << EOF > $RPM_BUILD_ROOT%{_datadir}/hal/fdi/preprobe/10osvendor/10-usb-disable-mediacheck.fdi
55 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
56
57 <deviceinfo version="0.2">
58 <device>
59 <match key="storage.bus" string="usb">
60 <match key="@storage.physical_device:usb.vendor_id" int="0x67b">
61 <match key="@storage.physical_device:usb.product_id" int="0x2317">
62 <merge key="storage.media_detection_enabled" type="bool">false</merge>
63 </match>
64 </match>
65 <match key="@storage.physical_device:usb.vendor_id" int="0x054c">
66 <match key="@storage.physical_device:usb.product_id" int="0x008b">
67 <merge key="storage.media_detection_enabled" type="bool">false</merge>
68 </match>
69 </match>
70 </match>
71 </device>
72 </deviceinfo>
73 EOF
74
75 %check
76 make check
77
78 %clean
79 rm -rf %{buildroot}
80
81 %postun
82 if [ "$1" = "1" -a -r /etc/init.d/haldaemon ]; then
83 service haldaemon condrestart > /dev/null 2>/dev/null
84 fi
85
86 %files
87 %defattr(-,root,root)
88 %doc AUTHORS NEWS README
89 %{_datadir}/hal/fdi/information
90 %{_datadir}/hal/fdi/preprobe
91
92
93
94

  ViewVC Help
Powered by ViewVC 1.1.28