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