File PolicyKit-gnome.spec of Package PolicyKit-gnome
#
# spec file for package PolicyKit-gnome
#
# Copyright (c) 2011 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/
#
Name: PolicyKit-gnome
%define polkit_version 0.9
%define gtk2_version 2.12.0
Summary: PolicyKit (old version) integration for the GNOME desktop
Url: http://svn.gnome.org/viewvc/policykit-gnome/trunk/
License: GPLv2+
Group: System/GUI/GNOME
Version: 0.9.2
Release: 27
Source: %{name}-%{version}.tar.bz2
Source1: PolicyKit-gnome-libs-0.8-rpmlintrc
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM PolicyKit-gnome-fix-clickable-buttons.patch bgo594001 vuntz@novell.com -- Taken from Fedora
Patch0: PolicyKit-gnome-fix-clickable-buttons.patch
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
Supplements: packageand(PolicyKit:gnome-session)
Recommends: %{name}-lang
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.
%package tools
License: GPLv2+
Summary: PolicyKit (old version) integration for the GNOME desktop -- Tools
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description tools
This package contains graphical tool related to PolicyKit, such as a tool
to configure authorizations for PolicyKit actions.
%package libs
License: GPLv2+
Summary: Libraries provided by PolicyKit-gnome (old version)
Group: System/Libraries
Requires: gtk2 >= %{gtk2_version}
Requires: PolicyKit >= %{polkit_version}
%description libs
Libraries provided by PolicyKit-gnome.
%package devel
License: GPLv2+
Summary: Headers, libraries and API docs for PolicyKit-gnome (old version)
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: pkg-config
Requires: gtk2-devel
Requires: PolicyKit-gnome-libs = %{version}
Requires: PolicyKit-devel >= %{polkit_version}
Requires: PolicyKit-doc >= %{polkit_version}
%description devel
This package provides headers, libraries and API docs for
PolicyKit-gnome.
%package doc
License: GPLv2+ ; LGPLv2.0+
Summary: PolicyKit (old version) 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.
%package demo
License: GPLv2+
Summary: Demo application for PolicyKit-gnome (old version)
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p0
%build
%configure \
--disable-static \
--libexecdir=%{_prefix}/lib/PolicyKit-gnome
make %{?_smp_mflags}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%suse_update_desktop_file polkit-gnome-authorization X-SuSE-ControlCenter-System
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%post tools
%desktop_database_post
%postun tools
%desktop_database_postun
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files -f %{name}.schemas_list
%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
%files tools
%defattr(-,root,root)
%{_bindir}/polkit-gnome-authorization
%{_datadir}/applications/polkit-gnome-authorization.desktop
%files libs
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/polkit-gnome
%files demo
%defattr(-,root,root)
%{_bindir}/polkit-gnome-example
%{_datadir}/PolicyKit/policy/org.gnome.policykit.examples.policy
%files lang -f %{name}.lang
%changelog