fd4a94
# For release builds set to 1, for snapshots set to 0
ccf4d3
%global relbuild 1
fd4a94
fd4a94
%if !0%{?relbuild}
32058b
%global commit b0e8a667e76ad75ea311aa752156ef77c8dd6262
23d2c2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
32058b
%global gitdate 20180108
ff21bc
%global git_ver -git%{gitdate}.%{shortcommit}
ff21bc
%global git_rel .git%{gitdate}.%{shortcommit}
fd4a94
%endif # !0%%{?relbuild}
23d2c2
23d2c2
# CMake builds out of tree.
23d2c2
%global _cmake_build_subdir %{_target_platform}
23d2c2
23d2c2
Name:		dnfdragora
ccf4d3
Version:	1.1.1
3e2536
Release:	5%{?git_rel}%{?dist}
23d2c2
Summary:	DNF package-manager based on libYui abstraction
23d2c2
23d2c2
License:	GPLv3+
23d2c2
URL:		https://github.com/manatools/%{name}
fd4a94
%if 0%{?relbuild}
ccf4d3
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
fd4a94
%else  # 0%%{?relbuild}
ccf4d3
Source0:	%{url}/archive/%{commit}/%{name}-%{version}%{?git_ver}.tar.gz
fd4a94
%endif # 0%%{?relbuild}
ccf4d3
ccf4d3
# Backports from upstream
ccf4d3
Patch0001:	0001-Fix-screenshot-referenced-in-dnfdragora-metainfo-fil.patch
ccf4d3
Patch0002:	0002-updater-Drop-unused-sh-import.patch
23d2c2
23d2c2
BuildArch:	noarch
23d2c2
23d2c2
BuildRequires:	cmake			>= 3.4.0
23d2c2
BuildRequires:	desktop-file-utils
23d2c2
BuildRequires:	gettext
23d2c2
BuildRequires:	libappstream-glib
23d2c2
BuildRequires:	pkgconfig
23d2c2
BuildRequires:	python3-devel		>= 3.4.0
23d2c2
BuildRequires:	python3-dnfdaemon
23d2c2
BuildRequires:	python3-PyYAML
31e9f7
BuildRequires:	python3-sphinx
23d2c2
BuildRequires:	python3-yui
ccf4d3
BuildRequires:	python3-notify2
ccf4d3
BuildRequires:	python3-pyxdg
ccf4d3
BuildRequires:	python3-cairosvg
ccf4d3
BuildRequires:	python3-pillow
ccf4d3
BuildRequires:	python3-pystray
23d2c2
23d2c2
Requires:	dnf			>= 1.0.9
23d2c2
Requires:	filesystem
23d2c2
Requires:	hicolor-icon-theme
5a6358
Requires:	libyui-mga-ncurses
23d2c2
Requires:	python3-dnfdaemon
23d2c2
Requires:	python3-PyYAML
23d2c2
Requires:	python3-yui		>= 1.1.1-10
23d2c2
9662be
Provides:	%{name}-gui		= %{version}-%{release}
ccf4d3
Recommends:	(libyui-mga-qt if qt5-qtbase-gui)
ccf4d3
Recommends:	(libyui-mga-gtk if gtk3)
9662be
9662be
# Yumex-DNF is dead.  Let's use dnfdragora-gui as drop-in replacement.
9662be
# See:  https://pagure.io/fesco/issue/1690#comment-434558
9662be
%if (0%{?fedora} >= 27 && 0%{?fedora} <= 30)
9662be
Obsoletes:	yumex-dnf		< 4.3.3-5
9662be
Provides:	yumex-dnf		= 4.3.3-5
9662be
%endif # (0%%{?fedora} >= 27 && 0%%{?fedora} <= 30)
9662be
23d2c2
%description
23d2c2
%{name} is a DNF frontend, based on rpmdragora from Mageia
23d2c2
(originally rpmdrake) Perl code.
23d2c2
23d2c2
%{name} is written in Python 3 and uses libYui, the widget
23d2c2
abstraction library written by SUSE, so that it can be run
23d2c2
using Qt 5, GTK+ 3, or ncurses interfaces.
23d2c2
23d2c2
9662be
%package updater
9662be
Summary:	Update notifier applet for %{name}
0c0bbe
0c0bbe
Requires:	%{name}			== %{version}-%{release}
fa596b
Requires:	libnotify
ccf4d3
Requires:	python3-notify2
ccf4d3
Requires:	python3-pyxdg
ccf4d3
Requires:	python3-cairosvg
fa596b
Requires:	python3-pillow
fa596b
Requires:	python3-pystray
0c0bbe
32058b
Obsoletes:	%{name}-gui		< 1.0.1-7
32058b
9662be
%description updater
0c0bbe
%{name} is a DNF frontend, based on rpmdragora from Mageia
0c0bbe
(originally rpmdrake) Perl code.
0c0bbe
0c0bbe
%{name} is written in Python 3 and uses libYui, the widget
0c0bbe
abstraction library written by SUSE, so that it can be run
0c0bbe
using Qt 5, GTK+ 3, or ncurses interfaces.
0c0bbe
9662be
This package provides the update notifier applet for %{name}.
0c0bbe
0c0bbe
23d2c2
%prep
fd4a94
%if 0%{?relbuild}
fd4a94
%autosetup -p 1
fd4a94
%else  # 0%%{?relbuild}
23d2c2
%autosetup -n %{name}-%{commit} -p 1
fd4a94
%endif # 0%%{?relbuild}
23d2c2
%{__mkdir_p} %{_cmake_build_subdir}
23d2c2
23d2c2
23d2c2
%build
23d2c2
pushd %{_cmake_build_subdir}
23d2c2
%cmake								\
23d2c2
	-DCHECK_RUNTIME_DEPENDENCIES=ON				\
23d2c2
	-DENABLE_COMPS=ON					\
23d2c2
	..
23d2c2
popd
23d2c2
%make_build -C %{_cmake_build_subdir}
23d2c2
23d2c2
23d2c2
%install
23d2c2
%make_install -C %{_cmake_build_subdir}
9df4ab
%find_lang %{name}
23d2c2
23d2c2
23d2c2
%check
23d2c2
# Validate desktop-files.
23d2c2
%{_bindir}/desktop-file-validate				\
23d2c2
	%{buildroot}%{_datadir}/applications/*.desktop
23d2c2
23d2c2
# Validate AppData-files.
23d2c2
%{_bindir}/appstream-util validate-relax --nonet		\
23d2c2
	%{buildroot}%{_datadir}/appdata/*.appdata.xml
23d2c2
23d2c2
23d2c2
%files -f %{name}.lang
23d2c2
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.yaml
23d2c2
%dir %{_sysconfdir}/%{name}
174119
%doc README.md TODO %{name}.yaml*.example
fa596b
%exclude %{python3_sitelib}/%{name}/updater.py
fa596b
%exclude %{python3_sitelib}/%{name}/__pycache__/updater.cpython*.py?
23d2c2
%license AUTHORS LICENSE
23d2c2
%{_bindir}/%{name}
23d2c2
%{_datadir}/appdata/*%{name}.appdata.xml
fa596b
%{_datadir}/applications/*%{name}.desktop
fa596b
%{_datadir}/applications/*%{name}-localinstall.desktop
23d2c2
%{_datadir}/%{name}
23d2c2
%{_datadir}/icons/hicolor/*/apps/%{name}*
31e9f7
%{_mandir}/man5/%{name}*.5*
31e9f7
%{_mandir}/man8/%{name}*.8*
fa596b
%dir %{python3_sitelib}/%{name}
fa596b
%{python3_sitelib}/%{name}/*
fa596b
23d2c2
9662be
%files updater
fa596b
%{_bindir}/%{name}-updater
fa596b
%{_datadir}/applications/*%{name}-updater.desktop
fa596b
%{_sysconfdir}/xdg/autostart/*%{name}*.desktop
fa596b
%{python3_sitelib}/%{name}/updater.py
fa596b
%{python3_sitelib}/%{name}/__pycache__/updater.cpython*.py?
0c0bbe
23d2c2
23d2c2
%changelog
3e2536
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
3e2536
- Rebuilt for Python 3.8.0rc1 (#1748018)
3e2536
5ab9f8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-4
5ab9f8
- Rebuilt for Python 3.8
5ab9f8
4c4d23
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
4c4d23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4c4d23
567615
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
567615
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
567615
ccf4d3
* Thu Jan 17 2019 Neal Gompa <ngompa13@gmail.com> - 1.1.1-1
ccf4d3
- Rebase to 1.1.1
ccf4d3
- Drop merged patches
ccf4d3
- Add patch to fix metainfo file and drop unused import
ccf4d3
571e80
* Mon Sep 17 2018 Adam Williamson <awilliam@redhat.com> - 1.0.1-13.git20180108.b0e8a66
571e80
- Backport PR#116 for RHBZ#1624652 (dnf callback-related crash)
571e80
8613fc
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-12.git20180108.b0e8a66
8613fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8613fc
1991f3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-11.git20180108.b0e8a66
1991f3
- Rebuilt for Python 3.7
1991f3
aeeb1f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10.git20180108.b0e8a66
aeeb1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aeeb1f
32058b
* Tue Jan 09 2018 Björn Esser <besser82@fedoraproject.org> - 1.0.1-9.git20180108.b0e8a66
32058b
- Updated to snapshot fixing rhbz#1510632
32058b
- Fix rhbz#1531118
32058b
- Remove the obsolete scriptlets for updating icon-cache
32058b
d32c69
* Fri Dec 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-8.git20171229.24e4647
d32c69
- Add proper Obsoletes
d32c69
9662be
* Fri Dec 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-7.git20171229.24e4647
9662be
- Updated to snapshot fixing several issues
9662be
- Rename dnfdragora-gui to dnfdragora-updater
9662be
- Add Provides for dnfdragora-gui to dnfdragora
9662be
4f01f0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6.git20170505.2a3b056
4f01f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4f01f0
c6f857
* Thu May 04 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-5.git20170505.2a3b056
c6f857
- Updated to snapshot adding new translations
c6f857
174119
* Thu May 04 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-4.git20170504.c525448
174119
- Updated to snapshot containing all patches and improvements
174119
155cdc
* Thu May 04 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-3.git20170503.ca79256
155cdc
- Updated to snapshot adding some stability improvements
155cdc
fa596b
* Wed May 03 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-2.git20170503.368ee94
fa596b
- Updated to snapshot adding dnfdragora-updater
fa596b
a54dec
* Sat Apr 15 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.1-1
a54dec
- New upstream release
a54dec
5a6358
* Wed Apr 12 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-19.git20170411.3662635
5a6358
- Updated to new snapshot obsoleting patches
5a6358
- Fixed dependency on libyui-mga-ncurses
5a6358
d9010a
* Tue Apr 11 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-18.git20170411.6098816
d9010a
- Add fix from anaselli: `RecursionError: maximum recursion depth exceeded`
d9010a
  (rhbz#1439247, #1436508, #1436451, #1440570, #1440565, #1440174)
d9010a
c250e3
* Mon Apr 10 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-17.git20170409.6138805
c250e3
- Updated to snapshot fixing several translations
c250e3
- Use rich-dependencies instead of requiring a virtual package
c250e3
7e6a44
* Mon Apr 10 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-16.git20170407.769c37d
7e6a44
- Adjusted Obsoletes for Yumex-DNF
7e6a44
2dd5a2
* Fri Apr 07 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-15.git20170407.769c37d
2dd5a2
- Updated to snapshot fixing several translations
2dd5a2
a3eccb
* Wed Apr 05 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-14.git20170405.cca9412
a3eccb
- Updated to snapshot fixing rhbz#1436451
a3eccb
09bb78
* Wed Apr 05 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-13.git20170404.63fe191
09bb78
- Updated to snapshot fixing several translations
09bb78
744471
* Sun Apr 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-12.git20170402.f3ca28b
744471
- Updated to snapshot with improved icons and some fixed translations
744471
6a370c
* Sat Apr 01 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-11.git20170401.b97db68
6a370c
- Updated to snapshot fixing some issues with the build-system
6a370c
31e9f7
* Sat Apr 01 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-10.git20170401.d018d08
31e9f7
- Updated to snapshot adding manpages and fixing some translations
31e9f7
8dc5e1
* Fri Mar 31 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-9.git20170330.f30c75c
8dc5e1
- Replace and obsolete Yumex-DNF
8dc5e1
  See:  https://pagure.io/fesco/issue/1690#comment-434558
8dc5e1
aab46f
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-8.git20170330.f30c75c
aab46f
- Updated to snapshot fixing a missing comma
e140f1
- Pick up desktop-file for installing local rpms
aab46f
2816c4
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-7.git20170330.6f50912
2816c4
- Updated to snapshot fixing new dbus-signal with dnf >= 2.2.0
2816c4
f826fe
* Tue Mar 28 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-6.git20170325.b8545aa
f826fe
- Updated to snapshot fixing several translations
f826fe
0c0bbe
* Thu Mar 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-5.git20170322.798975a
0c0bbe
- Add gui-subpkg
0c0bbe
- Prepare obsoletion of Yumex-DNF
0c0bbe
a39af0
* Thu Mar 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-4.git20170322.798975a
a39af0
- Updated to snapshot fixing an issue with the ncurses interface
a39af0
392bf3
* Sun Feb 26 2017 Christian Dersch <lupinix@mailbox.org> - 1.0.0-3.git20170226.ae5163e
392bf3
- updated to snapshot fixing behaviour on start without network
392bf3
0a9a4d
* Sun Feb 26 2017 Christian Dersch <lupinix@mailbox.org> - 1.0.0-2.git20170226.b0b2c9a
0a9a4d
- updated to snapshot fixing some minor issues
0a9a4d
fd4a94
* Sun Feb 19 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.0-1
fd4a94
- New upstream release (rhbz#1424827)
fd4a94
5b34e1
* Sun Feb 19 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.114.git20170218.58bd424
5b34e1
- New snapshot
5b34e1
Igor Gnatenko faafc0
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.0.0-0.113.git20170213.289d170
Igor Gnatenko faafc0
- Rebuild for brp-python-bytecompile
Igor Gnatenko faafc0
b23351
* Tue Feb 14 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.112.git20170213.289d170
b23351
- New snapshot
b23351
6c0a7b
* Wed Feb 08 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.111.git20170207.783aede
6c0a7b
- New snapshot
6c0a7b
c8bd9f
* Sun Feb 05 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.110.git20170205.d929620
c8bd9f
- New snapshot
c8bd9f
6596ce
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.109.git20170204.2c34e52
6596ce
- New snapshot
6596ce
- Drop patch, upstreamed
6596ce
- Run CMake with '-Wno-dev'-flag
6596ce
ff21bc
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.108.git20170204.f2bb4da
ff21bc
- Swap date and commit-sha in release-tag
ff21bc
9df4ab
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.107.gitf2bb4da.20170204
9df4ab
- Add patch to build and install translations with CMake
9df4ab
e0c92f
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.106.gitf2bb4da.20170204
e0c92f
- New snapshot
e0c92f
c1bf2a
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.105.git708a8a8.20170204
c1bf2a
- Drop Requires: libyui-mga-ncurses, dnf should be smart enough
c1bf2a
  to select the MGA-UI with the least deps during installation
c1bf2a
67c748
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.104.git708a8a8.20170204
67c748
- New snapshot
67c748
e62672
* Sat Feb 04 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.103.gita3492da.20170204
e62672
- New snapshot
e62672
2da27c
* Fri Feb 03 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.102.git4d872ab.20170202
2da27c
- New snapshot
2da27c
aeeb6f
* Fri Feb 03 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.101.gitcc4e556.20170202
aeeb6f
- Add Requires: libyui-mga-ncurses for functionality with low dependencies
aeeb6f
23d2c2
* Thu Feb 02 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.100.gitcc4e556.20170202
23d2c2
- Initial import (rhbz#1418788)
23d2c2
- Bump to 0.100 to superseed builds from COPR
23d2c2
23d2c2
* Thu Feb 02 2017 Björn Esser <besser82@fedoraproject.org> - 0.0.0-0.1.gitcc4e556.20170202
23d2c2
- Initial rpm-release (rhbz#1418788)