# For release builds set to 1, for snapshots set to 0 %global relbuild 0 %if !0%{?relbuild} %global commit 6f5091206b5cde2439fff3426bb951fb28357795 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20170330 %global git_ver -git%{gitdate}.%{shortcommit} %global git_rel .git%{gitdate}.%{shortcommit} %endif # !0%%{?relbuild} # CMake builds out of tree. %global _cmake_build_subdir %{_target_platform} Name: dnfdragora Version: 1.0.0 Release: 7%{?git_rel}%{?dist} Summary: DNF package-manager based on libYui abstraction License: GPLv3+ URL: https://github.com/manatools/%{name} %if 0%{?relbuild} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz %else # 0%%{?relbuild} Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{version}%{?git_ver}.tar.gz %endif # 0%%{?relbuild} BuildArch: noarch BuildRequires: cmake >= 3.4.0 BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: help2man BuildRequires: libappstream-glib BuildRequires: pkgconfig BuildRequires: python3-devel >= 3.4.0 BuildRequires: python3-dnfdaemon BuildRequires: python3-PyYAML BuildRequires: python3-yui Requires: dnf >= 1.0.9 Requires: filesystem Requires: hicolor-icon-theme Requires: yui-mga-tui Requires: python3-dnfdaemon Requires: python3-PyYAML Requires: python3-yui >= 1.1.1-10 %description %{name} is a DNF frontend, based on rpmdragora from Mageia (originally rpmdrake) Perl code. %{name} is written in Python 3 and uses libYui, the widget abstraction library written by SUSE, so that it can be run using Qt 5, GTK+ 3, or ncurses interfaces. %package gui Summary: Meta-package to pull the needed dependencies for %{name} GUI-mode Requires: %{name} == %{version}-%{release} Requires: yui-mga-gui # Yumex-DNF is dead. Let's use dnfdragora-gui as drop-in replacement. #if (0%%{?fedora} >= 27 && 0%%{?fedora} <= 30) || (0%%{?rhel} >=8 && 0%%{?rhel} <= 11) #Obsoletes: yumex-dnf <= 4.3.3-100 #endif # (0%%{?fedora} >= 27 && 0%%{?fedora} <= 30) || (0%%{?rhel} >=8 && 0%%{?rhel} <= 11) %description gui %{name} is a DNF frontend, based on rpmdragora from Mageia (originally rpmdrake) Perl code. %{name} is written in Python 3 and uses libYui, the widget abstraction library written by SUSE, so that it can be run using Qt 5, GTK+ 3, or ncurses interfaces. Meta-package to pull the needed dependencies for %{name} GUI-mode. %prep %if 0%{?relbuild} %autosetup -p 1 %else # 0%%{?relbuild} %autosetup -n %{name}-%{commit} -p 1 %endif # 0%%{?relbuild} %{__mkdir_p} %{_cmake_build_subdir} %build pushd %{_cmake_build_subdir} %cmake \ -DCHECK_RUNTIME_DEPENDENCIES=ON \ -DENABLE_COMPS=ON \ -Wno-dev \ .. popd %make_build -C %{_cmake_build_subdir} %install %make_install -C %{_cmake_build_subdir} %find_lang %{name} # Create man-page. %{__mkdir_p} %{buildroot}%{_mandir}/man1 export PYTHONPATH='%{buildroot}%{python3_sitelib}' %{_bindir}/help2man -s 1 -N \ --version-string='%{version}%{?git_ver}' \ -o %{buildroot}%{_mandir}/man1/%{name}.1 \ %{buildroot}%{_bindir}/%{name} unset PYTHONPATH %check # Validate desktop-files. %{_bindir}/desktop-file-validate \ %{buildroot}%{_datadir}/applications/*.desktop # Validate AppData-files. %{_bindir}/appstream-util validate-relax --nonet \ %{buildroot}%{_datadir}/appdata/*.appdata.xml %post /bin/touch --no-create \ %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create \ %{_datadir}/icons/hicolor &>/dev/null %{_bindir}/gtk-update-icon-cache \ %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans %{_bindir}/gtk-update-icon-cache \ %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %config(noreplace) %{_sysconfdir}/%{name}/%{name}.yaml %dir %{_sysconfdir}/%{name} %doc README.md TODO %{name}.yaml.example %license AUTHORS LICENSE %{_bindir}/%{name} %{_datadir}/appdata/*%{name}.appdata.xml %{_datadir}/applications/*%{name}.desktop %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/%{name}* %{_mandir}/man1/%{name}.1* %{python3_sitelib}/%{name} %files gui %dir %{_sysconfdir}/%{name} %changelog * Thu Mar 30 2017 Björn Esser - 1.0.0-7.git20170330.6f50912 - Updated to snapshot fixing new dbus-signal with dnf >= 2.2.0 * Tue Mar 28 2017 Björn Esser - 1.0.0-6.git20170325.b8545aa - Updated to snapshot fixing several translations * Thu Mar 23 2017 Björn Esser - 1.0.0-5.git20170322.798975a - Add gui-subpkg - Prepare obsoletion of Yumex-DNF * Thu Mar 23 2017 Björn Esser - 1.0.0-4.git20170322.798975a - Updated to snapshot fixing an issue with the ncurses interface * Sun Feb 26 2017 Christian Dersch - 1.0.0-3.git20170226.ae5163e - updated to snapshot fixing behaviour on start without network * Sun Feb 26 2017 Christian Dersch - 1.0.0-2.git20170226.b0b2c9a - updated to snapshot fixing some minor issues * Sun Feb 19 2017 Björn Esser - 1.0.0-1 - New upstream release (rhbz#1424827) * Sun Feb 19 2017 Björn Esser - 0.0.0-0.114.git20170218.58bd424 - New snapshot * Wed Feb 15 2017 Igor Gnatenko - 0.0.0-0.113.git20170213.289d170 - Rebuild for brp-python-bytecompile * Tue Feb 14 2017 Björn Esser - 0.0.0-0.112.git20170213.289d170 - New snapshot * Wed Feb 08 2017 Björn Esser - 0.0.0-0.111.git20170207.783aede - New snapshot * Sun Feb 05 2017 Björn Esser - 0.0.0-0.110.git20170205.d929620 - New snapshot * Sat Feb 04 2017 Björn Esser - 0.0.0-0.109.git20170204.2c34e52 - New snapshot - Drop patch, upstreamed - Run CMake with '-Wno-dev'-flag * Sat Feb 04 2017 Björn Esser - 0.0.0-0.108.git20170204.f2bb4da - Swap date and commit-sha in release-tag * Sat Feb 04 2017 Björn Esser - 0.0.0-0.107.gitf2bb4da.20170204 - Add patch to build and install translations with CMake * Sat Feb 04 2017 Björn Esser - 0.0.0-0.106.gitf2bb4da.20170204 - New snapshot * Sat Feb 04 2017 Björn Esser - 0.0.0-0.105.git708a8a8.20170204 - Drop Requires: libyui-mga-ncurses, dnf should be smart enough to select the MGA-UI with the least deps during installation * Sat Feb 04 2017 Björn Esser - 0.0.0-0.104.git708a8a8.20170204 - New snapshot * Sat Feb 04 2017 Björn Esser - 0.0.0-0.103.gita3492da.20170204 - New snapshot * Fri Feb 03 2017 Björn Esser - 0.0.0-0.102.git4d872ab.20170202 - New snapshot * Fri Feb 03 2017 Björn Esser - 0.0.0-0.101.gitcc4e556.20170202 - Add Requires: libyui-mga-ncurses for functionality with low dependencies * Thu Feb 02 2017 Björn Esser - 0.0.0-0.100.gitcc4e556.20170202 - Initial import (rhbz#1418788) - Bump to 0.100 to superseed builds from COPR * Thu Feb 02 2017 Björn Esser - 0.0.0-0.1.gitcc4e556.20170202 - Initial rpm-release (rhbz#1418788)