From b188d7f91ff63383d62db64a96d9c971e2d32994 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Mon, 1 Jun 2015 16:51:12 +0200 Subject: [PATCH] Upstream 2.4.1 --- .gitignore | 1 + python-semantic_version.spec | 74 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 python-semantic_version.spec diff --git a/.gitignore b/.gitignore index e69de29..6450e95 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/semantic_version-2.4.1.tar.gz diff --git a/python-semantic_version.spec b/python-semantic_version.spec new file mode 100644 index 0000000..f6f7db0 --- /dev/null +++ b/python-semantic_version.spec @@ -0,0 +1,74 @@ +%global pypi_name semantic_version +%{!?_licensedir:%global license %%doc} + +Name: python-%{pypi_name} +Version: 2.4.1 +Release: 1%{?dist} +Summary: A library implementing the 'SemVer' scheme + +License: BSD +URL: https://github.com/rbarrois/python-semanticversion +Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools >= 0.8 + +Provides: python-semantic-version + +%description +This small python library provides a few tools to handle semantic versioning +in Python + +%package doc +Summary: Documentation for python-%{pypi_name} + +BuildRequires: python-sphinx + +%description doc +Documentation for python-%{pypi_name} + + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# documentation builds due to broken symlink +# https://github.com/rbarrois/python-semanticversion/issues/20 +rm docs/credits.rst + + +%build +%{__python2} setup.py build + +# generate html docs +sphinx-build docs html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} + + +%check +%{__python2} setup.py test + + +%files +%license LICENSE +%doc README.rst ChangeLog +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%files doc +%license LICENSE +%doc html + +%changelog +* Wed Apr 1 2015 Haïkel Guémar - 2.4.1-1 +- Upstream 2.4.1 + +* Mon Mar 30 2015 Haïkel Guémar - 2.3.1-1 +- Initial package. diff --git a/sources b/sources index e69de29..0b69d30 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7f48fc406cbdf892f4427b7319f5d970 semantic_version-2.4.1.tar.gz