Compare commits

...

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

8 changed files with 162 additions and 113 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

7
.gitignore vendored
View File

@ -1 +1,6 @@
SOURCES/justbases-0.14.tar.gz
/justbases-0.6.tar.gz
/justbases-0.9.tar.gz
/justbases-0.13.tar.gz
/justbases-0.14.tar.gz
/justbases-0.15.tar.gz
/justbases-0.15.2.tar.gz

View File

@ -1 +0,0 @@
2c34f6586a5d8bb346d45a054d306f650eb94202 SOURCES/justbases-0.14.tar.gz

View File

@ -1,111 +0,0 @@
%global srcname justbases
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{srcname}
Version: 0.14
Release: 4%{?dist}
Summary: A small library for precise conversion between arbitrary bases
License: LGPLv2+
URL: http://pypi.python.org/pypi/justbases
Source0: https://pypi.io/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
A small library for precise conversion between arbitrary bases and native
Python numbers.
%if %{with python2}
%package -n python2-%{srcname}
Summary: A small library for precise conversion between arbitrary bases
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
Requires: python2-six
%description -n python2-%{srcname}
A small library for precise conversion between arbitrary bases and native
Python numbers.
%endif # with python2
%package -n python3-%{srcname}
Summary: A small library for precise conversion between arbitrary bases
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-six
%description -n python3-%{srcname}
A small library for precise conversion between arbitrary bases and native
Python numbers.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf justbases.egg-info
%build
%if %{with python2}
%py2_build
%endif # with python2
%py3_build
%install
%if %{with python2}
%py2_install
%endif # with python2
%py3_install
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/justbases/
%{python2_sitelib}/justbases-%{version}-*.egg-info
%endif # with python2
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/justbases/
%{python3_sitelib}/justbases-%{version}-*.egg-info
%changelog
* Tue May 26 2020 Dennis Keefe <dkeefe@redhat.com> - 0.14-4
- Update to 0.14
- Resolves: rhbz#1824230
* Sun Jun 10 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.9-6
- Conditionalize the python2 subpackage
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9-2
- Rebuild for Python 3.6
* Tue Aug 2 2016 mulhern <amulhern@redhat.com> - 0.9
- New release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Mar 16 2016 mulhern <amulhern@redhat.com> - 0.6
- Initial release

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

17
plans/unit.fmf Normal file
View File

@ -0,0 +1,17 @@
summary: deterministic (not Hypothesis-based) unit tests
prepare:
- name: Install package
how: install
package: python-justbases
discover:
how: shell
url: https://github.com/mulkieran/justbases
ref: v0.15.2
tests:
- name: unit
test: python3 -m unittest discover --verbose tests/test_deterministic
execute:
how: tmt

131
python-justbases.spec Normal file
View File

@ -0,0 +1,131 @@
%global srcname justbases
Name: python-%{srcname}
Version: 0.15.2
Release: 1%{?dist}
Summary: A small library for precise conversion between arbitrary bases
License: LGPL-2.1-or-later
URL: http://pypi.python.org/pypi/justbases
Source0: https://pypi.io/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
A small library for precise conversion between arbitrary bases and native
Python numbers.
%package -n python3-%{srcname}
Summary: A small library for precise conversion between arbitrary bases
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-%{srcname}
A small library for precise conversion between arbitrary bases and native
Python numbers.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf justbases.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/justbases/
%{python3_sitelib}/justbases-%{version}-*.egg-info
%changelog
* Tue May 16 2023 Bryan Gurney <bgurney@redhat.com> - 0.15.2-1
- Update to 0.15.2
- Resolves: rhbz#2203858
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.15-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Jul 29 2021 Bryan Gurney <bgurney@redhat.com> - 0.15-5
- Remove check test
- Resolves: rhbz#1986912
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.15-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Mar 22 2021 mulhern <amulhern@redhat.com> - 0.15-2
- Use the correct tarball
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Dec 15 2020 mulhern <amulhern@redhat.com> - 0.15-1
- Update to 0.15
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14-2
- Rebuilt for Python 3.9
* Thu Apr 23 2020 mulhern <amulhern@redhat.com> - 0.14-1
- Update to new release
* Thu Apr 23 2020 mulhern <amulhern@redhat.com> - 0.13-2
- Remove license macro; upstream is not currently packaging its license file
* Thu Apr 23 2020 mulhern <amulhern@redhat.com> - 0.13-1
- Change license to LGPLv2+
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-13
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-12
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jan 02 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9-9
- Enable python dependency generator
* Wed Jan 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-8
- Subpackage python2-justbases has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9-6
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9-2
- Rebuild for Python 3.6
* Tue Aug 2 2016 mulhern <amulhern@redhat.com> - 0.9
- New release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Mar 16 2016 mulhern <amulhern@redhat.com> - 0.6
- Initial release

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (justbases-0.15.2.tar.gz) = c9cb67b67f7ec84b4436df2b24ff8df354a15fd7f65212c4ffa6506e077fc9dd526a5a9c4cf9153fce016ff4cc59d94ad5ce9713bd7ca0169a6fd0c725e373db