commit dcd8d1b07c7aeb3c5dcb76ae57d8caa846f25da3 Author: tigro Date: Fri Jul 12 04:55:57 2024 +0300 import python-bcrypt-3.1.6-2.el8.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47b92dc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bcrypt-3.1.6.tar.gz diff --git a/.python-bcrypt.metadata b/.python-bcrypt.metadata new file mode 100644 index 0000000..9021125 --- /dev/null +++ b/.python-bcrypt.metadata @@ -0,0 +1 @@ +03a17719edea2f3d1e32b5c510171df304769542 SOURCES/bcrypt-3.1.6.tar.gz diff --git a/SPECS/python-bcrypt.spec b/SPECS/python-bcrypt.spec new file mode 100644 index 0000000..f1ab94e --- /dev/null +++ b/SPECS/python-bcrypt.spec @@ -0,0 +1,208 @@ +%{!?_licensedir: %global license %%doc} +%global with_python2 1 + +%if 0%{?rhel} && 0%{?rhel} >= 8 +%global with_python2 0 +%endif + +%global modname bcrypt +%global sum Modern password hashing for your software and your servers + +Name: python-bcrypt +Version: 3.1.6 +Release: 2%{?dist}.1 +Summary: %{sum} + +#crypt_blowfish code is in Public domain and all other code in ASL 2.0 +License: ASL 2.0 and Public Domain and BSD +URL: http://pypi.python.org/pypi/bcrypt +Source0: https://files.pythonhosted.org/packages/source/b/%{modname}/%{modname}-%{version}.tar.gz + +BuildRequires: gcc + +%if 0%{?with_python2} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-six +BuildRequires: python2-pytest +%if (0%{?fedora} && 0%{?fedora} <= 27) || (0%{?rhel} && 0%{?rhel} <= 7) +BuildRequires: python-cffi +%else +BuildRequires: python2-cffi +%endif +%endif + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-cffi +BuildRequires: python%{python3_pkgversion}-six +BuildRequires: python%{python3_pkgversion}-pytest + +%description +%{sum}. + + +%if 0%{?with_python2} +%package -n python2-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{modname}} + +Requires: python2-six +%if (0%{?fedora} && 0%{?fedora} <= 27) || (0%{?rhel} && 0%{?rhel} <= 7) +Requires: python-cffi +%else +Requires: python2-cffi +%endif +Provides: py-bcrypt = 0.4-11 +Obsoletes: py-bcrypt < 0.4-11 + +%description -n python2-%{modname} +%{sum}. +%endif + + +%package -n python%{python3_pkgversion}-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} + +Requires: python%{python3_pkgversion}-six +Requires: python%{python3_pkgversion}-cffi +Conflicts: python3-py-bcritp +Provides: python3-py-bcrypt = 0.4-11 +Obsoletes: python3-py-bcrypt < 0.4-11 + +%description -n python%{python3_pkgversion}-%{modname} +%{sum}. + + +%prep +%autosetup -n %{modname}-%{version} + +%build +%if 0%{?with_python2} +%py2_build +%endif + +%py3_build + +%install +%if 0%{?with_python2} +%py2_install +%endif + +%py3_install + +# Better safe than sorry +%if 0%{?with_python2} +find %{buildroot}%{python2_sitearch} -name '*.so' -exec chmod 755 {} ';' +%endif +find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';' + +%check +# Tests can't run on epel7 due to an old pytest +%if (0%{?rhel} && 0%{?rhel} > 7) +%if 0%{?with_python2} +%{__python2} setup.py test +%endif +%{__python3} setup.py test +%endif + + +%if 0%{?with_python2} +%files -n python2-%{modname} +%doc README.rst +%license LICENSE +%{python2_sitearch}/%{modname}/ +%{python2_sitearch}/%{modname}-%{version}* +%endif + +%files -n python%{python3_pkgversion}-%{modname} +%doc README.rst +%license LICENSE +%{python3_sitearch}/%{modname}/ +%{python3_sitearch}/%{modname}-%{version}* + + +%changelog +* Fri Jul 12 2024 Arkady L. Shane - 3.1.6-2R.1 +- Rebuilt for MSVSphere 8.10 + +* Wed Jun 19 2019 Troy Dawson - 3.1.6-1.1 +- Make python2 optional +- Do not build python2 on RHEL8 + +* Mon Mar 18 2019 Marc Dequènes (Duck) - 3.1.6-2 +- Adaptations to build Python 3 on EPEL + +* Fri Feb 08 2019 Alfredo Moralejo - 3.1.6-1 +- Update to 3.1.6. + +* Sat Feb 02 2019 Fedora Release Engineering - 3.1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 3.1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 16 2018 Miro Hrončok - 3.1.4-5 +- Rebuilt for Python 3.7 + +* Thu Apr 05 2018 Pierre-Yves Chibon - 3.1.4-4 +- Fix Requires for epel7 + +* Fri Feb 09 2018 Fedora Release Engineering - 3.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Oct 21 2017 williamjmorenor@gmail.com - 3.1.4-2 +- Update python2 requirements +- Enable tests in build + +* Sat Oct 21 2017 williamjmorenor@gmail.com - 3.1.4-1 +- Update to 3.1.4 + Upstream notes: + - Fixed compilation with mingw and on illumos. + +* Wed Aug 09 2017 Gwyn Ciesla - 3.1.3-4 +- Replace py-bcrypt. + +* Thu Aug 03 2017 Fedora Release Engineering - 3.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 06 2017 William Moreno - 3.1.3-1 +- Update to 3.1.3 upstream release + +* Sat Feb 11 2017 Fedora Release Engineering - 3.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 10 2017 William Moreno - 3.1.2-1 +- Update to v3.1.2 + +* Mon Dec 12 2016 Charalampos Stratakis - 3.1.0-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 3.1.0-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Jun 30 2016 William Moreno - 3.1.0-1 +- Update to bugfix release 3.1.0 +- Add conflicts for the python3 subpackage + +* Thu Jun 30 2016 Pierre-Yves Chibon - 3.0.0-1 +- Update to 3.0.0 (Fixes RHBZ#1351377) + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jan 06 2016 Pierre-Yves Chibon - 2.0.0-3 +- Add conflicts to py-bcrypt since they both provide a bcrypt python module +- Fix macro that were using %%{module} instead of %%{modname} +- In fact the .so files must be executable, so ensure they are such + +* Wed Jan 06 2016 Pierre-Yves Chibon - 2.0.0-2 +- Fix the license as the package has some Public Domain files +- Ensure the .so files are not executable + +* Tue Jan 05 2016 Pierre-Yves Chibon - 2.0.0-1 +- initial package for Fedora