|
|
e1453e1 |
# Created by pyp2rpm-1.1.2 and rewrote manually afterwards
|
|
|
e1453e1 |
%global pypi_name docker-pycreds
|
|
|
5347f5f |
|
|
|
5347f5f |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
5347f5f |
# Enable python3 build by default
|
|
|
e1453e1 |
%bcond_without python3
|
|
|
3d06c53 |
# Disable python2 build by default
|
|
|
3d06c53 |
%bcond_with python2
|
|
|
5347f5f |
%else
|
|
|
5347f5f |
%bcond_with python3
|
|
|
3d06c53 |
%bcond_without python2
|
|
|
5347f5f |
%endif
|
|
|
5347f5f |
|
|
|
e1453e1 |
# the test suite is diabled b/c it needs docker-credential-secretservice binary
|
|
|
e1453e1 |
# and we don't have that now (Sep 2016) in Fedora
|
|
|
e1453e1 |
%bcond_with tests
|
|
|
e1453e1 |
|
|
|
e1453e1 |
Name: python-%{pypi_name}
|
|
|
4d605fe |
Version: 0.4.0
|
|
|
498058f |
Release: 19%{?dist}
|
|
|
e1453e1 |
Summary: Python bindings for the docker credentials store API
|
|
|
e1453e1 |
|
|
|
e1453e1 |
License: ASL 2.0
|
|
|
e1453e1 |
URL: https://github.com/shin-/dockerpy-creds/
|
|
|
e1453e1 |
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
e1453e1 |
BuildArch: noarch
|
|
|
e1453e1 |
|
|
|
5347f5f |
|
|
|
5347f5f |
%description
|
|
|
5347f5f |
Python bindings for the docker credentials store API
|
|
|
5347f5f |
|
|
|
5347f5f |
%if %{with python2}
|
|
|
5347f5f |
%package -n python2-%{pypi_name}
|
|
|
5347f5f |
Summary: Python bindings for the docker credentials store API
|
|
|
5347f5f |
|
|
|
e1453e1 |
BuildRequires: python2-devel
|
|
|
bd68022 |
BuildRequires: python2-setuptools
|
|
|
e1453e1 |
BuildRequires: python2-six
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%if %{with tests}
|
|
|
5347f5f |
BuildRequires: python2-pytest
|
|
|
e1453e1 |
%endif # tests
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
e1453e1 |
|
|
|
e1453e1 |
Requires: python2-six
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%description -n python2-%{pypi_name}
|
|
|
e1453e1 |
Python bindings for the docker credentials store API
|
|
|
5347f5f |
%endif # with python2
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%if %{with python3}
|
|
|
e1453e1 |
%package -n python3-%{pypi_name}
|
|
|
e1453e1 |
Summary: Python bindings for the docker credentials store API
|
|
|
5347f5f |
|
|
|
5347f5f |
BuildRequires: python3-devel
|
|
|
5347f5f |
BuildRequires: python3-setuptools
|
|
|
5347f5f |
BuildRequires: python3-six
|
|
|
5347f5f |
%if %{with tests}
|
|
|
5347f5f |
BuildRequires: python3-pytest
|
|
|
5347f5f |
%endif # tests
|
|
|
5347f5f |
|
|
|
e1453e1 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
e1453e1 |
|
|
|
e1453e1 |
Requires: python3-six
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%description -n python3-%{pypi_name}
|
|
|
e1453e1 |
Python bindings for the docker credentials store API
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%endif # python3
|
|
|
e1453e1 |
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%prep
|
|
|
e1453e1 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
e1453e1 |
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%build
|
|
|
5347f5f |
%if %{with python2}
|
|
|
e1453e1 |
%py2_build
|
|
|
5347f5f |
%endif # with python2
|
|
|
5347f5f |
%if %{with python3}
|
|
|
e1453e1 |
%py3_build
|
|
|
5347f5f |
%endif # with python3
|
|
|
e1453e1 |
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%install
|
|
|
e1453e1 |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
e1453e1 |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
e1453e1 |
# to be the default for now).
|
|
|
5347f5f |
%if %{with python2}
|
|
|
e1453e1 |
%py2_install
|
|
|
5347f5f |
%endif # with python2
|
|
|
5347f5f |
%if %{with python3}
|
|
|
e1453e1 |
%py3_install
|
|
|
5347f5f |
%endif # with python3
|
|
|
e1453e1 |
|
|
|
e1453e1 |
|
|
|
e1453e1 |
# we are not using setup.py test here b/c the project pins to specific versions
|
|
|
e1453e1 |
%check
|
|
|
e1453e1 |
# sanity test
|
|
|
5347f5f |
%if %{with python2}
|
|
|
e1453e1 |
%{__python2} -c "import dockerpycreds"
|
|
|
e1453e1 |
%if %{with tests}
|
|
|
e1453e1 |
PYTHONPATH="${PWD}" py.test-%{python2_version} -vv tests/
|
|
|
e1453e1 |
%endif # tests
|
|
|
5347f5f |
%endif # with python2
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%if %{with python3}
|
|
|
e1453e1 |
%{__python3} -c "import dockerpycreds"
|
|
|
e1453e1 |
%if %{with tests}
|
|
|
e1453e1 |
PYTHONPATH="${PWD}" py.test-%{python3_version} -vv tests/
|
|
|
e1453e1 |
%endif # tests
|
|
|
e1453e1 |
%endif # python3
|
|
|
e1453e1 |
|
|
|
5347f5f |
%if %{with python2}
|
|
|
e1453e1 |
%files -n python2-%{pypi_name}
|
|
|
e1453e1 |
%doc README.md
|
|
|
e1453e1 |
%license LICENSE
|
|
|
e1453e1 |
%{python2_sitelib}/dockerpycreds
|
|
|
e1453e1 |
%{python2_sitelib}/docker_pycreds-%{version}-py?.?.egg-info
|
|
|
5347f5f |
%endif # with python2
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%if %{with python3}
|
|
|
e1453e1 |
%files -n python3-%{pypi_name}
|
|
|
e1453e1 |
%doc README.md
|
|
|
e1453e1 |
%license LICENSE
|
|
|
e1453e1 |
%{python3_sitelib}/dockerpycreds
|
|
|
585f31a |
%{python3_sitelib}/docker_pycreds-%{version}-py%{python3_version}.egg-info
|
|
|
e1453e1 |
%endif # python3
|
|
|
e1453e1 |
|
|
|
e1453e1 |
|
|
|
e1453e1 |
%changelog
|
|
|
498058f |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-19
|
|
|
498058f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
498058f |
|
|
|
8372bde |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-18
|
|
|
8372bde |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
8372bde |
|
|
|
02d10bc |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-17
|
|
|
02d10bc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
02d10bc |
|
|
|
6c72352 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.4.0-16
|
|
|
6c72352 |
- Rebuilt for Python 3.12
|
|
|
6c72352 |
|
|
|
9480a95 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-15
|
|
|
9480a95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
9480a95 |
|
|
|
cc973e7 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-14
|
|
|
cc973e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
cc973e7 |
|
|
|
1d507ed |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.4.0-13
|
|
|
1d507ed |
- Rebuilt for Python 3.11
|
|
|
1d507ed |
|
|
|
4e94668 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-12
|
|
|
4e94668 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
4e94668 |
|
|
|
e871fba |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-11
|
|
|
e871fba |
- Second attempt - Rebuilt for
|
|
|
e871fba |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
e871fba |
|
|
|
bfeb1fe |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.0-10
|
|
|
bfeb1fe |
- Rebuilt for Python 3.10
|
|
|
bfeb1fe |
|
|
|
29df0fa |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-9
|
|
|
29df0fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
29df0fa |
|
|
|
945c8d1 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-8
|
|
|
945c8d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
945c8d1 |
|
|
|
fa7f2b6 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-7
|
|
|
fa7f2b6 |
- Rebuilt for Python 3.9
|
|
|
fa7f2b6 |
|
|
|
00ee030 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
|
|
|
00ee030 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
00ee030 |
|
|
|
18cafc3 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-5
|
|
|
18cafc3 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
18cafc3 |
|
|
|
43234a8 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-4
|
|
|
43234a8 |
- Rebuilt for Python 3.8
|
|
|
43234a8 |
|
|
|
1cd68f6 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
|
1cd68f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
1cd68f6 |
|
|
|
3d06c53 |
* Wed Feb 27 2019 Yatin Karel <ykarel@redhat.com> - 0.4.0-2
|
|
|
3d06c53 |
- Enable python2 build for el7
|
|
|
3d06c53 |
|
|
|
4d605fe |
* Tue Feb 05 2019 Tomas Tomecek <ttomecek@redhat.com> - 0.4.0-1
|
|
|
4d605fe |
- New upstream release 0.4.0
|
|
|
4d605fe |
|
|
|
f80881c |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
|
|
|
f80881c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
f80881c |
|
|
|
8d97d7d |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
|
|
8d97d7d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
8d97d7d |
|
|
|
23d876c |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-2
|
|
|
23d876c |
- Rebuilt for Python 3.7
|
|
|
23d876c |
|
|
|
6668f58 |
* Mon Jun 11 2018 Tomas Tomecek <ttomecek@redhat.com> - 0.3.0-1
|
|
|
6668f58 |
- New upstream release 0.3.0
|
|
|
6668f58 |
|
|
|
10618f2 |
* Wed May 02 2018 Tomas Tomecek <ttomecek@redhat.com> - 0.2.3-1
|
|
|
10618f2 |
- New upstream release 0.2.3
|
|
|
10618f2 |
|
|
|
5347f5f |
* Tue Apr 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.2-2
|
|
|
5347f5f |
- Conditionalize the Python 2 subpackage and don't build it on EL > 7
|
|
|
5347f5f |
|
|
|
418eaf2 |
* Mon Feb 19 2018 Tomas Tomecek <ttomecek@redhat.com> - 0.2.2-1
|
|
|
418eaf2 |
- New upstream release 0.2.2
|
|
|
418eaf2 |
|
|
|
58c32b2 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-7
|
|
|
58c32b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
58c32b2 |
|
|
|
bd68022 |
* Wed Dec 27 2017 Carl George <carl@george.computer> - 0.2.1-6
|
|
|
bd68022 |
- Add BuildRequires for setuptools
|
|
|
bd68022 |
|
|
|
fd7611a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-5
|
|
|
fd7611a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
fd7611a |
|
|
|
a688d21 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-4
|
|
|
a688d21 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a688d21 |
|
|
|
b469088 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-3
|
|
|
b469088 |
- Rebuild for Python 3.6
|
|
|
b469088 |
|
|
|
e1453e1 |
* Wed Oct 05 2016 Tomas Tomecek <ttomecek@redhat.com> - 0.2.1-2
|
|
|
e1453e1 |
- rebuilt
|
|
|
e1453e1 |
|
|
|
e1453e1 |
* Mon Sep 26 2016 Tomas Tomecek <ttomecek@redhat.com> - 0.2.1-1
|
|
|
e1453e1 |
- Initial package.
|