PolicyKit-vl.spec 7.6 KB

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