## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global repo dde-polkit-agent Name: deepin-polkit-agent Version: 5.4.14 Release: %autorelease Summary: Deepin Polkit Agent License: GPLv3 URL: https://github.com/linuxdeepin/dde-polkit-agent Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: dtkwidget-devel >= 5.1.1 BuildRequires: pkgconfig(dframeworkdbus) BuildRequires: pkgconfig(polkit-qt5-1) BuildRequires: pkgconfig(Qt5) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(gsettings-qt) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5Multimedia) BuildRequires: pkgconfig(Qt5MultimediaWidgets) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: qt5-linguist BuildRequires: make %description DDE Polkit Agent is the polkit agent used in Deepin Desktop Environment. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header files and libraries for %{name}. %prep %setup -q -n %{repo}-%{version} sed -i 's|/usr/lib|%{_libexecdir}|' dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \ pluginmanager.cpp # https://github.com/linuxdeepin/developer-center/issues/1721 sed -i 's/bool is_deepin = true/bool is_deepin = false/' policykitlistener.cpp # https://github.com/linuxdeepin/dde-polkit-agent/issues/26 sed -i '/setCancel/d' policykitlistener.cpp %build # help find (and prefer) qt5 utilities, e.g. qmake, lrelease export PATH=%{_qt5_bindir}:$PATH %qmake_qt5 PREFIX=%{_prefix} %make_build %install %make_install INSTALL_ROOT=%{buildroot} %files %doc README.md %license LICENSE %{_libexecdir}/polkit-1-dde/ %{_datadir}/%{repo}/ %files devel %{_includedir}/dpa/ %changelog * Thu Jul 21 2022 Fedora Release Engineering 5.4.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 5.4.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 05 2022 Robin Lee 5.4.14-1 - New release 5.4.14 * Mon Sep 06 2021 Robin Lee 5.4.12-1 - New release 5.4.12 * Wed Jul 21 2021 Fedora Release Engineering - 5.3.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 5.3.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 29 2020 Robin Lee - 5.3.0.2-1 - new upstream release: 5.3.0.2 * Mon Jul 27 2020 Fedora Release Engineering - 5.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 5.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 05 2019 Robin Lee - 5.0.0-1 - Release 5.0.0 * Wed Jul 24 2019 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 mosquito - 0.2.4-1 - Update to 0.2.4 * Thu Jan 31 2019 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 12 2018 mosquito - 0.2.1-2 - Deprecate dcombobox.h header * Wed Jul 18 2018 mosquito - 0.2.1-1 - Update to 0.2.1 * Thu Jul 12 2018 Fedora Release Engineering - 0.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Oct 27 2017 mosquito - 0.1.1-1 - Update to 0.1.1 * Mon Aug 21 2017 mosquito - 0.1.0-1 - Update to 0.1.0 * Fri Jul 14 2017 mosquito - 0.0.10-1.git680c12f - Update to 0.0.10 * Fri May 19 2017 mosquito - 0.0.8-1.git7e0fcbc - Initial package build