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