]>
Commit | Line | Data |
---|---|---|
a91c2820 | 1 | # |
14eed758 | 2 | # Conditional build: |
a313ddd3 | 3 | %bcond_without apidocs # build without apidocs |
186114f9 | 4 | %bcond_without systemd # use systemd for session tracking instead of ConsoleKit (fallback to ConsoleKit on runtime) |
835d1e5a | 5 | |
a5863912 PZ |
6 | Summary: A framework for defining policy for system-wide components |
7 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych | |
8 | Name: polkit | |
a313ddd3 | 9 | Version: 0.104 |
835d1e5a | 10 | Release: 4 |
a5863912 PZ |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
13 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
a313ddd3 | 14 | # Source0-md5: e380b4c6fb1e7bccf854e92edc0a8ce1 |
186114f9 | 15 | Patch0: systemd-fallback.patch |
3310eb44 | 16 | URL: http://www.freedesktop.org/wiki/Software/PolicyKit |
a5863912 PZ |
17 | BuildRequires: autoconf >= 2.60 |
18 | BuildRequires: automake >= 1:1.7 | |
1528e92c | 19 | BuildRequires: docbook-dtd412-xml |
3310eb44 | 20 | BuildRequires: docbook-style-xsl |
a5863912 | 21 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 22 | BuildRequires: gettext-devel |
835d1e5a | 23 | BuildRequires: glib2-devel >= 1:2.32.0 |
1528e92c | 24 | BuildRequires: glibc-misc |
e3a98c17 | 25 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
14eed758 | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
9ff6e803 | 27 | BuildRequires: gtk-doc-automake >= 1.3 |
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 |
a313ddd3 | 35 | %{?with_systemd:BuildRequires: systemd-devel} |
a5863912 | 36 | Requires: %{name}-libs = %{version}-%{release} |
186114f9 | 37 | Requires: ConsoleKit >= 0.4.1 |
a5863912 | 38 | Requires: dbus >= 1.1.2-5 |
f3084979 | 39 | Obsoletes: PolicyKit |
a5863912 PZ |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | PolicyKit is a framework for defining policy for system-wide | |
a313ddd3 | 44 | components and for desktop pieces to configure it. |
a5863912 PZ |
45 | |
46 | %description -l pl.UTF-8 | |
47 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
a313ddd3 | 48 | systemowych oraz składników pulpitu do konfigurowania ich. |
a5863912 PZ |
49 | |
50 | %package apidocs | |
51 | Summary: PolicyKit API documentation | |
52 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
53 | Group: Documentation | |
54 | Requires: gtk-doc-common | |
f3084979 | 55 | Obsoletes: PolicyKit-apidocs |
a5863912 PZ |
56 | |
57 | %description apidocs | |
58 | PolicyKit API documentation. | |
59 | ||
60 | %description apidocs -l pl.UTF-8 | |
61 | Dokumentacja API PolicyKit. | |
62 | ||
63 | %package libs | |
64 | Summary: PolicyKit libraries | |
65 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
66 | Group: Libraries | |
df23ce59 | 67 | Requires: dbus-libs >= 1.1.2-5 |
835d1e5a | 68 | Requires: glib2 >= 1:2.32.0 |
f3084979 | 69 | Obsoletes: PolicyKit-libs |
a5863912 PZ |
70 | |
71 | %description libs | |
72 | PolicyKit libraries. | |
73 | ||
74 | %description libs -l pl.UTF-8 | |
75 | Biblioteki PolicyKit. | |
76 | ||
77 | %package devel | |
78 | Summary: Header files for PolicyKit | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-libs = %{version}-%{release} | |
82 | Requires: expat-devel >= 1:1.95.8 | |
835d1e5a | 83 | Requires: glib2-devel >= 1:2.32.0 |
f3084979 | 84 | Obsoletes: PolicyKit-devel |
a5863912 PZ |
85 | |
86 | %description devel | |
87 | Header files for PolicyKit. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe PolicyKit. | |
91 | ||
92 | %package static | |
93 | Summary: Static PolicyKit libraries | |
94 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
f3084979 | 97 | Obsoletes: PolicyKit-static |
a5863912 PZ |
98 | |
99 | %description static | |
100 | Static PolicyKit libraries. | |
101 | ||
102 | %description static -l pl.UTF-8 | |
103 | Statyczne biblioteki PolicyKit. | |
104 | ||
105 | %prep | |
106 | %setup -q | |
186114f9 | 107 | %{?with_systemd:%patch0 -p1} |
a5863912 PZ |
108 | |
109 | %build | |
3310eb44 | 110 | %{?with_apidocs:%{__gtkdocize}} |
df23ce59 | 111 | %{__intltoolize} |
a5863912 PZ |
112 | %{__libtoolize} |
113 | %{__aclocal} | |
114 | %{__autoconf} | |
115 | %{__autoheader} | |
116 | %{__automake} | |
117 | %configure \ | |
3310eb44 | 118 | %{__enable_disable apidocs gtk-doc} \ |
a91c2820 | 119 | --disable-silent-rules \ |
186114f9 | 120 | %{__enable_disable systemd systemd} \ |
a5863912 PZ |
121 | --with-html-dir=%{_gtkdocdir} \ |
122 | --with-pam-include=system-auth \ | |
123 | --with-pam-module-dir=/%{_lib}/security | |
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
5498e51a MB |
132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} |
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
a5863912 PZ |
134 | |
135 | %find_lang polkit-1 | |
136 | ||
137 | %clean | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %post libs -p /sbin/ldconfig | |
141 | %postun libs -p /sbin/ldconfig | |
142 | ||
143 | %files -f polkit-1.lang | |
144 | %defattr(644,root,root,755) | |
9ff6e803 | 145 | %doc AUTHORS NEWS README |
a5863912 PZ |
146 | %attr(755,root,root) %{_bindir}/pkaction |
147 | %attr(755,root,root) %{_bindir}/pkcheck | |
148 | %attr(4755,root,root) %{_bindir}/pkexec | |
5498e51a | 149 | %attr(755,root,root) %{_bindir}/pk-example-frobnicate |
a5863912 | 150 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 |
0c630415 | 151 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
152 | %dir %{_libdir}/polkit-1 |
153 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 | 154 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
a5863912 PZ |
155 | %dir %{_sysconfdir}/polkit-1 |
156 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
041ba5a3 MB |
158 | %attr(700,root,root) %dir %{_sysconfdir}/polkit-1/localauthority |
159 | %dir %{_sysconfdir}/polkit-1/localauthority/10-vendor.d | |
160 | %dir %{_sysconfdir}/polkit-1/localauthority/20-org.d | |
161 | %dir %{_sysconfdir}/polkit-1/localauthority/30-site.d | |
162 | %dir %{_sysconfdir}/polkit-1/localauthority/50-local.d | |
163 | %dir %{_sysconfdir}/polkit-1/localauthority/90-mandatory.d | |
a5863912 PZ |
164 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d |
165 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
166 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
167 | /etc/pam.d/polkit-1 | |
168 | %{_datadir}/polkit-1 | |
169 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
170 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
041ba5a3 MB |
171 | %dir /var/lib/polkit-1/localauthority |
172 | %dir /var/lib/polkit-1/localauthority/10-vendor.d | |
173 | %dir /var/lib/polkit-1/localauthority/20-org.d | |
174 | %dir /var/lib/polkit-1/localauthority/30-site.d | |
175 | %dir /var/lib/polkit-1/localauthority/50-local.d | |
176 | %dir /var/lib/polkit-1/localauthority/90-mandatory.d | |
a5863912 PZ |
177 | %{_mandir}/man1/pkaction.1* |
178 | %{_mandir}/man1/pkcheck.1* | |
179 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
180 | %{_mandir}/man8/pklocalauthority.8* |
181 | %{_mandir}/man8/polkit.8* | |
182 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 183 | |
14eed758 | 184 | %if %{with apidocs} |
a5863912 PZ |
185 | %files apidocs |
186 | %defattr(644,root,root,755) | |
187 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 188 | %endif |
a5863912 PZ |
189 | |
190 | %files libs | |
191 | %defattr(644,root,root,755) | |
192 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
193 | %doc COPYING | |
194 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
195 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
196 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
197 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
198 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
a91c2820 | 200 | %{_libdir}/girepository-1.0/Polkit-1.0.typelib |
a36db55f | 201 | %{_libdir}/girepository-1.0/PolkitAgent-1.0.typelib |
a5863912 PZ |
202 | |
203 | %files devel | |
204 | %defattr(644,root,root,755) | |
a5863912 PZ |
205 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so |
206 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
207 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
a5863912 PZ |
208 | %{_includedir}/polkit-1 |
209 | %{_pkgconfigdir}/polkit-agent-1.pc | |
210 | %{_pkgconfigdir}/polkit-backend-1.pc | |
211 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
a91c2820 | 212 | %{_datadir}/gir-1.0/Polkit-1.0.gir |
a36db55f | 213 | %{_datadir}/gir-1.0/PolkitAgent-1.0.gir |
a5863912 PZ |
214 | |
215 | %files static | |
216 | %defattr(644,root,root,755) | |
217 | %{_libdir}/libpolkit-agent-1.a | |
218 | %{_libdir}/libpolkit-backend-1.a | |
219 | %{_libdir}/libpolkit-gobject-1.a |