]>
Commit | Line | Data |
---|---|---|
a5863912 PZ |
1 | # TODO: package bash-completion in proper way |
2 | Summary: A framework for defining policy for system-wide components | |
3 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych | |
4 | Name: polkit | |
5 | Version: 0.92 | |
6 | Release: 1 | |
7 | License: LGPL v2+ | |
8 | Group: Libraries | |
9 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 16ba7d33ea9d130e093e9ab8b4c267e6 | |
11 | URL: http://people.freedesktop.org/~david/polkit-spec.html | |
12 | BuildRequires: autoconf >= 2.60 | |
13 | BuildRequires: automake >= 1:1.7 | |
14 | BuildRequires: dbus-devel >= 1.0 | |
15 | BuildRequires: dbus-glib-devel >= 0.73 | |
16 | BuildRequires: eggdbus-devel | |
17 | BuildRequires: expat-devel >= 1:1.95.8 | |
18 | BuildRequires: glib2-devel >= 1:2.6.0 | |
19 | BuildRequires: gtk-doc >= 1.3 | |
20 | BuildRequires: libselinux-devel >= 1.30 | |
21 | BuildRequires: libtool | |
22 | BuildRequires: pam-devel >= 0.80 | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: rpmbuild(macros) >= 1.268 | |
25 | BuildRequires: xmlto | |
26 | Requires(postun): /usr/sbin/groupdel | |
27 | Requires(postun): /usr/sbin/userdel | |
28 | Requires(pre): /bin/id | |
29 | Requires(pre): /usr/bin/getgid | |
30 | Requires(pre): /usr/lib/rpm/user_group.sh | |
31 | Requires(pre): /usr/sbin/groupadd | |
32 | Requires(pre): /usr/sbin/useradd | |
33 | Requires(pre): /usr/sbin/usermod | |
34 | Requires(triggerpostun): /sbin/chkconfig | |
35 | Requires: %{name}-libs = %{version}-%{release} | |
36 | Requires: ConsoleKit >= 0.2.1 | |
37 | Requires: dbus >= 1.1.2-5 | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | PolicyKit is a framework for defining policy for system-wide | |
42 | components and for desktop pieces to configure it. It is used by HAL. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
46 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
47 | używany przez HAL-a. | |
48 | ||
49 | %package apidocs | |
50 | Summary: PolicyKit API documentation | |
51 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
52 | Group: Documentation | |
53 | Requires: gtk-doc-common | |
54 | ||
55 | %description apidocs | |
56 | PolicyKit API documentation. | |
57 | ||
58 | %description apidocs -l pl.UTF-8 | |
59 | Dokumentacja API PolicyKit. | |
60 | ||
61 | %package libs | |
62 | Summary: PolicyKit libraries | |
63 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
64 | Group: Libraries | |
65 | Requires: dbus-libs >= 1.0 | |
66 | Requires: glib2 >= 1:2.6.0 | |
67 | Conflicts: PolicyKit < 0.1-0.20061203.6 | |
68 | ||
69 | %description libs | |
70 | PolicyKit libraries. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteki PolicyKit. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for PolicyKit | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
80 | Requires: expat-devel >= 1:1.95.8 | |
81 | # polkit-grant | |
82 | #Requires: glib2-devel >= 1:2.6.0 | |
83 | # polkit-dbus and polkit-grant | |
84 | #Requires: dbus-devel >= 1.0 | |
85 | # polkit-dbus | |
86 | #Requires: libselinux-devel >= 1.30 | |
87 | ||
88 | %description devel | |
89 | Header files for PolicyKit. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe PolicyKit. | |
93 | ||
94 | %package static | |
95 | Summary: Static PolicyKit libraries | |
96 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
97 | Group: Development/Libraries | |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | ||
100 | %description static | |
101 | Static PolicyKit libraries. | |
102 | ||
103 | %description static -l pl.UTF-8 | |
104 | Statyczne biblioteki PolicyKit. | |
105 | ||
106 | %prep | |
107 | %setup -q | |
108 | ||
109 | %build | |
110 | %{__libtoolize} | |
111 | %{__aclocal} | |
112 | %{__autoconf} | |
113 | %{__autoheader} | |
114 | %{__automake} | |
115 | %configure \ | |
116 | --enable-gtk-doc \ | |
117 | --with-html-dir=%{_gtkdocdir} \ | |
118 | --with-pam-include=system-auth \ | |
119 | --with-pam-module-dir=/%{_lib}/security | |
120 | %{__make} | |
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
128 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
129 | ||
130 | %find_lang polkit-1 | |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post libs -p /sbin/ldconfig | |
136 | %postun libs -p /sbin/ldconfig | |
137 | ||
138 | %files -f polkit-1.lang | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS README | |
141 | %attr(755,root,root) %{_bindir}/pkaction | |
142 | %attr(755,root,root) %{_bindir}/pkcheck | |
143 | %attr(4755,root,root) %{_bindir}/pkexec | |
144 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
145 | %attr(755,root,root) %{_libexecdir}/polkitd-1 | |
146 | %dir %{_libdir}/polkit-1 | |
147 | %dir %{_libdir}/polkit-1/extensions | |
148 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/nullbackend.so | |
149 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/pkexec-action-lookup.so | |
150 | %dir %{_sysconfdir}/polkit-1 | |
151 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
152 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
153 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
154 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
155 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
156 | /etc/pam.d/polkit-1 | |
157 | %{_datadir}/polkit-1 | |
158 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
159 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
160 | %{_mandir}/man1/pkaction.1* | |
161 | %{_mandir}/man1/pkcheck.1* | |
162 | %{_mandir}/man1/pkexec.1* | |
163 | %{_mandir}/man8/PolicyKit-1.8* | |
164 | %{_mandir}/man8/polkitd-1.8* | |
165 | ||
166 | %files apidocs | |
167 | %defattr(644,root,root,755) | |
168 | %{_gtkdocdir}/polkit-1 | |
169 | ||
170 | %files libs | |
171 | %defattr(644,root,root,755) | |
172 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
173 | %doc COPYING | |
174 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
176 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
178 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
179 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
180 | ||
181 | %files devel | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_bindir}/pk-example-frobnicate | |
184 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so | |
185 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
186 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
187 | %{_libdir}/libpolkit-agent-1.la | |
188 | %{_libdir}/libpolkit-backend-1.la | |
189 | %{_libdir}/libpolkit-gobject-1.la | |
190 | %{_includedir}/polkit-1 | |
191 | %{_pkgconfigdir}/polkit-agent-1.pc | |
192 | %{_pkgconfigdir}/polkit-backend-1.pc | |
193 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
194 | ||
195 | %files static | |
196 | %defattr(644,root,root,755) | |
197 | %{_libdir}/libpolkit-agent-1.a | |
198 | %{_libdir}/libpolkit-backend-1.a | |
199 | %{_libdir}/libpolkit-gobject-1.a |