File mate-polkit.spec of Package mate-polkit
#
# spec file for package mate-polkit
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define soname libpolkit-gtk-mate-1
%define sover 0
%define typelib typelib-1_0-PolkitGtkMate-1.0
%define _name polkit-mate-1
%define _version 1.18
Name: mate-polkit
Version: 1.18.1
Release: 0
Summary: MATE authentification agent for polkit
License: LGPL-2.0+
Group: System/GUI/Other
Url: https://mate-desktop.org/
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: mate-common >= %{_version}
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14
BuildRequires: pkgconfig(polkit-agent-1)
Recommends: %{name}-lang
%if !(0%{?sle_version} >= 120000 && !0%{?is_opensuse})
BuildRequires: pkgconfig(appindicator3-0.1)
%endif
%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 %{soname}-%{sover}
Summary: MATE authentification agent shared libraries
Group: System/Libraries
%description -n %{soname}-%{sover}
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: %{soname}-%{sover} = %{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
NOCONFIGURE=1 mate-autogen
%configure \
--disable-static \
--libexecdir=%{_libexecdir}/polkit-mate
make %{?_smp_mflags} V=1
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
%post -n %{soname}-%{sover} -p /sbin/ldconfig
%postun -n %{soname}-%{sover} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
%dir %{_libexecdir}/polkit-mate/
%{_libexecdir}/polkit-mate/polkit-mate-authentication-agent-1
%files -n %{typelib}
%defattr(-,root,root)
%{_libdir}/girepository-1.0/PolkitGtkMate-1.0.typelib
%files -n %{soname}-%{sover}
%defattr(-,root,root)
%{_libdir}/%{soname}.so.%{sover}*
%files devel
%defattr(-,root,root)
%{_includedir}/polkit-gtk-mate-1/
%{_libdir}/%{soname}.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