source: projects/specs/trunk/P/PolicyKit/PolicyKit-vl.spec @ 1988

Revision 1988, 7.7 KB checked in by owa, 11 years ago (diff)

rebuilt with rpm-4.8.1

Line 
1%define expat_version           1.95.5
2%define glib2_version           2.6.0
3%define dbus_version            0.90
4%define dbus_glib_version       0.70
5%define gtk_doc_version         1.4
6#define libselinux_version      1.30
7%define pam_version             0.99.6
8%define intltool_version        0.36
9
10# uid/gid allocated in this bug:
11# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=244950
12%define polkit_uid              87
13
14Summary: Authorization Toolkit
15Summary(ja): 認証ツールキット
16Name: PolicyKit
17Version: 0.9
18Release: 2%{?_dist_release}
19License: MIT
20Group: System Environment/Libraries
21URL: http://gitweb.freedesktop.org/?p=PolicyKit.git;a=summary
22Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
23BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
24Requires(post): chkconfig
25Requires(preun): chkconfig
26Requires(post): /sbin/ldconfig
27Requires(pre): /usr/sbin/useradd
28Requires(postun): /sbin/ldconfig
29BuildRequires: expat-devel >= %{expat_version}
30BuildRequires: glib2-devel >= %{glib2_version}
31BuildRequires: dbus-devel  >= %{dbus_version}
32BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
33BuildRequires: gtk-doc >= %{gtk_doc_version}
34#BuildRequires: libselinux-devel >= %{libselinux_version}
35BuildRequires: libxslt
36BuildRequires: pam-devel >= %{pam_version}
37BuildRequires: intltool >= %{intltool_version}
38Requires: dbus >= %{dbus_version}
39Requires: dbus-glib >= %{dbus_glib_version}
40Requires: glib2 >= %{glib2_version}
41#Requires: libselinux >= %{libselinux_version}
42Requires: pam >= %{pam_version}
43
44# Since PolicyKit 0.7 reading authorizations is a privileged
45# operation. So we need to force a new version of hal that makes sure
46# that user 'haldaemon' can read authorizations of other users.
47#Conflicts: hal < 0.5.10-3%{?_dist_release}
48
49%description
50PolicyKit is a toolkit for defining and handling authorizations. It is
51used for allowing unprivileged processes to speak to privileged
52processes.
53
54%package devel
55Summary: Headers and libraries for PolicyKit
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
58Requires: pkgconfig
59Requires: glib2-devel
60Requires: dbus-devel
61
62%description devel
63Headers and libraries for PolicyKit.
64
65%package docs
66Summary: Documentation for PolicyKit
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
69# stupid guidelines require this for ownership of /usr/share/gtk-doc
70Requires: gtk-doc
71
72%description docs
73Documentation for PolicyKit.
74
75%prep
76%setup -q
77
78%build
79%configure --disable-selinux --with-os-type=redhat
80make
81
82%install
83rm -rf $RPM_BUILD_ROOT
84
85make install DESTDIR=$RPM_BUILD_ROOT
86
87mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
88cp README AUTHORS NEWS COPYING HACKING doc/TODO $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
89
90rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
91rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
92
93%clean
94rm -rf $RPM_BUILD_ROOT
95
96%pre
97/usr/sbin/useradd -c 'PolicyKit' -u %{polkit_uid} \
98        -s /sbin/nologin -r -d '/' polkituser 2> /dev/null || :
99
100%post -p /sbin/ldconfig
101
102%postun -p /sbin/ldconfig
103
104%files
105%defattr(-,root,root,-)
106
107%doc %dir %{_datadir}/doc/%{name}-%{version}
108%doc %{_datadir}/doc/%{name}-%{version}/NEWS
109%doc %{_datadir}/doc/%{name}-%{version}/COPYING
110%doc %{_datadir}/doc/%{name}-%{version}/AUTHORS
111%doc %{_datadir}/doc/%{name}-%{version}/HACKING
112%doc %{_datadir}/doc/%{name}-%{version}/README
113%doc %{_datadir}/doc/%{name}-%{version}/TODO
114
115%config(noreplace) %{_sysconfdir}/pam.d/polkit
116%dir %{_sysconfdir}/PolicyKit
117%config(noreplace) %{_sysconfdir}/PolicyKit/PolicyKit.conf
118
119%{_bindir}/*
120
121%{_libdir}/lib*.so.*
122
123%{_mandir}/man1/*
124%{_mandir}/man5/*
125%{_mandir}/man8/*
126
127# see upstream design specification for why these permissions are necessary
128%attr(4755,polkituser,root) %{_libexecdir}/polkit-set-default-helper
129%attr(2755,root,polkituser) %{_libexecdir}/polkit-read-auth-helper
130%attr(2755,root,polkituser) %{_libexecdir}/polkit-revoke-helper
131%attr(2755,root,polkituser) %{_libexecdir}/polkit-explicit-grant-helper
132%attr(2755,root,polkituser) %{_libexecdir}/polkit-grant-helper
133%attr(4754,root,polkituser) %{_libexecdir}/polkit-grant-helper-pam
134%attr(4755,root,polkituser) %{_libexecdir}/polkit-resolve-exe-helper
135%attr(0770,polkituser,polkituser) %dir %{_localstatedir}/run/PolicyKit
136%attr(0770,polkituser,polkituser) %dir %{_localstatedir}/lib/PolicyKit
137%attr(0755,polkituser,polkituser) %dir %{_localstatedir}/lib/PolicyKit-public
138%attr(0775,polkituser,polkituser) %{_localstatedir}/lib/misc/PolicyKit.reload
139
140%dir %{_datadir}/PolicyKit
141%dir %{_datadir}/PolicyKit/policy
142%{_datadir}/PolicyKit/policy/org.freedesktop.policykit.policy
143%{_datadir}/PolicyKit/config.dtd
144
145%{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit.service
146%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit.conf
147%{_libexecdir}/polkitd
148
149%{_sysconfdir}/profile.d/polkit-bash-completion.sh
150
151%files devel
152%defattr(-,root,root,-)
153
154%{_libdir}/lib*.so
155%{_libdir}/pkgconfig/*
156%{_includedir}/*
157
158# own this directory for now until this is settled on the D-Bus list
159%dir %{_datadir}/dbus-1/interfaces
160%{_datadir}/dbus-1/interfaces/org.freedesktop.PolicyKit.AuthenticationAgent.xml
161
162
163%files docs
164%defattr(-,root,root,-)
165
166%dir %{_datadir}/gtk-doc/html/polkit
167%{_datadir}/gtk-doc/html/polkit/*
168
169%changelog
170* Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.9-2
171- rebuilt with rpm-4.8.1 for pkg-config
172
173* Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9-1
174- new upstream release
175
176* Tue Jun 24 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8-3
177- initial build for Vine Linux
178- disable selinux support
179
180* Wed Apr 16 2008 David Zeuthen <davidz@redhat.com> - 0.8-2%{?dist}
181- Fix permissions and modes
182
183* Wed Apr 16 2008 David Zeuthen <davidz@redhat.com> - 0.8-1%{?dist}
184- Upstream 0.8 release
185
186* Sun Apr  6 2008 David Zeuthen <davidz@redhat.com> - 0.8-0.git20080404%{?dist}.3
187- Fix wrong permissions on the resolve exe helper
188
189* Fri Apr  4 2008 David Zeuthen <davidz@redhat.com> - 0.8-0.git20080404%{?dist}.2
190- Fix build
191
192* Fri Apr  4 2008 David Zeuthen <davidz@redhat.com> - 0.8-0.git20080404%{?dist}
193- Update to git snapshot; drop patches as they are upstream already
194
195* Fri Apr  4 2008 David Zeuthen <davidz@redhat.com> - 0.7-7%{?dist}
196- Include fix for CVE-2008-1658 (#439996)
197
198* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7-6
199- Autorebuild for GCC 4.3
200
201* Thu Jan 24 2008 Jon McCann <jmccann@redhat.com> - 0.7-5%{?dist}
202- Remove Requires: ConsoleKit since ConsoleKit now requires PolicyKit
203
204* Thu Dec  6 2007 David Zeuthen <davidz@redhat.com> - 0.7-4%{?dist}
205- Only run bash completion script if using bash (#418471)
206
207* Thu Dec  6 2007 David Zeuthen <davidz@redhat.com> - 0.7-3%{?dist}
208- Conflict with older hal release
209
210* Thu Dec  6 2007 David Zeuthen <davidz@redhat.com> - 0.7-2%{?dist}
211- BR intltool and adjust License to MIT
212
213* Thu Dec  6 2007 David Zeuthen <davidz@redhat.com> - 0.7-1%{?dist}
214- Update to latest upstream release
215
216* Thu Oct 11 2007 David Zeuthen <davidz@redhat.com> - 0.6-1%{?dist}
217- Update to latest upstream release
218
219* Tue Sep 25 2007 David Zeuthen <davidz@redhat.com> - 0.6-0.git20070925%{?dist}
220- Update to git snapshot
221
222* Fri Aug 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-3%{?dist}
223- Rebuild
224
225* Fri Aug 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-2%{?dist}
226- Upstream release 0.5
227
228* Fri Aug 10 2007 Matthias Clasen <mclasen@redhat.com> - 0.5-1.git20070731%{?dist}
229- Add missing Requires (#251268)
230- Own /etc/PolicyKit (#251274)
231
232* Tue Jul 31 2007 David Zeuthen <davidz@redhat.com> - 0.5-0.git20070731%{?dist}
233- Update to git snapshot
234
235* Fri Jul 27 2007 David Zeuthen <davidz@redhat.com> - 0.4-2%{?dist}
236- Incorporate comments from package review (#245015)
237
238* Wed Jul 25 2007 David Zeuthen <davidz@redhat.com> - 0.4-1%{?dist}
239- Update to version 0.4.
240
241* Tue Jun 19 2007 David Zeuthen <davidz@redhat.com> - 0.3-1%{?dist}
242- Initial build.
243
Note: See TracBrowser for help on using the repository browser.