source: projects/specs/trunk/p/polkit/polkit-vl.spec @ 12005

Revision 12005, 11.8 KB checked in by tomop, 5 years ago (diff)

Merge branch 'tomop'

Line 
1Summary: PolicyKit Authorization Framework
2Summary(ja): PolicyKit 認証フレームワーク
3Name: polkit
4Version: 0.115
5Release: 2%{?_dist_release}
6License: LGPLv2+
7URL: http://www.freedesktop.org/wiki/Software/polkit
8Source0: http://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.gz
9Patch0: polkit-0.115-elogind.patch
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11Group: System Environment/Libraries
12BuildRequires: elogind-devel
13BuildRequires: glib2-devel
14BuildRequires: expat-devel
15BuildRequires: pam-devel
16BuildRequires: mozjs52-devel
17BuildRequires: gtk-doc
18BuildRequires: intltool
19BuildRequires: gobject-introspection-devel
20
21Requires: dbus
22
23Obsoletes: PolicyKit <= 0.10
24Provides: PolicyKit = 0.11
25
26Obsoletes: polkit-desktop-policy < 0.103
27Provides: polkit-desktop-policy = 0.103
28
29Vendor: Project Vine
30Distribution: Vine Linux
31
32%description
33PolicyKit is a toolkit for defining and handling authorizations.
34It is used for allowing unprivileged processes to speak to privileged
35processes.
36
37%package devel
38Summary: Development files for PolicyKit
39Summary(ja): PolicyKit の開発用ファイル
40Group: Development/Libraries
41Requires: %name = %{version}-%{release}
42Requires: %name-docs = %{version}-%{release}
43Requires: pkgconfig
44Requires: glib2-devel
45
46%description devel
47Development files for PolicyKit.
48
49%package docs
50Summary: Development documentation for PolicyKit
51Summary(ja): PolicyKit の開発用ドキュメント
52Group: Development/Libraries
53Requires: %name-devel = %{version}-%{release}
54Requires: gtk-doc
55
56%description docs
57Development documentation for PolicyKit.
58
59
60%prep
61%setup -q
62%patch0 -p1
63
64%build
65autoreconf -vif
66
67export CXXFLAGS="%{optflags} -std=gnu++11"
68%configure \
69        --with-os-type=redhat \
70        --enable-gtk-doc \
71        --disable-static \
72        --libexecdir=%{_libexecdir}/polkit-1 \
73        --enable-introspection \
74        --enable-libelogind=yes \
75        --enable-examples
76make
77
78%install
79rm -rf $RPM_BUILD_ROOT
80make install DESTDIR=$RPM_BUILD_ROOT
81
82rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
83rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
84
85%find_lang polkit-1
86
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%pre
92groupadd -g 27 -r polkitd 2>&1 > /dev/null || :
93useradd -u 27 -g polkitd -r -d '/' -s /sbin/nologin -c "User for polkitd" polkitd 2>&1 > /dev/null || :
94exit 0
95
96%post -p /sbin/ldconfig
97
98%postun -p /sbin/ldconfig
99
100%files -f polkit-1.lang
101%defattr(-,root,root,-)
102%doc COPYING NEWS README
103%{_libdir}/lib*.so.*
104%{_datadir}/man/man1/*
105%{_datadir}/man/man8/*
106%{_datadir}/dbus-1/system-services/*
107%dir %{_datadir}/polkit-1/
108%dir %{_datadir}/polkit-1/actions
109%attr(0700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d
110%{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
111%dir %{_sysconfdir}/polkit-1
112%{_sysconfdir}/polkit-1/rules.d/50-default.rules
113%attr(0700,polkitd,root) %dir %{_sysconfdir}/polkit-1/rules.d
114%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
115%{_sysconfdir}/pam.d/polkit-1
116%{_bindir}/pkaction
117%{_bindir}/pkcheck
118%{_bindir}/pkttyagent
119%dir %{_prefix}/lib/polkit-1
120%{_prefix}/lib/polkit-1/polkitd
121%{_libdir}/girepository-1.0/*.typelib
122
123# see upstream docs for why these permissions are necessary
124%attr(4755,root,root) %{_bindir}/pkexec
125%attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
126
127%files devel
128%defattr(-,root,root,-)
129%{_libdir}/lib*.so
130%{_libdir}/pkgconfig/*.pc
131%{_datadir}/gir-1.0/*.gir
132%{_includedir}/*
133%{_bindir}/pk-example-frobnicate
134%{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
135%dir %{_datadir}/gettext
136%dir %{_datadir}/gettext/its
137%{_datadir}/gettext/its/*
138
139%files docs
140%defattr(-,root,root,-)
141%{_datadir}/gtk-doc/html/*
142
143%changelog
144* Fri Jan 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.115-2
145- really enabled elogind.
146
147* Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.115-1
148- new upstream release.
149- enabled elogind: ConsoleKit is obsolete.
150
151* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.112-2
152- new upstream release
153
154* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.112-1
155- new upstream release
156
157* Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.110-1
158- new upstream release
159
160* Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.107-1
161- new upstream release
162- add BuildRequires: js-devel
163- remove BuildRequires: eggdbus-devel
164- remove polkit-desktop-policy subpackage (based on fedora)
165- historical changelogs are following:
166
167  * Tue May 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.105-1
168  - new upstream release
169
170  * Sat Feb 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.104-1
171  - new upstream release
172
173  * Sat Aug 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.102-1
174  - new upstream release
175
176  * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99-1
177  - new upstream release
178
179  * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.96-2
180  - build with rpm-4.8.1-1 for pkg-config file
181
182  * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.96-1
183  - update to 0.96
184  - BR: eggdbus-devel >= 0.6
185
186  * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.2.git20090913
187  - remove Obsoletes:/Provides: PolicyKit*
188
189  * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.1.git20090913
190  - initial build for Vine Linux
191
192* Wed Jul 11 2012 David Zeuthen <davidz@redhat.com> 0.107-1%{?dist}
193- Update to upstream release 0.107
194
195* Fri Jun 29 2012 David Zeuthen <davidz@redhat.com> 0.106-2%{?dist}
196- Add forgotten Requires(pre): shadow-utils
197
198* Thu Jun 07 2012 David Zeuthen <davidz@redhat.com> 0.106-1%{?dist}
199- Update to upstream release 0.106
200- Authorizations are no longer controlled by .pkla files - from now
201  on, use the new .rules files described in the polkit(8) man page
202
203* Tue Apr 24 2012 David Zeuthen <davidz@redhat.com> 0.105-1%{?dist}
204- Update to upstream release 0.105
205- Nuke patches that are now upstream
206- Change 'PolicyKit' to 'polkit' in summary and descriptions
207
208* Thu Mar 08 2012 David Zeuthen <davidz@redhat.com> 0.104-6%{?dist}
209- Don't leak file descriptors (bgo #671486)
210
211* Mon Feb 13 2012 Matthias Clasen <mclasen@redhat.com> - 0.104-5%{?dist}
212- Make the -docs subpackage noarch
213
214* Mon Feb 06 2012 David Zeuthen <davidz@redhat.com> 0.104-4%{?dist}
215- Set error if we cannot obtain a PolkitUnixSession for a given PID (#787222)
216
217* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
218- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
219
220* Tue Jan 03 2012 David Zeuthen <davidz@redhat.com> 0.104-2%{?dist}
221- Nuke the ConsoleKit run-time requirement
222
223* Tue Jan 03 2012 David Zeuthen <davidz@redhat.com> 0.104-1%{?dist}
224- Update to upstream release 0.104
225- Force usage of systemd (instead of ConsoleKit) for session tracking
226
227* Tue Dec 06 2011 David Zeuthen <davidz@redhat.com> 0.103-1%{?dist}
228- Update to upstream release 0.103
229- Drop upstreamed patch
230- Drop Fedora-specific policy, it is now upstream (fdo #41008)
231
232* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.102-3
233- Rebuilt for glibc bug#747377
234
235* Tue Oct 18 2011 David Zeuthen <davidz@redhat.com> 0.102-2%{?dist}
236- Add patch to neuter the annoying systemd behavior where stdout/stderr
237  is sent to the system logs
238
239* Thu Aug 04 2011 David Zeuthen <davidz@redhat.com> 0.102-1
240- Update to 0.102 release
241
242* Fri May 13 2011 Bastien Nocera <bnocera@redhat.com> 0.101-7
243- Allow setting the pretty hostname without a password for wheel,
244  change matches systemd in git
245
246* Mon May  2 2011 Matthias Clasen <mclasen@redhat.com> - 0.101-6
247- Update the action id of the datetime mechanism
248
249* Tue Apr 19 2011 David Zeuthen <davidz@redhat.com> - 0.101-5
250- CVE-2011-1485 (#697951)
251
252* Tue Mar 22 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.101-4
253- Also allow org.kde.kcontrol.kcmclock.save without password for wheel
254
255* Thu Mar 17 2011 David Zeuthen <davidz@redhat.com> - 0.101-3
256- Fix typo in pkla file (thanks notting)
257
258* Thu Mar 17 2011 David Zeuthen <davidz@redhat.com> - 0.101-2
259- Nuke desktop_admin_r and desktop_user_r groups - just use the
260  wheel group instead (#688363)
261- Update the set of configuration directives that gives users
262  in the wheel group extra privileges
263
264* Thu Mar 03 2011 David Zeuthen <davidz@redhat.com> - 0.101-1
265- New upstream version
266
267* Mon Feb 21 2011 David Zeuthen <davidz@redhat.com> - 0.100-1
268- New upstream version
269
270* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-7
271- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
272
273* Fri Jan 28 2011 Matthias Clasen <mclasen@redhat.com> - 0.98-6
274- Own /usr/libexec/polkit-1
275
276* Sun Nov 14 2010 Matthias Clasen <mclasen@redhat.com> - 0.98-5
277- Enable introspection
278
279* Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-4
280- Fix #629515 in a way that doesn't require autoreconf
281
282* Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-2
283- Include polkitagentenumtypes.h (#629515)
284
285* Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> - 0.98-1
286- Update to upstream release 0.98
287- Co-own /usr/share/gtk-doc (#604410)
288
289* Wed Aug 18 2010 Matthias Clasen <mclasen@redhat.com> - 0.97-5
290- Rebuid to work around bodhi limitations
291
292* Wed Aug 18 2010 Matthias Clasen <mclasen@redhat.com> - 0.97-4
293- Fix a ConsoleKit interaction bug
294
295* Fri Aug 13 2010 David Zeuthen <davidz@redhat.com> - 0.97-3
296- Add a patch to make pkcheck(1) work the way libvirtd uses it (#623257)
297- Require GLib >= 2.25.12 instead of 2.25.11
298- Ensure polkit-gnome packages earlier than 0.97 are not used with
299  these packages
300
301* Mon Aug 09 2010 David Zeuthen <davidz@redhat.com> - 0.97-2
302- Rebuild
303
304* Mon Aug 09 2010 David Zeuthen <davidz@redhat.com> - 0.97-1
305- Update to 0.97. This release contains a port from EggDBus to the
306  GDBus code available in recent GLib releases.
307
308* Fri Jan 15 2010 David Zeuthen <davidz@redhat.com> - 0.96-1
309- Update to 0.96
310- Disable introspection support for the time being
311
312* Fri Nov 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-2
313- Rebuild
314
315* Fri Nov 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-1
316- Update to 0.95
317- Drop upstreamed patches
318
319* Tue Oct 20 2009 Matthias Clasen <mclasen@redhat.com> - 0.95-0.git20090913.3
320- Fix a typo in pklocalauthority(8)
321
322* Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.2
323- Refine how Obsolete: is used and also add Provides: (thanks Jesse
324  Keating and nim-nim)
325
326* Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.1
327- Add bugfix for polkit_unix_process_new_full() (thanks Bastien Nocera)
328- Obsolete old PolicyKit packages
329
330* Sun Sep 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913
331- Update to git snapshot
332- Drop upstreamed patches
333- Turn on GObject introspection
334- Don't delete desktop_admin_r and desktop_user_r groups when
335  uninstalling polkit-desktop-policy
336
337* Fri Sep 11 2009 David Zeuthen <davidz@redhat.com> - 0.94-4
338- Add some patches from git master
339- Sort pkaction(1) output
340- Bug 23867 – UnixProcess vs. SystemBusName aliasing
341
342* Thu Aug 13 2009 David Zeuthen <davidz@redhat.com> - 0.94-3
343- Add desktop_admin_r and desktop_user_r groups along with a first cut
344  of default authorizations for users in these groups.
345
346* Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-2
347- Disable GObject Introspection for now as it breaks the build
348
349* Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-1
350- Update to upstream release 0.94
351
352* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
353- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
354
355* Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-2
356- Rebuild
357
358* Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-1
359- Update to 0.93
360
361* Tue Jun 09 2009 David Zeuthen <davidz@redhat.com> - 0.92-3
362- Don't make docs noarch (I *heart* multilib)
363- Change license to LGPLv2+
364
365* Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-2
366- Rebuild
367
368* Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-1
369- Update to 0.92 release
370
371* Wed May 27 2009 David Zeuthen <davidz@redhat.com> - 0.92-0.git20090527
372- Update to 0.92 snapshot
373
374* Mon Feb  9 2009 David Zeuthen <davidz@redhat.com> - 0.91-1
375- Initial spec file.
Note: See TracBrowser for help on using the repository browser.