0fd0ad5
%global repo dde-polkit-agent
0fd0ad5
0fd0ad5
Name:           deepin-polkit-agent
a9e4a19
Version:        5.0.0
22ba7f8
Release:        2%{?dist}
0fd0ad5
Summary:        Deepin Polkit Agent
0fd0ad5
License:        GPLv3
0fd0ad5
URL:            https://github.com/linuxdeepin/dde-polkit-agent
0fd0ad5
Source0:        %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
0fd0ad5
c692fbf
BuildRequires:  gcc-c++
8422c75
BuildRequires:  pkgconfig(dtkwidget) >= 2.0.6
0fd0ad5
BuildRequires:  pkgconfig(dframeworkdbus)
0fd0ad5
BuildRequires:  pkgconfig(polkit-qt5-1)
0fd0ad5
BuildRequires:  pkgconfig(Qt5)
2f19268
BuildRequires:  pkgconfig(Qt5DBus)
2f19268
BuildRequires:  pkgconfig(Qt5Gui)
0fd0ad5
BuildRequires:  qt5-linguist
0fd0ad5
0fd0ad5
%description
0fd0ad5
DDE Polkit Agent is the polkit agent used in Deepin Desktop Environment.
0fd0ad5
8422c75
%package devel
8422c75
Summary:        Development package for %{name}
8422c75
Requires:       %{name}%{?_isa} = %{version}-%{release}
8422c75
8422c75
%description devel
8422c75
Header files and libraries for %{name}.
8422c75
0fd0ad5
%prep
0fd0ad5
%setup -q -n %{repo}-%{version}
a9e4a19
sed -i 's|lib/|libexec/|' dde-polkit-agent.pro polkit-dde-authentication-agent-1.desktop \
8422c75
    pluginmanager.cpp
0fd0ad5
0fd0ad5
%build
a9e4a19
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
a9e4a19
export PATH=%{_qt5_bindir}:$PATH
0fd0ad5
%qmake_qt5 PREFIX=%{_prefix}
0fd0ad5
%make_build
0fd0ad5
0fd0ad5
%install
0fd0ad5
%make_install INSTALL_ROOT=%{buildroot}
0fd0ad5
0fd0ad5
%files
0fd0ad5
%doc README.md
0fd0ad5
%license LICENSE
0fd0ad5
%dir %{_libexecdir}/polkit-1-dde
0fd0ad5
%{_libexecdir}/polkit-1-dde/%{repo}
0fd0ad5
%{_datadir}/%{repo}/
0fd0ad5
8422c75
%files devel
8422c75
%{_includedir}/dpa/agent-extension-proxy.h
8422c75
%{_includedir}/dpa/agent-extension.h
8422c75
0fd0ad5
%changelog
22ba7f8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
22ba7f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
22ba7f8
a9e4a19
* Mon Aug 05 2019 Robin Lee <cheeselee@fedoraproject.org> - 5.0.0-1
a9e4a19
- Release 5.0.0
a9e4a19
c7e609e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-2
c7e609e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c7e609e
c692fbf
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 0.2.4-1
c692fbf
- Update to 0.2.4
c692fbf
7c25a0d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
7c25a0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
7c25a0d
a3c6026
* Mon Nov 12 2018 mosquito <sensor.wen@gmail.com> - 0.2.1-2
a3c6026
- Deprecate dcombobox.h header
a3c6026
8422c75
* Wed Jul 18 2018 mosquito <sensor.wen@gmail.com> - 0.2.1-1
8422c75
- Update to 0.2.1
8422c75
1a3efc8
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-3
1a3efc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1a3efc8
546b448
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
546b448
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
546b448
2f19268
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 0.1.1-1
2f19268
- Update to 0.1.1
2f19268
0fd0ad5
* Mon Aug 21 2017 mosquito <sensor.wen@gmail.com> - 0.1.0-1
0fd0ad5
- Update to 0.1.0
0fd0ad5
0fd0ad5
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 0.0.10-1.git680c12f
0fd0ad5
- Update to 0.0.10
0fd0ad5
0fd0ad5
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 0.0.8-1.git7e0fcbc
0fd0ad5
- Initial package build