File PolicyKit-gnome.spec of Package PolicyKit-gnome
#
# spec file for package PolicyKit-gnome (Version 0.9.2)
#
# Copyright (c) 2009 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: translation-update-upstream
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: 16
Source: %{name}-%{version}.tar.bz2
Source1: PolicyKit-gnome-libs-0.8-rpmlintrc
# PATCH-FIX-UPSTREAM PolicyKit-gnome-fix-clickable-buttons.patch bgo594001 vuntz@novell.com -- Taken from Fedora
Patch0: PolicyKit-gnome-fix-clickable-buttons.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -q
translation-update-upstream
%patch0 -p0
%build
%configure \
--disable-static \
--libexecdir=%{_prefix}/lib/PolicyKit-gnome
%__make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%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.
%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.
%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.
%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.
%files demo
%defattr(-,root,root)
%{_bindir}/polkit-gnome-example
%{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy
%changelog