66bbc2
%global ghuser c4urself
66bbc2
%global ghname bump2version
Jakub Dorňák 8a0971
Jakub Dorňák e039e0
Name:           bumpversion
d2e28c
Version:        0.5.8
8d5b9f
Release:        6%{?dist}
Jakub Dorňák e039e0
Summary:        Version-bump your software with a single command
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
License:        MIT
66bbc2
URL:            https://github.com/%{ghuser}/%{ghname}
d2e28c
Source0:        https://github.srcurl.net/%{ghuser}/%{ghname}/v%{version}/%{ghname}-v%{version}.tar.gz
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
BuildArch:      noarch
Jakub Dorňák 8a0971
BuildRequires:  python3-devel
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%description
Jakub Dorňák 8a0971
A small command line tool to simplify releasing software by updating all
Jakub Dorňák 8a0971
version strings in your source code by the correct increment. Also creates
Jakub Dorňák 8a0971
commits and tags:
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
 * version formats are highly configurable
Jakub Dorňák 8a0971
 * works without any VCS, but happily reads tag information from and writes
Jakub Dorňák 8a0971
    commits and tags to Git and Mercurial if available
Jakub Dorňák 8a0971
 * just handles text files, so it's not specific to any programming language
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%prep
66bbc2
%setup -q -n %{ghname}-%{version}
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%build
Jakub Dorňák 8a0971
%{__python3} setup.py build
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%install
Jakub Dorňák 8a0971
%{__python3} setup.py install --skip-build --root %{buildroot}
66bbc2
mv %{buildroot}%{_bindir}/%{ghname} %{buildroot}%{_bindir}/%{name}
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%files
d2e28c
%doc README.md
Jakub Dorňák 8a0971
%license LICENSE.rst
Jakub Dorňák 8a0971
%attr(0755,root,root) %{_bindir}/%{name}
Jakub Dorňák 8a0971
%dir %{python3_sitelib}/%{name}
66bbc2
%{python3_sitelib}/%{name}/*.py
66bbc2
%{python3_sitelib}/%{ghname}-%{version}-*.egg-info
Jakub Dorňák e039e0
%dir %{python3_sitelib}/%{name}/__pycache__
66bbc2
%{python3_sitelib}/%{name}/__pycache__/*.py[co]
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
Jakub Dorňák 8a0971
%changelog
8d5b9f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.8-6
8d5b9f
- Rebuilt for Python 3.8
8d5b9f
434c5c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-5
434c5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
434c5c
d2e9f8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-4
d2e9f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d2e9f8
1e4c90
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-3
1e4c90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e4c90
e93e9f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.8-2
e93e9f
- Rebuilt for Python 3.7
e93e9f
d2e28c
* Thu May 03 2018 Hui Tang <duriantang@gmail.com> - 0.5.8-1
d2e28c
- update to version 0.5.8
d2e28c
26e1b2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-2
26e1b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
26e1b2
66bbc2
* Mon Jul 31 2017 Jakub Dorňák <jakub.dornak@misli.cz> - 0.5.5-1
66bbc2
- temporarily switched upstream to https://github.com/c4urself/bump2version
66bbc2
  since the development of https://github.com/peritus/bumpversion has been stuck
66bbc2
- update to version 0.5.5 (which among other features creates annotated tags)
66bbc2
11d007
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
11d007
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
11d007
38ddca
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-6
38ddca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
38ddca
e58ec5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-5
e58ec5
- Rebuild for Python 3.6
e58ec5
4eb0ee
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
4eb0ee
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4eb0ee
803001
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
803001
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
803001
Jakub Dorňák e039e0
* Tue Dec  1 2015 Jakub Dorňák <jdornak@redhat.com> - 0.5.3-2
Jakub Dorňák e039e0
- Remove exclamation mark from summary
Jakub Dorňák e039e0
- Use tarball from git, which contains LICENSE.rst
Jakub Dorňák e039e0
Jakub Dorňák 8a0971
* Fri Jul  3 2015 Jakub Dorňák <jdornak@redhat.com> - 0.5.3-1
Jakub Dorňák 8a0971
- Initial package