Tim Lauridsen cbcc750
%global dnf_org org.baseurl.Dnf
6ae7a53
%global dnf_version 2.5.0
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
Name:           dnfdaemon
3aa2861
Version:        0.3.18
3aa2861
Release:        1%{?dist}
Tim Lauridsen cbcc750
Summary:        DBus daemon for dnf package actions
b74c7c8
Tim Lauridsen cbcc750
License:        GPLv2+
6ae7a53
URL:            https://github.com/manatools/%{name}
12685f8
Source0:        %{url}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
BuildArch:      noarch
b74c7c8
Tim Lauridsen cbcc750
BuildRequires:  python3-devel
Tim Lauridsen cbfc8b4
BuildRequires:  systemd
b74c7c8
Tim Lauridsen cbcc750
Requires:       python3-gobject
Tim Lauridsen cbcc750
Requires:       python3-dbus
Tim Lauridsen cbcc750
Requires:       python3-dnf >= %{dnf_version}
Tim Lauridsen cbcc750
Requires:       polkit
Tim Lauridsen 0cb7c6d
b74c7c8
%{?systemd_requires}
Tim Lauridsen cbfc8b4
Tim Lauridsen cbcc750
%description
Tim Lauridsen cbcc750
Dbus daemon for performing package actions with the dnf package manager
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
c13279d
%package selinux
c13279d
Summary:        SELinux integration for the dnf-daemon
c13279d
c13279d
Requires:       %{name} = %{version}-%{release}
c13279d
c13279d
Requires(post):   policycoreutils-python-utils
c13279d
Requires(postun): policycoreutils-python-utils
c13279d
c13279d
# http://rpm.org/user_doc/boolean_dependencies.html#cautionary-tale-about-if
c13279d
Supplements:    (dnfdaemon and selinux-policy)
c13279d
c13279d
%description selinux
c13279d
Metapackage customizing the SELinux policy to make the dnf-daemon work with
c13279d
SELinux enabled in enforcing mode.
c13279d
c13279d
b74c7c8
%package -n python2-%{name}
b74c7c8
Summary:        Python 2 api for communicating with the dnf-daemon DBus service
b74c7c8
b74c7c8
BuildRequires:  python2-devel
b74c7c8
b74c7c8
Requires:       %{name} = %{version}-%{release}
b74c7c8
Requires:       pygobject3
b74c7c8
b74c7c8
%{?python_provide:%python_provide python2-%{name}}
b74c7c8
b74c7c8
%description -n python2-%{name}
b74c7c8
Python 2 api for communicating with the dnf-daemon DBus service
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
%package -n python3-%{name}
Tim Lauridsen cbcc750
Summary:        Python 3 api for communicating with the dnf-daemon DBus service
b74c7c8
Tim Lauridsen cbcc750
BuildRequires:  python3-devel
b74c7c8
Tim Lauridsen cbcc750
Requires:       %{name} = %{version}-%{release}
Tim Lauridsen cbcc750
Requires:       python3-gobject
Tim Lauridsen cbcc750
b74c7c8
%{?python_provide:%python_provide python3-%{name}}
b74c7c8
Tim Lauridsen cbcc750
%description -n python3-%{name}
Tim Lauridsen cbcc750
Python 3 api for communicating with the dnf-daemon DBus service
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
b74c7c8
%prep
6ae7a53
%autosetup -p 1
b74c7c8
b74c7c8
b74c7c8
%build
b74c7c8
# Nothing to build
b74c7c8
b74c7c8
b74c7c8
%install
b74c7c8
%make_install DATADIR=%{_datadir} SYSCONFDIR=%{_datadir}
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
%post
Tim Lauridsen cbfc8b4
%systemd_post %{name}.service
Tim Lauridsen cbcc750
b74c7c8
Tim Lauridsen cbcc750
%postun
Tim Lauridsen cbfc8b4
%systemd_postun %{name}.service
Tim Lauridsen cbfc8b4
b74c7c8
Tim Lauridsen cbfc8b4
%preun
Tim Lauridsen cbfc8b4
%systemd_preun %{name}.service
Tim Lauridsen cbcc750
b74c7c8
c13279d
%post selinux
c13279d
# apply the right selinux file context
c13279d
# http://fedoraproject.org/wiki/PackagingDrafts/SELinux#File_contexts
c13279d
semanage fcontext -a -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
c13279d
restorecon -R %{_datadir}/%{name}/%{name}-system || :
c13279d
c13279d
c13279d
%postun selinux
c13279d
if [ $1 -eq 0 ] ; then  # final removal
c13279d
semanage fcontext -d -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
c13279d
fi
c13279d
c13279d
Tim Lauridsen cbcc750
%files
b74c7c8
%license COPYING
b74c7c8
%doc README.md ChangeLog
Tim Lauridsen cbcc750
%{_datadir}/dbus-1/system-services/%{dnf_org}*
Tim Lauridsen cbcc750
%{_datadir}/dbus-1/services/%{dnf_org}*
Tim Lauridsen cbcc750
%{_datadir}/%{name}/
Tim Lauridsen cbfc8b4
%{_unitdir}/%{name}.service
Tim Lauridsen cbcc750
%{_datadir}/polkit-1/actions/%{dnf_org}*
b74c7c8
%{_datadir}/dbus-1/system.d/%{dnf_org}*
Tim Lauridsen cbcc750
%dir %{python3_sitelib}/%{name}
Tim Lauridsen cbcc750
%{python3_sitelib}/%{name}/__*
Tim Lauridsen cbcc750
%{python3_sitelib}/%{name}/server
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
c13279d
%files selinux
c13279d
# empty metapackage
c13279d
c13279d
b74c7c8
%files -n  python2-%{name}
Tim Lauridsen cbcc750
%{python_sitelib}/%{name}
Tim Lauridsen cbcc750
b74c7c8
Tim Lauridsen cbcc750
%files -n  python3-%{name}
Tim Lauridsen cbcc750
%{python3_sitelib}/%{name}/client
Tim Lauridsen cbcc750
b74c7c8
Tim Lauridsen cbcc750
%changelog
3aa2861
* Wed May 24 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.18-1
3aa2861
- New upstream release
3aa2861
6ae7a53
* Wed May 24 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.17-3
6ae7a53
- Add patch, fixing new keyword for progress.start (rhbz#1454854)
6ae7a53
- Requires dnf >= 2.5.0
6ae7a53
913ca69
* Mon May 01 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.17-2
913ca69
- Add patch, fixing deprecated API in hawkey (rhbz#1444830)
913ca69
6640a6e
* Sat Apr 15 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.17-1
6640a6e
- New upstream release
6640a6e
c13279d
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-11
c13279d
- Add -selinux subpackage and drag it in through boolean Supplements
c13279d
  Thanks to Kevin Kofler (rhbz#1395531)
c13279d
b74c7c8
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-10
b74c7c8
- Updated spec-file to latest guidelines
b74c7c8
- Removed obsolete bits
b74c7c8
- Moved dbus-config to non-user config-dir
b74c7c8
- Require dnf >= 2.2.0
b74c7c8
6ac1769
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-9
6ac1769
- Updated Patch fixing new dbus-signal with dnf >= 2.2.0
6ac1769
12685f8
* Thu Mar 23 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-8
12685f8
- Update URL to reflect new upstream
12685f8
- Merge all patches
12685f8
- More support for dnf >= 2.0.0
12685f8
2c05cdd
* Mon Feb 20 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-7
2c05cdd
- Add Patch3 for more support for dnf >= 2.0.0
2c05cdd
c1b5353
* Tue Feb 07 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-6
c1b5353
- Add Patch2 for more support for dnf >= 2.0.0
c1b5353
20f5169
* Fri Feb 03 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-5
20f5169
- Rebuilt with hard requirement for dnf >= 2.0.0
20f5169
cd97f72
* Fri Feb 03 2017 Björn Esser <besser82@fedoraproject.org> - 0.3.16-4
cd97f72
- Add Patch1 for supporting dnf-2.0
cd97f72
8f02cf3
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.16-3
8f02cf3
- Rebuild for Python 3.6
8f02cf3
645db9a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-2
645db9a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
645db9a
Tim Lauridsen 2eea656
* Wed May 25 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.16-1
Tim Lauridsen 2eea656
- bumped release
Tim Lauridsen 2eea656
Tim Lauridsen bff9b6f
* Tue May 10 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.15-1
Tim Lauridsen bff9b6f
- bumped release
Tim Lauridsen bff9b6f
Tim Lauridsen bff9b6f
* Fri Apr 29 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.14-1
Tim Lauridsen bff9b6f
- bumped release
Tim Lauridsen bff9b6f
Tim Lauridsen bff9b6f
* Fri Apr 29 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.13-1
Tim Lauridsen bff9b6f
- bumped release
Tim Lauridsen bff9b6f
Tim Lauridsen bff9b6f
* Tue Dec 01 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.12-2
Tim Lauridsen bff9b6f
- require dnf-1.1.0
4cc978e
Tim Lauridsen cbfc8b4
* Sat Nov 28 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.12-1
Tim Lauridsen bff9b6f
- added systemd service
Tim Lauridsen cbfc8b4
Tim Lauridsen cbfc8b4
* Wed Nov 18 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.11-1
Tim Lauridsen 0cb7c6d
- bumped release
Tim Lauridsen 0cb7c6d
Tim Lauridsen 0cb7c6d
* Wed Sep 30 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.10-2
Tim Lauridsen 0cb7c6d
- updated req. policycoreutils-python to policycoreutils-python-utils
27fbd23
Tim Lauridsen d9f0a09
* Wed Sep 30 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.10-1
Tim Lauridsen d9f0a09
- bumped release
ebee862
Tim Lauridsen 3e91894
* Wed May 27 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.9-1
Tim Lauridsen 3e91894
- bumped release
Tim Lauridsen 3e91894
Tim Lauridsen d8a5056
* Wed May 06 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.8-1
Tim Lauridsen d8a5056
- bumped release
Tim Lauridsen d8a5056
Tim Lauridsen d8a5056
* Sun Apr 26 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.7-1
Tim Lauridsen 8ba0a07
- bumped release
Tim Lauridsen 8ba0a07
Tim Lauridsen a2059c2
* Wed Apr 15 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.6-1
Tim Lauridsen a2059c2
- bumped release
Tim Lauridsen a2059c2
Tim Lauridsen a2059c2
* Wed Apr 15 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.5-1
Tim Lauridsen a2059c2
- bumped release
Tim Lauridsen a2059c2
Tim Lauridsen a2059c2
* Sun Apr 12 2015 Tim Lauridsen <timlau@fedoraproject.org> 0.3.4-1
Tim Lauridsen a2059c2
- bumped release
Tim Lauridsen a2059c2
- require dnf-0.6.3
Tim Lauridsen a2059c2
Tim Lauridsen cbcc750
* Fri Oct 17 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.3-1
Tim Lauridsen cbcc750
- bumped release
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Wed Oct 15 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.2-3
Tim Lauridsen cbcc750
- removed require python3-dnfdaemon from main package
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Wed Oct 15 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.2-2
Tim Lauridsen cbcc750
- include python3-dnfdaemon in the dnfdaemon main package
Tim Lauridsen cbcc750
- renamed python?-dnfdaemon-client to python?-dnfdaemon
Tim Lauridsen cbcc750
- include dir ownerships in the right packages
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Sun Oct 12 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.2-1
Tim Lauridsen cbcc750
- bumped release
Tim Lauridsen cbcc750
- fedora review cleanups
Tim Lauridsen cbcc750
- python-dnfdaemon-client should own %%{python_sitelib}/dnfdaemon/client
Tim Lauridsen cbcc750
- group %%files sections
Tim Lauridsen cbcc750
- use uploaded sources on github, not autogenerated ones.
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Sun Sep 21 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.1-1
Tim Lauridsen cbcc750
- updated ChangeLog (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Sun Sep 21 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.3.0-1
Tim Lauridsen cbcc750
- bumped release
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Mon Sep 01 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.2.5-1
Tim Lauridsen cbcc750
- updated ChangeLog (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- Hack for GObjects dont blow up (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Mon Sep 01 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.2.4-1
Tim Lauridsen cbcc750
- updated ChangeLog (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- Use GLib mainloop, instead of Gtk, there is crashing in F21
Tim Lauridsen cbcc750
  (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- use the same cache setup as dnf cli (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- fix cachedir setup caused by upstream changes (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- fix: show only latest updates (fixes : timlau/yumex-dnf#2)
Tim Lauridsen cbcc750
  (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- fix: only get latest upgrades (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Sun Jul 13 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.2.3-1
Tim Lauridsen cbcc750
- fix cachedir setup for dnf 0.5.3 bump dnf dnf requirement
Tim Lauridsen cbcc750
  (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
Tim Lauridsen cbcc750
* Thu May 29 2014 Tim Lauridsen <timlau@fedoraproject.org> 0.2.2-1
Tim Lauridsen cbcc750
- build: require dnf 0.5.2 (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- fix refactor issue (timlau@fedoraproject.org)
Tim Lauridsen cbcc750
- api: merged GetPackages with GetPackageWithAttributes.
Tim Lauridsen cbcc750
  (timlau@fedoraproject.org)