%global distname fedscm_admin Name: fedscm-admin Version: 1.0.13 Release: 1%{?dist} Summary: CLI tool to process Fedora SCM requests License: GPLv2+ URL: https://pagure.io/fedscm-admin Source0: https://releases.pagure.org/fedscm-admin/fedscm_admin-%{version}.tar.gz BuildArch: noarch BuildRequires: help2man BuildRequires: python3-devel BuildRequires: python3dist(setuptools) # For tests BuildRequires: python3dist(click) BuildRequires: python3dist(python-bugzilla) BuildRequires: python3dist(python-fedora) BuildRequires: python3dist(pyyaml) BuildRequires: python3dist(requests) BuildRequires: python3dist(six) BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) Requires: git-core %description CLI tool to process Fedora SCM requests. %prep %autosetup -n %{distname}-%{version} rm -vr *.egg-info %build %py3_build %check export FEDSCM_ADMIN_TEST_CONFIG=true export PYTHONPATH=%{buildroot}/%{python3_sitelib} export LC_ALL=C.UTF-8 export LANG=C.UTF-8 py.test-3 tests/ unset FEDSCM_ADMIN_TEST_CONFIG %install # Set where the config file is so that generating the man pages will not traceback export FEDSCM_ADMIN_CONFIG=%{buildroot}/%{_sysconfdir}/fedscm-admin/config.ini export PYTHONPATH=%{buildroot}/%{python3_sitelib} export LC_ALL=C.UTF-8 export LANG=C.UTF-8 %py3_install cat >append-to-manual < %{buildroot}/%{_mandir}/man1/fedscm-admin.1 unset FEDSCM_ADMIN_CONFIG %files %doc README.md %license LICENSE %{python3_sitelib}/%{distname}-*.egg-info/ %{python3_sitelib}/%{distname}/ %{_bindir}/fedscm-admin %dir %{_sysconfdir}/fedscm-admin %{_sysconfdir}/fedscm-admin/config.ini %{_mandir}/man1/fedscm-admin.1* %changelog * Mon Apr 06 2020 Mohan Boddu - 1.0.13-1 - Update to 1.0.13 * Thu Feb 13 2020 Mohan Boddu - 1.0.12-1 - Update to 1.0.12 * Thu Nov 28 2019 Igor Gnatenko - 1.0.11-1 - Update to 1.0.11 * Tue Sep 24 2019 Mohan Boddu - 1.0.10-1 - Update to 1.0.10 * Mon Aug 19 2019 Miro Hrončok - 1.0.9-3 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 1.0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jul 19 2019 Mohan Boddu - 1.0.9-1 - Fixes creating package.cfg in epel7 branches * Wed Jul 17 2019 Mohan Boddu - 1.0.8-1 - Create package.cfg file in epel7+ branches * Mon Jul 08 2019 Mohan Boddu - 1.0.7-1 - Adding support for epel8 and epel8-playground branches * Tue May 14 2019 Mohan Boddu - 1.0.6-1 - Adding support for flatpak namespace * Wed Feb 20 2019 Mohan Boddu - 1.0.5-1 - Fixing tests * Wed Feb 20 2019 Mohan Boddu - 1.0.4-1 - Fedora 30 is now branching - Give a little more details when finding a ticket to be invalid (pingou) * Thu Jan 31 2019 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Sep 28 2018 Jason L Tibbitts III - 1.0.2-2 - Bump release to allow a push to F29. * Tue Aug 14 2018 Jason L Tibbitts III - 1.0.2-1 - Update to 1.0.2 which can process F29 branches properly. * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0.0-2 - Rebuilt for Python 3.7 * Mon Jun 11 2018 mprahl - 1.0.0-1 - Initial release