39626ea
%global gitrev bb0ae
d2826e3
%global posttag git%{gitrev}
d2826e3
%global snapshot %{version}-%{posttag}
d2826e3
d2826e3
Name:       pybugz
d2826e3
Summary:    Command line interface for Bugzilla written in Python
39626ea
Version:    0.13
39626ea
Release:    1.%{posttag}%{?dist}
d2826e3
License:    GPLv2
d2826e3
URL:        https://github.com/williamh/pybugz
d2826e3
BuildArch:  noarch
d2826e3
a75cd20
Requires:       python3
a75cd20
BuildRequires:  python3-devel
c0577fe
BuildRequires:  python3-setuptools
d2826e3
39626ea
Patch0: pybugz-0.13-gitbb0ae-rh-default.patch
9f9ef00
Patch1: pybugz-0.13-gitbb0ae-limit-configurable.patch
84d47d3
d2826e3
%if ! 0%{?rhel}
d2826e3
# no bash-completion for RHEL
d2826e3
%global bash_completion 1
d2826e3
%endif
d2826e3
7fcb169
%if 0%{?bash_completion}
d2826e3
BuildRequires: bash-completion pkgconfig
d2826e3
%endif
d2826e3
d2826e3
# There is possible to download upstream tarball generated by github, but it is
d2826e3
# quite old now.  For HOWTO obtain correct tarball see the "prepare-tarball.sh"
d2826e3
# script (in dist-git).
d2826e3
Source0: %{name}-%{snapshot}.tar.gz
d2826e3
d2826e3
%description
d2826e3
Pybugz was conceived as a tool to speed up the work-flow for Gentoo Linux
d2826e3
contributors when dealing with bugs using Bugzilla.  By avoiding the clunky web
d2826e3
interface, the user can search, isolate and contribute to the project very
d2826e3
quickly.  Developers alike can easily extract attachments and close bugs
d2826e3
comfortably from the command line.
d2826e3
bcf02a8
d2826e3
%prep
84d47d3
%autosetup -p1 -n %{name}-%{snapshot}
d2826e3
bcf02a8
d2826e3
%build
a75cd20
%{__python3} setup.py build
d2826e3
bcf02a8
d2826e3
%install
d2826e3
# default install process
a75cd20
%{__python3} setup.py install --root=%{buildroot}
d2826e3
d2826e3
%global bash_cmpl_dir %(pkg-config --variable=completionsdir bash-completion)
7fcb169
%if 0%{?bash_completion}
d2826e3
  # find the proper directory to install bash-completion script
d2826e3
  mkdir -p %{buildroot}%{bash_cmpl_dir}
d2826e3
  cp %{_builddir}/%{name}-%{snapshot}/contrib/bash-completion \
d2826e3
     %{buildroot}%{bash_cmpl_dir}/bugz
d2826e3
%endif
d2826e3
d2826e3
mkdir -p %{buildroot}%{_mandir}/man1
5a41d5d
cp man/bugz.1 %{buildroot}%{_mandir}/man1/bugz.1
d2826e3
mkdir -p %{buildroot}%{_docdir}
d2826e3
bcf02a8
d2826e3
%files
d2826e3
%{_bindir}/bugz
a75cd20
%{python3_sitelib}/bugz
7fcb169
%if 0%{?bash_completion}
d2826e3
  %{bash_cmpl_dir}/bugz
d2826e3
%endif
a75cd20
%{python3_sitelib}/%{name}-*.egg-info
d2826e3
%{_mandir}/man1/bugz.1.gz
a75cd20
%{_datadir}/pybugz.d/
a75cd20
%{_mandir}/man5/*
a75cd20
%doc README LICENSE
d2826e3
bcf02a8
d2826e3
%changelog
39626ea
* Fri Dec 03 2021 Pavel Raiskup <praiskup@redhat.com> - 0.13-1.gitbb0ae
39626ea
- rebase to the latest git HEAD
9f9ef00
- allow 'limit: ' configuration, and set limit=1000 for the Red Hat Bugzilla instance
21e5954
7dd7630
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-23.git3459d
7dd7630
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7dd7630
adb35e6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.11-22.git3459d
adb35e6
- Rebuilt for Python 3.10
adb35e6
af7437c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-21.git3459d
af7437c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
af7437c
73df7d3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-20.git3459d
73df7d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
73df7d3
d34cbd3
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11-19.git3459d
d34cbd3
- Rebuilt for Python 3.9
d34cbd3
b94070a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-18.git3459d
b94070a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b94070a
a2f36ac
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-17.git3459d
a2f36ac
- Rebuilt for Python 3.8.0rc1 (#1748018)
a2f36ac
a1ba83d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11-16.git3459d
a1ba83d
- Rebuilt for Python 3.8
a1ba83d
925a815
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-15.git3459d
925a815
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
925a815
e46b783
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-14.git3459d
e46b783
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e46b783
634bf43
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13.git3459d
634bf43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
634bf43
9f0b7cd
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11-12.git3459d
9f0b7cd
- Rebuilt for Python 3.7
9f0b7cd
f14601d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-11.git3459d
f14601d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f14601d
ea81384
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10.git3459d
ea81384
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ea81384
d94673f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-9.git3459d
d94673f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d94673f
101a9ff
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.11-8.git3459d
101a9ff
- Rebuild for Python 3.6
101a9ff
81b2a09
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7.git3459d
81b2a09
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
81b2a09
fa1f9b4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6.git3459d
fa1f9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fa1f9b4
5a41d5d
* Thu Dec 03 2015 Pavel Raiskup <praiskup@redhat.com> - 0.11-5.git3459d
5a41d5d
- fix rpmbuild --short-circuit
5a41d5d
4fdae04
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4.git3459d
4fdae04
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4fdae04
84d47d3
* Mon Oct 19 2015 Pavel Raiskup <praiskup@redhat.com> - 0.11-3.git3459d
84d47d3
- setup default connection to 'RedHat'
84d47d3
ef83ac8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2.git3459d
ef83ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef83ac8
a75cd20
* Thu Dec 18 2014 Pavel Raiskup <praiskup@redhat.com> - 0.11-1.git3459d
a75cd20
- rebase to recent git HEAD pybugz version
a75cd20
62fcfd6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-6.git683dd
62fcfd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
62fcfd6
ae833f5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-5.git683dd
ae833f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ae833f5
7fcb169
* Wed Mar 13 2013 Pavel Raiskup <praiskup@redhat.com> - 0.10-4.git683dd
7fcb169
- fix the macro problem for epel
7fcb169
96a1e34
* Wed Mar 13 2013 Pavel Raiskup <praiskup@redhat.com> - 0.10-3.git683dd
96a1e34
- remove downstream patches for now - I'll reapply again if it becomes upstream
96a1e34
- package the latest git version
96a1e34
d57b44d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2.git89df2
d57b44d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d57b44d
d2826e3
* Sun Jan 20 2013 Pavel Raiskup <praiskup@redhat.com> - 0.10-1.git89df2
d2826e3
- changes for problems spotted/fixed by Scott Tsai in merge-review bug:
d2826e3
- important change - move git revision behind the release number
d2826e3
- reflect that ^^^ change in changelog
d2826e3
- remove statement disabling debuginfo (it is not needed)
d2826e3
d2826e3
* Sun Jan 20 2013 Pavel Raiskup <praiskup@redhat.com> - 0.10git69cd7-1
d2826e3
- apply downstream patches to reflect https://github.com/praiskup/pybugz
d2826e3
  it allows hierarchy of configuration files and a bit better error handling
d2826e3
- update URL as upstream is now on github
d2826e3
- make the RedHat bugzilla default, s/bugz/pybugz/ in manpage
d2826e3
- fedora-review fixes: s/define/global/, BR python2-devel, noreplace
d2826e3
- mention in documentation the ~/.bugzrc file
d2826e3
- switch the binary name to 'bugz' again, it would mislead users (see merge
d2826e3
  review bug comment)
d2826e3
d2826e3
* Mon Oct 01 2012 Pavel Raiskup <praiskup@redhat.com> - 0.10-1
d2826e3
- rebase to 0.10
d2826e3
- use the 'pybugz' rather then bugz which collides a little with 'bugzilla'
d2826e3
d2826e3
* Tue Nov 30 2010 Pierre Carrier <prc@redhat.com> - 0.8.0-1
d2826e3
- Initial packaging