From a5df23eeda29bfb3f09a220db76766f296c84d00 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Feb 09 2017 10:59:15 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index e69de29..125cbd2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/semver-2.7.5.tar.gz diff --git a/python-semver.spec b/python-semver.spec new file mode 100644 index 0000000..16e563b --- /dev/null +++ b/python-semver.spec @@ -0,0 +1,74 @@ +%global modname semver + +Name: python-%{modname} +Version: 2.7.5 +Release: 1%{?dist} +Summary: Python helper for Semantic Versioning + +License: BSD +URL: https://github.com/k-bx/python-semver +Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +Python module for semantic versioning. Simplifies comparing versions. + +%description %{_description} + +%package -n python2-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest + +%description -n python2-%{modname} %{_description} + +Python 2 version. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%prep +%autosetup + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +py.test-%{python2_version} -v tests.py +py.test-%{python3_version} -v tests.py + +%files -n python2-%{modname} +%license LICENSE.txt +%doc README.rst CHANGELOG +%{python2_sitelib}/%{modname}-*.egg-info/ +%{python2_sitelib}/%{modname}.py* + +%files -n python3-%{modname} +%license LICENSE.txt +%doc README.rst CHANGELOG +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}.py +%{python3_sitelib}/__pycache__/%{modname}.* + +%changelog +* Thu Feb 09 2017 Igor Gnatenko - 2.7.5-1 +- Update to 2.7.5 + +* Sat Jan 28 2017 Igor Gnatenko - 2.7.4-1 +- Initial package diff --git a/sources b/sources index e69de29..e05c6c0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (semver-2.7.5.tar.gz) = fc54ef5f467e35cd1a06d4fe7e6478f79689ddaaf14d7005ec7ef5108760fa193abffef6292730086252b0a0a83d7bbebafff934483f7f61aa05ca6ea9ae5f34