# Conditional for release and snapshot builds. Uncomment for release-builds. %global rel_build 1 # This is needed, because src-url contains branched part of versioning-scheme. %global branch 1.26 # Settings used for build from snapshots. %{!?rel_build:%global commit 8e0c8e17e0138afa7757a1bdf8edd6f2c7b47a14} %{!?rel_build:%global commit_date 20150930} %{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})} %{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}} %{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}} %{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz} Name: mate-polkit Version: %{branch}.1 %if 0%{?rel_build} Release: 1%{?dist} %else Release: 0.13%{?git_rel}%{?dist} %endif Summary: Integrates polkit authentication for MATE desktop License: LGPLv2+ URL: http://mate-desktop.org # for downloading the tarball use 'spectool -g -R mate-polkit.spec' # Source for release-builds. %{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz} # Source for snapshot-builds. %{!?rel_build:Source0: http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}} BuildRequires: desktop-file-utils BuildRequires: gtk3-devel BuildRequires: make BuildRequires: mate-common BuildRequires: polkit-devel BuildRequires: libappindicator-gtk3-devel Provides: PolicyKit-authentication-agent # dropping -devel subpackage Provides: mate-polkit-devel%{?_isa} = %{version}-%{release} Provides: mate-polkit = %{version}-%{release} Obsoletes: mate-polkit-devel < %{version}-%{release} %description Integrates polkit with the MATE Desktop environment %prep %if 0%{?rel_build} %autosetup -p1 %else %autosetup -n %{name}-%{commit} -p1 %endif %if 0%{?rel_build} #NOCONFIGURE=1 ./autogen.sh %else # 0%{?rel_build} # for snapshots # needed for git snapshots NOCONFIGURE=1 ./autogen.sh %endif # 0%{?rel_build} # fix https://github.com/mate-desktop/mate-polkit/issues/56 sed -i '/^Categories=/d' src/polkit-mate-authentication-agent-1.desktop.in sed -i '/^Categories=/d' src/polkit-mate-authentication-agent-1.desktop.in.in %build %configure \ --disable-static \ --enable-accountsservice \ --enable-appindicator=yes make %{?_smp_mflags} V=1 %install %{make_install} %find_lang %{name} find %{buildroot} -name '*.la' -exec rm -fv {} ';' %check desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop %files -f %{name}.lang %doc AUTHORS COPYING README %{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop %{_libexecdir}/polkit-mate-authentication-agent-1 %changelog * Sun Oct 09 2022 Wolfgang Ulbrich - 1.26.1-1 - update to 1.26.1 * Sun Jul 10 2022 Wolfgang Ulbrich - 1.26.0-3 - enable appindicator support for epel8 * Sun Jul 10 2022 Wolfgang Ulbrich - 1.26.0-2 - Fix segfault from gdk_x11_get_server_time if not on X11 - don't build with appindicator support for the moment - intial build for epel8 * Wed Aug 04 2021 Wolfgang Ulbrich - 1.26.0-1 - update to 1.26.0 * Thu Jul 22 2021 Fedora Release Engineering - 1.24.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.24.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.24.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 24 2020 Wolfgang Ulbrich - 1.24.0-2 - fix desktop file in autostart * Mon Feb 10 2020 Wolfgang Ulbrich - 1.24.0-1 - update to 1.24.0 * Mon Feb 03 2020 Wolfgang Ulbrich - 1.23.0-1 - update to 1.23.0 * Wed Jan 29 2020 Fedora Release Engineering - 1.22.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.22.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 04 2019 Wolfgang Ulbrich - 1.22.0-1 - update to 1.22.0 * Fri Feb 01 2019 Fedora Release Engineering - 1.20.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Dec 22 2018 Wolfgang Ulbrich - 1.20.2-1 - update to 1.20.2 * Fri Jul 13 2018 Fedora Release Engineering - 1.20.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 16 2018 Wolfgang Ulbrich - 1.20.1-1 - update to 1.20.1 release * Sun Feb 11 2018 Wolfgang Ulbrich - 1.20.0-1 - update to 1.20.0 release - drop -devel sub-package - switch to using autosetup * Thu Feb 08 2018 Fedora Release Engineering - 1.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Oct 22 2017 Wolfgang Ulbrich - 1.19.0-1 - update to 1.19.0 release * Thu Aug 03 2017 Fedora Release Engineering - 1.18.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue May 09 2017 Wolfgang Ulbrich - 1.18.1-1 - update to 1.18.1 release - fix broken status icon * Tue Mar 14 2017 Wolfgang Ulbrich - 1.18.0-1 - update to 1.18.0 release * Fri Feb 10 2017 Fedora Release Engineering - 1.17.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jan 15 2017 Wolfgang Ulbrich - 1.17.0-1 - update to 1.17.0 release * Wed Sep 21 2016 Wolfgang Ulbrich - 1.16.0-1 - update to 1.16.0 release * Thu Jun 09 2016 Wolfgang Ulbrich - 1.15.0-1 - update to 1.15.0 release * Tue Apr 05 2016 Wolfgang Ulbrich - 1.14.0-1 - update to 1.14.0 release * Sun Feb 07 2016 Wolfgang Ulbrich - 1.13.0-1 - update to 1.13.0 release * Thu Feb 04 2016 Fedora Release Engineering - 1.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 06 2015 Wolfgang Ulbrich - 1.12.0-1 - update to 1.12.0 release * Wed Oct 21 2015 Wolfgang Ulbrich - 1.11.0-1 - update to 1.11.0 release * Thu Sep 17 2015 Wolfgang Ulbrich - 1.10.2.1 - update to 1.10.2 release - build against gtk3 for f23 - enable accountsservice for faces * Wed Sep 02 2015 Wolfgang Ulbrich - 1.10.1.1 - update to 1.10.1 release - remove upstreamed patch * Wed Aug 19 2015 Wolfgang Ulbrich - 1.10.0-3 - fix missing focus on polkit windows - https://github.com/mate-desktop/mate-polkit/pull/22 * Wed Jun 17 2015 Fedora Release Engineering - 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Apr 06 2015 Wolfgang Ulbrich - 1.10.0-1 - update to 1.10.0 release * Thu Feb 26 2015 Wolfgang Ulbrich - 1.9.90-1 - update to 1.9.90 release * Sun Aug 17 2014 Fedora Release Engineering - 1.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jul 12 2014 Wolfgang Ulbrich - 1.9.0-1 - update to 1.9.0 release * Sat Jun 07 2014 Fedora Release Engineering - 1.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Mar 04 2014 Dan Mashal - 1.8.0-1 - Update to 1.8.0 * Sun Feb 16 2014 Wolfgang Ulbrich - 1.7.90-1 - update to 1.7.90 release * Sun Feb 09 2014 Dan Mashal - 1.7.2-1 - Update to 1.7.2 * Thu Dec 05 2013 Dan Mashal - 1.7.1-1 - Update to 1.7.1 * Sat Aug 03 2013 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 03 2013 Dan Mashal - 1.6.0-1 - Update to latest 1.6.0 stable release. * Thu Feb 14 2013 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 13 2012 Leigh Scott - 1.5.0-1 - update to 1.5.0 release * Mon Aug 27 2012 Rex Dieter - 1.4.0-4 - drop extraneous update-desktop-database scriptlet - don't mark .desktop file %%config - License: LGPLv2+ * Sun Aug 26 2012 Dan Mashal 1.4.0-3 - Move PolkitGTKMate gir file to devel package * Sat Aug 18 2012 Dan Mashal 1.4.0-2 - Remove duplicate doc macro, add provides, fix post macro, have devel package own proper dir * Wed Aug 08 2012 Dan Mashal 1.4.0-1 - Initial build