File mate-polkit.spec of Package mate-polkit

#
# spec file for mate-polkit
#
# Copyright (c) 2014 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:           mate-polkit
%define _libname libpolkit-gtk-mate-1-0
%define _name   polkit-mate-1
%define typelib typelib-1_0-PolkitGtkMate-1.0
Version:        1.8.0
Release:        0
License:        LGPL-2.0+
Summary:        MATE authentification agent for PolicyKit-1
Url:            http://mate-desktop.org/
Group:          System/GUI/Other
Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz

BuildRequires:  mate-common
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang

%description
mate-polkit provides a D-Bus session bus service that is used to bring
up authentication dialogs used for obtaining privileges.

%package -n %{typelib}
Summary:        The MATE library typelib
Group:          System/GUI/Other

%description -n %{typelib}
This package contains the typelib files for the base MATE library
functions.

%package -n %{_libname}
Summary:        MATE authentification agent shared libraries
Group:          System/Libraries

%description -n %{_libname}
mate-polkit provides a D-Bus session bus service that is used to bring
up authentication dialogs used for obtaining privileges.

%package devel
Summary:        MATE authentification agent development files
Group:          Development/Libraries/Other
Requires:       %{_libname} = %{version}
Requires:       %{typelib} = %{version}

%description devel
mate-polkit provides a D-Bus session bus service that is used to bring
up authentication dialogs used for obtaining privileges.

%lang_package

%prep
%setup -q

%build
%configure --disable-static --libexecdir=%{_libexecdir}/polkit-mate
make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop

%post -n %{_libname} -p /sbin/ldconfig

%postun -n %{_libname} -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%dir %{_libexecdir}/polkit-mate
%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
%{_libexecdir}/polkit-mate/polkit-mate-authentication-agent-1

%files -n %{typelib}
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/PolkitGtkMate-1.0.typelib

%files -n %{_libname}
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/polkit-gtk-mate-1/
%{_libdir}/*.so
%{_libdir}/pkgconfig/polkit-gtk-mate-1.pc
%{_datadir}/gir-1.0/PolkitGtkMate-1.0.gir

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by