]>
Commit | Line | Data |
---|---|---|
14eed758 BZ |
1 | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # build without apidocs | |
4 | ||
a5863912 PZ |
5 | Summary: A framework for defining policy for system-wide components |
6 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych | |
7 | Name: polkit | |
3310eb44 | 8 | Version: 0.96 |
c2613d38 | 9 | Release: 1 |
a5863912 PZ |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
3310eb44 | 13 | # Source0-md5: e0a06da501b04ed3bab986a9df5b5aa2 |
14 | URL: http://www.freedesktop.org/wiki/Software/PolicyKit | |
a5863912 PZ |
15 | BuildRequires: autoconf >= 2.60 |
16 | BuildRequires: automake >= 1:1.7 | |
1528e92c | 17 | BuildRequires: docbook-dtd412-xml |
3310eb44 | 18 | BuildRequires: docbook-style-xsl |
39a23f16 | 19 | BuildRequires: eggdbus-devel >= 0.6 |
a5863912 | 20 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 21 | BuildRequires: gettext-devel |
485bcc8b | 22 | BuildRequires: gir-repository-devel |
14eed758 | 23 | BuildRequires: glib2-devel >= 1:2.21.4 |
1528e92c | 24 | BuildRequires: glibc-misc |
e3a98c17 | 25 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
14eed758 | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
3310eb44 | 27 | BuildRequires: gtk-doc-automake |
df23ce59 | 28 | BuildRequires: intltool >= 0.40.0 |
a5863912 | 29 | BuildRequires: libtool |
3310eb44 | 30 | BuildRequires: libxslt-progs |
a5863912 PZ |
31 | BuildRequires: pam-devel >= 0.80 |
32 | BuildRequires: pkgconfig | |
1528e92c | 33 | BuildRequires: python-modules |
3310eb44 | 34 | BuildRequires: rpmbuild(macros) >= 1.527 |
a5863912 | 35 | Requires: %{name}-libs = %{version}-%{release} |
2789bcb6 | 36 | Requires: ConsoleKit >= 0.4.1 |
a5863912 PZ |
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 | |
df23ce59 MB |
65 | Requires: dbus-libs >= 1.1.2-5 |
66 | Requires: glib2 >= 1:2.18.0 | |
a5863912 PZ |
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 | |
df23ce59 | 81 | Requires: glib2-devel >= 1:2.18.0 |
a5863912 PZ |
82 | |
83 | %description devel | |
84 | Header files for PolicyKit. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe PolicyKit. | |
88 | ||
89 | %package static | |
90 | Summary: Static PolicyKit libraries | |
91 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-devel = %{version}-%{release} | |
94 | ||
95 | %description static | |
96 | Static PolicyKit libraries. | |
97 | ||
98 | %description static -l pl.UTF-8 | |
99 | Statyczne biblioteki PolicyKit. | |
100 | ||
101 | %prep | |
102 | %setup -q | |
103 | ||
104 | %build | |
3310eb44 | 105 | %{?with_apidocs:%{__gtkdocize}} |
df23ce59 | 106 | %{__intltoolize} |
a5863912 PZ |
107 | %{__libtoolize} |
108 | %{__aclocal} | |
109 | %{__autoconf} | |
110 | %{__autoheader} | |
111 | %{__automake} | |
112 | %configure \ | |
3310eb44 | 113 | %{__enable_disable apidocs gtk-doc} \ |
a5863912 PZ |
114 | --with-html-dir=%{_gtkdocdir} \ |
115 | --with-pam-include=system-auth \ | |
116 | --with-pam-module-dir=/%{_lib}/security | |
117 | %{__make} | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %{__make} install \ | |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
125 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
126 | ||
127 | %find_lang polkit-1 | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post libs -p /sbin/ldconfig | |
133 | %postun libs -p /sbin/ldconfig | |
134 | ||
135 | %files -f polkit-1.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS README | |
138 | %attr(755,root,root) %{_bindir}/pkaction | |
139 | %attr(755,root,root) %{_bindir}/pkcheck | |
140 | %attr(4755,root,root) %{_bindir}/pkexec | |
141 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 142 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
143 | %dir %{_libdir}/polkit-1 |
144 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
145 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
146 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
147 | %dir %{_sysconfdir}/polkit-1 |
148 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
149 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
150 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
151 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
152 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
153 | /etc/pam.d/polkit-1 | |
154 | %{_datadir}/polkit-1 | |
155 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
156 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
157 | %{_mandir}/man1/pkaction.1* | |
158 | %{_mandir}/man1/pkcheck.1* | |
159 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
160 | %{_mandir}/man8/pklocalauthority.8* |
161 | %{_mandir}/man8/polkit.8* | |
162 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 163 | |
14eed758 | 164 | %if %{with apidocs} |
a5863912 PZ |
165 | %files apidocs |
166 | %defattr(644,root,root,755) | |
167 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 168 | %endif |
a5863912 PZ |
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 | |
485bcc8b | 180 | %{_libdir}/girepository-1.0/*.typelib |
a5863912 PZ |
181 | |
182 | %files devel | |
183 | %defattr(644,root,root,755) | |
a5863912 PZ |
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 | |
485bcc8b | 194 | %{_datadir}/gir-1.0/*.gir |
a5863912 PZ |
195 | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
198 | %{_libdir}/libpolkit-agent-1.a | |
199 | %{_libdir}/libpolkit-backend-1.a | |
200 | %{_libdir}/libpolkit-gobject-1.a |