From 16e8f251427e6cc62a7548434964111b1ff92dfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 21 Dec 2012 22:05:16 +0200 Subject: [PATCH] new, version 1.5.0 based on fedora spec --- mate-polkit.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 mate-polkit.spec diff --git a/mate-polkit.spec b/mate-polkit.spec new file mode 100644 index 0000000..e57e73a --- /dev/null +++ b/mate-polkit.spec @@ -0,0 +1,73 @@ +Summary: Integrates polkit authentication for MATE desktop +Name: mate-polkit +Version: 1.5.0 +Release: 1 +License: LGPL v2+ +Group: X11/Applications +URL: http://mate-desktop.org/ +Source0: http://pub.mate-desktop.org/releases/1.5/%name-%version.tar.xz +# Source0-md5: 5639bec0c7667b5be9bbf2bac2931b31 +BuildRequires: gobject-introspection-devel +BuildRequires: gtk+2-devel +BuildRequires: mate-common +BuildRequires: polkit-devel +# needed for gobject-introspection support somehow, +# https://bugzilla.redhat.com/show_bug.cgi?id=847419#c17 asserts this is a bug (elsewhere) +# but I'm not entirely sure -- rex +BuildRequires: cairo-gobject-devel +#Provides: PolicyKit-authentication-agent +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Integrates polkit with the MATE Desktop environment + +%package devel +Summary: Integrates polkit with the MATE Desktop environment +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries + +%description devel +Development libraries for mate-polkit + +%prep +%setup -q +NOCONFIGURE=1 ./autogen.sh --disable-static + +%build +%configure \ + --disable-static + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{name} + +find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';' + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(644,root,root,755) +# yes, license really is LGPLv2+, despite included COPYING is about GPL, poke upstreamo +# to include COPYING.LIB here instead -- rex +%doc AUTHORS COPYING README +%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop +%attr(755,root,root) %{_libdir}/libpolkit-gtk-mate-1.so.*.*.* +%ghost %{_libdir}/libpolkit-gtk-mate-1.so.0 +%{_libdir}/girepository-1.0/PolkitGtkMate-1.0.typelib +%{_libexecdir}/polkit-mate-authentication-agent-1 + +%files devel +%defattr(644,root,root,755) +%{_libdir}/libpolkit-gtk-mate-1.so +%{_pkgconfigdir}/polkit-gtk-mate-1.pc +%{_includedir}/polkit-gtk-mate-1 +%{_datadir}/gir-1.0/PolkitGtkMate-1.0.gir -- 2.44.0