| 1 | Summary: PolicyKit Authorization Framework |
|---|
| 2 | Summary(ja): PolicyKit 認証フレームワーク |
|---|
| 3 | Name: polkit |
|---|
| 4 | Version: 0.105 |
|---|
| 5 | Release: 1%{?_dist_release} |
|---|
| 6 | License: LGPLv2+ |
|---|
| 7 | URL: http://www.freedesktop.org/wiki/Software/polkit |
|---|
| 8 | Source0: http://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.gz |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 10 | Group: System Environment/Libraries |
|---|
| 11 | BuildRequires: glib2-devel |
|---|
| 12 | BuildRequires: expat-devel |
|---|
| 13 | BuildRequires: pam-devel |
|---|
| 14 | BuildRequires: eggdbus-devel >= 0.6 |
|---|
| 15 | BuildRequires: gtk-doc |
|---|
| 16 | BuildRequires: intltool |
|---|
| 17 | BuildRequires: gobject-introspection-devel |
|---|
| 18 | |
|---|
| 19 | Requires: ConsoleKit |
|---|
| 20 | Requires: dbus |
|---|
| 21 | |
|---|
| 22 | Vendor: Project Vine |
|---|
| 23 | Distribution: Vine Linux |
|---|
| 24 | |
|---|
| 25 | %description |
|---|
| 26 | PolicyKit is a toolkit for defining and handling authorizations. |
|---|
| 27 | It is used for allowing unprivileged processes to speak to privileged |
|---|
| 28 | processes. |
|---|
| 29 | |
|---|
| 30 | %package devel |
|---|
| 31 | Summary: Development files for PolicyKit |
|---|
| 32 | Summary(ja): PolicyKit の開発用ファイル |
|---|
| 33 | Group: Development/Libraries |
|---|
| 34 | Requires: %name = %{version}-%{release} |
|---|
| 35 | Requires: %name-docs = %{version}-%{release} |
|---|
| 36 | Requires: pkgconfig |
|---|
| 37 | Requires: glib2-devel |
|---|
| 38 | |
|---|
| 39 | %description devel |
|---|
| 40 | Development files for PolicyKit. |
|---|
| 41 | |
|---|
| 42 | %package docs |
|---|
| 43 | Summary: Development documentation for PolicyKit |
|---|
| 44 | Summary(ja): PolicyKit の開発用ドキュメント |
|---|
| 45 | Group: Development/Libraries |
|---|
| 46 | Requires: %name-devel = %{version}-%{release} |
|---|
| 47 | Requires: gtk-doc |
|---|
| 48 | |
|---|
| 49 | %description docs |
|---|
| 50 | Development documentation for PolicyKit. |
|---|
| 51 | |
|---|
| 52 | %package desktop-policy |
|---|
| 53 | Summary: Roles and default policy for desktop usage |
|---|
| 54 | Summary(ja): デスクトップ用途のロールとデフォルトポリシー |
|---|
| 55 | Group: Development/Libraries |
|---|
| 56 | Requires(pre): /usr/sbin/groupadd |
|---|
| 57 | Requires(preun): /usr/sbin/groupdel |
|---|
| 58 | |
|---|
| 59 | %description desktop-policy |
|---|
| 60 | Roles and default policy for desktop usage. |
|---|
| 61 | |
|---|
| 62 | %prep |
|---|
| 63 | %setup -q |
|---|
| 64 | |
|---|
| 65 | %build |
|---|
| 66 | %configure --enable-gtk-doc --disable-static --libexecdir=%{_libexecdir}/polkit-1 --enable-introspection --enable-examples |
|---|
| 67 | make |
|---|
| 68 | |
|---|
| 69 | %install |
|---|
| 70 | rm -rf $RPM_BUILD_ROOT |
|---|
| 71 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 72 | |
|---|
| 73 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|---|
| 74 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la |
|---|
| 75 | |
|---|
| 76 | %find_lang polkit-1 |
|---|
| 77 | |
|---|
| 78 | ### |
|---|
| 79 | ### BEGIN DESKTOP POLICY CONFIGURATION ### |
|---|
| 80 | ### |
|---|
| 81 | |
|---|
| 82 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/polkit-1/localauthority.conf.d/60-desktop-policy.conf << EOF |
|---|
| 83 | # This allows users in the wheel group to authenticate as the |
|---|
| 84 | # administrator. |
|---|
| 85 | # |
|---|
| 86 | # DO NOT EDIT THIS FILE, it will be overwritten on update. |
|---|
| 87 | |
|---|
| 88 | [Configuration] |
|---|
| 89 | AdminIdentities=unix-group:wheel |
|---|
| 90 | EOF |
|---|
| 91 | |
|---|
| 92 | cat > $RPM_BUILD_ROOT%{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla << EOF |
|---|
| 93 | # Authorizations/policy for the wheel group. |
|---|
| 94 | # |
|---|
| 95 | # DO NOT EDIT THIS FILE, it will be overwritten on update. |
|---|
| 96 | # |
|---|
| 97 | # Allow users in the wheel group to do certain actions without being |
|---|
| 98 | # interrupted by password dialogs |
|---|
| 99 | # |
|---|
| 100 | [Wheel Group Permissions] |
|---|
| 101 | Identity=unix-group:wheel |
|---|
| 102 | Action=org.gnome.settingsdaemon.datetimemechanism.*;org.kde.kcontrol.kcmclock.save;org.freedesktop.RealtimeKit1.*;org.freedesktop.udisks.filesystem-mount-system-internal;org.freedesktop.hostname1.set-static-hostname;org.freedesktop.accounts.*; |
|---|
| 103 | ResultAny=auth_admin |
|---|
| 104 | ResultInactive=auth_admin |
|---|
| 105 | ResultActive=yes |
|---|
| 106 | EOF |
|---|
| 107 | |
|---|
| 108 | ### |
|---|
| 109 | ### END DESKTOP POLICY CONFIGURATION |
|---|
| 110 | ### |
|---|
| 111 | |
|---|
| 112 | %clean |
|---|
| 113 | rm -rf $RPM_BUILD_ROOT |
|---|
| 114 | |
|---|
| 115 | %post -p /sbin/ldconfig |
|---|
| 116 | |
|---|
| 117 | %postun -p /sbin/ldconfig |
|---|
| 118 | |
|---|
| 119 | %pre desktop-policy |
|---|
| 120 | /usr/sbin/groupadd -r desktop_admin_r 2> /dev/null || : |
|---|
| 121 | /usr/sbin/groupadd -r desktop_user_r 2> /dev/null || : |
|---|
| 122 | |
|---|
| 123 | %files desktop-policy |
|---|
| 124 | %defattr(-,root,root,-) |
|---|
| 125 | %{_sysconfdir}/polkit-1/localauthority.conf.d/60-desktop-policy.conf |
|---|
| 126 | %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla |
|---|
| 127 | |
|---|
| 128 | %files -f polkit-1.lang |
|---|
| 129 | %defattr(-,root,root,-) |
|---|
| 130 | %doc COPYING |
|---|
| 131 | %{_libdir}/lib*.so.* |
|---|
| 132 | %dir %{_libdir}/polkit-1 |
|---|
| 133 | %dir %{_libdir}/polkit-1/extensions |
|---|
| 134 | %{_libdir}/polkit-1/extensions/*.so |
|---|
| 135 | %{_datadir}/man/man1/* |
|---|
| 136 | %{_datadir}/man/man8/* |
|---|
| 137 | %{_datadir}/dbus-1/system-services/* |
|---|
| 138 | %dir %{_datadir}/polkit-1/ |
|---|
| 139 | %dir %{_datadir}/polkit-1/actions |
|---|
| 140 | %{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy |
|---|
| 141 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf |
|---|
| 142 | %{_sysconfdir}/pam.d/polkit-1 |
|---|
| 143 | %{_sysconfdir}/polkit-1 |
|---|
| 144 | %exclude %{_sysconfdir}/polkit-1/localauthority.conf.d/60-desktop-policy.conf |
|---|
| 145 | %{_bindir}/pkaction |
|---|
| 146 | %{_bindir}/pkcheck |
|---|
| 147 | %{_libexecdir}/polkit-1/polkitd |
|---|
| 148 | %{_libdir}/girepository-1.0/*.typelib |
|---|
| 149 | |
|---|
| 150 | # see upstream docs for why these permissions are necessary |
|---|
| 151 | %attr(4755,root,root) %{_bindir}/pkexec |
|---|
| 152 | %attr(4755,root,root) %{_libexecdir}/polkit-1/polkit-agent-helper-1 |
|---|
| 153 | |
|---|
| 154 | %attr(0700,root,root) %dir %{_localstatedir}/lib/polkit-1/ |
|---|
| 155 | %dir %{_localstatedir}/lib/polkit-1/localauthority |
|---|
| 156 | %dir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d |
|---|
| 157 | %dir %{_localstatedir}/lib/polkit-1/localauthority/20-org.d |
|---|
| 158 | %dir %{_localstatedir}/lib/polkit-1/localauthority/30-site.d |
|---|
| 159 | %dir %{_localstatedir}/lib/polkit-1/localauthority/50-local.d |
|---|
| 160 | %dir %{_localstatedir}/lib/polkit-1/localauthority/90-mandatory.d |
|---|
| 161 | |
|---|
| 162 | %files devel |
|---|
| 163 | %defattr(-,root,root,-) |
|---|
| 164 | %{_libdir}/lib*.so |
|---|
| 165 | %{_libdir}/pkgconfig/*.pc |
|---|
| 166 | %{_datadir}/gir-1.0/*.gir |
|---|
| 167 | %{_includedir}/* |
|---|
| 168 | %{_bindir}/pk-example-frobnicate |
|---|
| 169 | %{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy |
|---|
| 170 | |
|---|
| 171 | %files docs |
|---|
| 172 | %defattr(-,root,root,-) |
|---|
| 173 | %{_datadir}/gtk-doc/html/* |
|---|
| 174 | |
|---|
| 175 | %changelog |
|---|
| 176 | * Tue May 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.105-1 |
|---|
| 177 | - new upstream release |
|---|
| 178 | |
|---|
| 179 | * Sat Feb 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.104-1 |
|---|
| 180 | - new upstream release |
|---|
| 181 | |
|---|
| 182 | * Sat Aug 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.102-1 |
|---|
| 183 | - new upstream release |
|---|
| 184 | |
|---|
| 185 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99-1 |
|---|
| 186 | - new upstream release |
|---|
| 187 | |
|---|
| 188 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.96-2 |
|---|
| 189 | - build with rpm-4.8.1-1 for pkg-config file |
|---|
| 190 | |
|---|
| 191 | * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.96-1 |
|---|
| 192 | - update to 0.96 |
|---|
| 193 | - BR: eggdbus-devel >= 0.6 |
|---|
| 194 | |
|---|
| 195 | * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.2.git20090913 |
|---|
| 196 | - remove Obsoletes:/Provides: PolicyKit* |
|---|
| 197 | |
|---|
| 198 | * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.95-0.1.git20090913 |
|---|
| 199 | - initial build for Vine Linux |
|---|
| 200 | |
|---|
| 201 | * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.2 |
|---|
| 202 | - Refine how Obsolete: is used and also add Provides: (thanks Jesse |
|---|
| 203 | Keating and nim-nim) |
|---|
| 204 | |
|---|
| 205 | * Mon Sep 14 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913.1 |
|---|
| 206 | - Add bugfix for polkit_unix_process_new_full() (thanks Bastien Nocera) |
|---|
| 207 | - Obsolete old PolicyKit packages |
|---|
| 208 | |
|---|
| 209 | * Sun Sep 13 2009 David Zeuthen <davidz@redhat.com> - 0.95-0.git20090913 |
|---|
| 210 | - Update to git snapshot |
|---|
| 211 | - Drop upstreamed patches |
|---|
| 212 | - Turn on GObject introspection |
|---|
| 213 | - Don't delete desktop_admin_r and desktop_user_r groups when |
|---|
| 214 | uninstalling polkit-desktop-policy |
|---|
| 215 | |
|---|
| 216 | * Fri Sep 11 2009 David Zeuthen <davidz@redhat.com> - 0.94-4 |
|---|
| 217 | - Add some patches from git master |
|---|
| 218 | - Sort pkaction(1) output |
|---|
| 219 | - Bug 23867 – UnixProcess vs. SystemBusName aliasing |
|---|
| 220 | |
|---|
| 221 | * Thu Aug 13 2009 David Zeuthen <davidz@redhat.com> - 0.94-3 |
|---|
| 222 | - Add desktop_admin_r and desktop_user_r groups along with a first cut |
|---|
| 223 | of default authorizations for users in these groups. |
|---|
| 224 | |
|---|
| 225 | * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-2 |
|---|
| 226 | - Disable GObject Introspection for now as it breaks the build |
|---|
| 227 | |
|---|
| 228 | * Wed Aug 12 2009 David Zeuthen <davidz@redhat.com> - 0.94-1 |
|---|
| 229 | - Update to upstream release 0.94 |
|---|
| 230 | |
|---|
| 231 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3 |
|---|
| 232 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 233 | |
|---|
| 234 | * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-2 |
|---|
| 235 | - Rebuild |
|---|
| 236 | |
|---|
| 237 | * Mon Jul 20 2009 David Zeuthen <davidz@redhat.com> - 0.93-1 |
|---|
| 238 | - Update to 0.93 |
|---|
| 239 | |
|---|
| 240 | * Tue Jun 09 2009 David Zeuthen <davidz@redhat.com> - 0.92-3 |
|---|
| 241 | - Don't make docs noarch (I *heart* multilib) |
|---|
| 242 | - Change license to LGPLv2+ |
|---|
| 243 | |
|---|
| 244 | * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-2 |
|---|
| 245 | - Rebuild |
|---|
| 246 | |
|---|
| 247 | * Mon Jun 08 2009 David Zeuthen <davidz@redhat.com> - 0.92-1 |
|---|
| 248 | - Update to 0.92 release |
|---|
| 249 | |
|---|
| 250 | * Wed May 27 2009 David Zeuthen <davidz@redhat.com> - 0.92-0.git20090527 |
|---|
| 251 | - Update to 0.92 snapshot |
|---|
| 252 | |
|---|
| 253 | * Mon Feb 9 2009 David Zeuthen <davidz@redhat.com> - 0.91-1 |
|---|
| 254 | - Initial spec file. |
|---|