File PolicyKit-gnome.spec of Package PolicyKit-gnome
#
# spec file for package PolicyKit-gnome (Version 0.9.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: PolicyKit-gnome
%define polkit_version 0.9
%define gtk2_version 2.12.0
Summary: PolicyKit integration for the GNOME desktop
BuildRequires: dbus-1-glib-devel glib2-devel pkg-config
BuildRequires: gconf2-devel gnome-common gtk2-devel intltool
BuildRequires: gnome-doc-utils-devel gtk-doc
BuildRequires: PolicyKit-devel
BuildRequires: update-desktop-files
Url: http://svn.gnome.org/viewvc/policykit-gnome/trunk/
License: GPL v2 or later; LGPL v2.0 or later
Group: System/GUI/GNOME
Version: 0.9.2
Release: 9
AutoReqProv: on
Source: %{name}-%{version}.tar.bz2
Source1: PolicyKit-gnome-libs-0.8-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# PATCH-SUSE: don't retain authorizations by default (bnc#431569)
Patch1: PolicyKit-gnome-0.9.2-retain-auth-default.diff
%gconf_schemas_prereq
%description
PolicyKit-gnome provides a GNOME integration library and tools for
PolicyKit including an Authentication Agent that matches the look and
feel of the GNOME desktop.
Authors:
--------
David Zeuthen <davidz@redhat.com>
%prep
%setup -q
%patch1 -p1
%build
autoreconf -f -i
%configure --libexecdir=%{_prefix}/lib/PolicyKit-gnome
%__make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
%suse_update_desktop_file polkit-gnome-authorization Utility
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list %{name}.lang >%{name}.lst
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%files -f %{name}.lst
%defattr(-,root,root)
%doc README AUTHORS NEWS COPYING HACKING TODO
%dir %{_prefix}/lib/PolicyKit-gnome
%{_prefix}/lib/PolicyKit-gnome/polkit-gnome-manager
%{_datadir}/dbus-1/services/org.gnome.PolicyKit.service
%{_datadir}/dbus-1/services/org.gnome.PolicyKit.AuthorizationManager.service
%{_datadir}/dbus-1/services/gnome-org.freedesktop.PolicyKit.AuthenticationAgent.service
%{_bindir}/polkit-gnome-authorization
%{_datadir}/applications/polkit-gnome-authorization.desktop
%package libs
License: GPL v2 or later
Summary: Libraries provided by PolicyKit-gnome
Group: System/Libraries
Requires: gtk2 >= %{gtk2_version}
Requires: PolicyKit >= %{polkit_version}
%description libs
Libraries provided by PolicyKit-gnome.
Authors:
--------
David Zeuthen <davidz@redhat.com>
%post libs -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun libs -p /sbin/ldconfig
%files libs
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%package devel
License: GPL v2 or later
Summary: Headers, libraries and API docs for PolicyKit-gnome
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: pkg-config
Requires: gtk2-devel
Requires: PolicyKit-devel >= %{polkit_version}
Requires: PolicyKit-doc >= %{polkit_version}
%description devel
This package provides headers, libraries and API docs for
PolicyKit-gnome.
Authors:
--------
David Zeuthen <davidz@redhat.com>
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%package doc
License: GPL v2 or later; LGPL v2.0 or later
Summary: PolicyKit integration for the GNOME desktop
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description doc
PolicyKit-gnome provides a GNOME integration library and tools for
PolicyKit including an Authentication Agent that matches the look and
feel of the GNOME desktop.
Authors:
--------
David Zeuthen <davidz@redhat.com>
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/polkit-gnome
%package demo
License: GPL v2 or later
Summary: Demo application for PolicyKit-gnome
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description demo
Policy-gnome-demo provides a sample application that demonstrates the
features of both PolicyKit and PolicyKit-gnome. You normally do not
want to have this package installed.
Authors:
--------
David Zeuthen <davidz@redhat.com>
%files demo
%defattr(-,root,root)
%{_bindir}/polkit-gnome-example
%{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy
%changelog
* Thu Oct 16 2008 lnussel@suse.de
- don't retain authorizations by default (bnc#431569)
* Fri Aug 29 2008 jpr@suse.de
- Update to 0.9.2
* Avoid libsexy dep; ship with local copies of SexyURLLabel
* Avoid libgnome-vfs dep; use recent GTK+ instead
* Use standard icon names (Matthias Clasen)
* Avoid grabbing the pointer when showing dialog
* Remember state for "remember authorization" check box per action.
* Translations
- Remove policykit-gnome-bnc384159-bgo531609-no-grabs.diff, it was
upstreamed
- Remove PolicyKit-gnome-0.8-fix-i18n.patch. it was upstreamed
* Tue May 13 2008 aj@suse.de
- Cleanup BuildRequires.
* Sat May 10 2008 federico@novell.com
- Added policykit-gnome-bnc384159-bgo531609-no-grabs.diff to fix
https://bugzilla.novell.com/show_bug.cgi?id=384159 - don't grab the
mouse and keyboard in the authentication dialog.
* Fri May 09 2008 lnussel@suse.de
- don't check the button that stores the privilege forever by
default (bnc#388781)
* Thu Apr 17 2008 kay.sievers@novell.com
- update to version 0.8
add support for new constraint types: exe and selinux_context
don't crash when showing block authorizations for a user without .face
use gtk_window_present() to show the dialog
use gtk_window_present_with_time() to circumvent focus stealing prevention
merge translations from svn.gnome.org
make sure build works with -Wl,--as-needed
- change %%_libexecdir to %%_prefix/lib to match PolicyKit
- fix internationalization in auth dialog
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Thu Jan 31 2008 sbrabec@suse.cz
- Devhelp documentation moved to the separate package (bnc#248813).
* Wed Jan 02 2008 kay.sievers@novell.com
- copy from BETA
* Wed Dec 26 2007 kay.sievers@novell.com
- disable rpmlint error: PolicyKit-gnome-libs will contain multiple
libs and never be named after SONAME
- require PolicyKit-doc not -docs
* Sun Dec 23 2007 kay.sievers@novell.com
- update to version 0.7
- Also listen on the new desktop-neutral session bus interface
- New polkit-gnome-authorizations tool for managing authorizations
- Various bug fixes
* Fri Oct 19 2007 kay.sievers@novell.com
- update to version 0.6
implement <allow_any> to specify default answer for any user
don't fail on unknown XML tags, just skip them
make polkit-list-actions print information about <allow_any>
install hook for setuid/setgid
use chgrp instead of chown with group only
build example by default
fix heuristics for localizing PAM strings
support thinkfinger better
exit authentication daemon after 30 seconds of inactivity
add a --no-exit option to polkit-gnome-manager
* Sun Aug 05 2007 kay.sievers@suse.de
- add intltool to build-requires
* Sat Jul 28 2007 kay.sievers@suse.de
- initial checkin of version 0.4