From a4bb4ba777caa1c9c5bf912c81d47839e850403e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2018 08:12:52 +0000 Subject: import python-semantic_version-2.4.2-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0bb19d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/semantic_version-2.4.2.tar.gz diff --git a/.python-semantic_version.metadata b/.python-semantic_version.metadata new file mode 100644 index 0000000..311d58c --- /dev/null +++ b/.python-semantic_version.metadata @@ -0,0 +1 @@ +6d1a2a52d31a9992e57c7ac15d2162d1b47fa260 SOURCES/semantic_version-2.4.2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-semantic_version.spec b/SPECS/python-semantic_version.spec new file mode 100644 index 0000000..e269f26 --- /dev/null +++ b/SPECS/python-semantic_version.spec @@ -0,0 +1,75 @@ +%global pypi_name semantic_version +%{!?_licensedir:%global license %%doc} + +Name: python-%{pypi_name} +Version: 2.4.2 +Release: 2%{?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 Jun 13 2018 David Cantrell - 2.4.2-2 +- Rebuild + +* Wed May 30 2018 David Shea - 2.4.2-1 +- Initial import for Red Hat Enterprise Linux 7 + Resolves: rhbz#1548042