From 764d5aa10888af1ec4c48efe166f04f4f24a2637 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 19 2016 16:27:59 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore index e69de29..8dd3f88 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bcrypt-2.0.0.tar.gz diff --git a/python-bcrypt.spec b/python-bcrypt.spec new file mode 100644 index 0000000..1fad2e4 --- /dev/null +++ b/python-bcrypt.spec @@ -0,0 +1,98 @@ +%{!?_licensedir: %global license %%doc} + +%global modname bcrypt +%global sum Modern password hashing for your software and your servers + +Name: python-bcrypt +Version: 2.0.0 +Release: 3%{?dist} +Summary: %{sum} + +License: ASL 2.0 and Public Domain +URL: http://pypi.python.org/pypi/bcrypt +Source0: https://pypi.python.org/packages/source/b/%{modname}/%{modname}-%{version}.tar.gz + +Conflicts: py-bcrypt + +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-cffi +BuildRequires: python-six +BuildRequires: python-pytest + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: python3-six +BuildRequires: python3-pytest + +%description +Modern password hashing for your software and your servers + + +%package -n python2-%{modname} +Summary: Modern password hashing for your software and your servers +%{?python_provide:%python_provide python2-%{modname}} + +Requires: python-six +Requires: python-cffi + +%description -n python2-%{modname} +Modern password hashing for your software and your servers + + +%package -n python3-%{modname} +Summary: Modern password hashing for your software and your servers +%{?python_provide:%python_provide python3-%{modname}} + +Requires: python3-six +Requires: python3-cffi + +%description -n python3-%{modname} +Modern password hashing for your software and your servers + + +%prep +%autosetup -n %{modname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +# Better safe than sorry +find %{buildroot}%{python2_sitearch} -name '*.so' -exec chmod 755 {} ';' +find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod 755 {} ';' + +#%check +#%{__python2} setup.py test +#%{__python3} setup.py test + +%files -n python2-%{modname} +%doc README.rst +%license LICENSE +%{python2_sitearch}/%{modname}/ +%{python2_sitearch}/%{modname}-%{version}* + +%files -n python3-%{modname} +%doc README.rst +%license LICENSE +%{python3_sitearch}/%{modname}/ +%{python3_sitearch}/%{modname}-%{version}* + + +%changelog +* 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 diff --git a/sources b/sources index e69de29..0a82da7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e7fb17be46904cdb2ae6a062859ee58c bcrypt-2.0.0.tar.gz