]>
Commit | Line | Data |
---|---|---|
739e77c7 MB |
1 | Summary: Device Enumeration Framework |
2 | Name: DeviceKit | |
d82c32a6 | 3 | Version: 003 |
db4ffe90 | 4 | Release: 2 |
739e77c7 MB |
5 | License: GPL v2+ and LGPL v2+ |
6 | Group: Libraries | |
7 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
d82c32a6 | 8 | # Source0-md5: 8b311547f4a2c8c6b6598e3318d66cd7 |
739e77c7 MB |
9 | BuildRequires: autoconf >= 2.60 |
10 | BuildRequires: automake | |
11 | BuildRequires: dbus-glib-devel >= 0.76 | |
81d9a0d9 | 12 | BuildRequires: docbook-dtd412-xml |
739e77c7 MB |
13 | BuildRequires: glib2-devel >= 1:2.12.0 |
14 | BuildRequires: gtk-doc >= 1.3 | |
15 | BuildRequires: libtool | |
16 | BuildRequires: libxslt-progs | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: udev-devel >= 130 | |
19 | Requires: %{name}-libs = %{version}-%{release} | |
20 | Requires: dbus | |
21 | Requires: udev >= 130 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | DeviceKit is an abstraction for enumerating devices and listening to | |
26 | device events. Any application on the system can access the | |
27 | org.freedesktop.DeviceKit service via the system message bus. On | |
28 | GNU/Linux, DeviceKit can be considered a simple D-Bus frontend to | |
29 | udev. | |
30 | ||
31 | %package libs | |
32 | Summary: DeviceKit library | |
33 | Summary(pl.UTF-8): Biblioteka DeviceKit | |
34 | Group: Libraries | |
35 | ||
36 | %description libs | |
37 | DeviceKit library. | |
38 | ||
4b648611 | 39 | %description libs -l pl.UTF-8 |
739e77c7 MB |
40 | Biblioteka DeviceKit. |
41 | ||
42 | %package devel | |
43 | Summary: Header files for DeviceKit library | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-libs = %{version}-%{release} | |
46 | Requires: glib2-devel >= 1:2.12.0 | |
47 | ||
48 | %description devel | |
49 | Header files for DeviceKit library. | |
50 | ||
51 | %package static | |
52 | Summary: Static DeviceKit library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka DeviceKit | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static DeviceKit library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka DeviceKit. | |
62 | ||
63 | %package apidocs | |
64 | Summary: DeviceKit library API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki DeviceKit | |
66 | Group: Documentation | |
67 | Requires: gtk-doc-common | |
68 | ||
69 | %description apidocs | |
70 | DeviceKit library API documentation. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki DeviceKit. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %{__libtoolize} | |
80 | %{__aclocal} | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
84 | %configure \ | |
85 | --with-html-dir=%{_gtkdocdir} \ | |
86 | --enable-gtk-doc | |
87 | ||
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post libs -p /sbin/ldconfig | |
100 | %postun libs -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS ChangeLog HACKING NEWS README | |
105 | %attr(755,root,root) %{_bindir}/devkit | |
106 | %attr(755,root,root) %{_libdir}/devkit-daemon | |
107 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.DeviceKit.conf | |
108 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/98-devkit.rules | |
109 | %{_datadir}/dbus-1/interfaces/org.freedesktop.DeviceKit.xml | |
110 | %{_datadir}/dbus-1/system-services/org.freedesktop.DeviceKit.service | |
111 | %{_mandir}/man1/devkit.1* | |
112 | %{_mandir}/man7/DeviceKit.7* | |
113 | %{_mandir}/man8/devkit-daemon.8* | |
114 | ||
115 | %files libs | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libdevkit-gobject.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libdevkit-gobject.so.0 | |
119 | ||
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{_libdir}/libdevkit-gobject.so | |
123 | %{_libdir}/libdevkit-gobject.la | |
124 | %{_includedir}/DeviceKit | |
125 | %{_pkgconfigdir}/devkit-gobject.pc | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libdevkit-gobject.a | |
130 | ||
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %{_gtkdocdir}/devkit |