You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-semantic_version/python-semantic_version.spec

72 lines
1.6 KiB

10 years ago
%global pypi_name semantic_version
10 years ago
Name: python-%{pypi_name}
Version: 2.8.4
Release: %autorelease
Summary: Library implementing the 'SemVer' scheme
10 years ago
License: BSD
URL: https://github.com/rbarrois/python-semanticversion
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
10 years ago
BuildArch: noarch
%global _description \
This small python library provides a few tools to handle semantic versioning\
in Python.
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
#BuildRequires: python3-django
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %{_description}
Python 3 version
10 years ago
%package doc
Summary: Documentation for python-%{pypi_name}
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
10 years ago
%description doc
%{summary}.
10 years ago
%prep
%autosetup -n semantic_version-%{version}
10 years ago
# 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
%py3_build
10 years ago
# generate html docs
sphinx-build-%{python3_version} docs html
10 years ago
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
10 years ago
%check
# Seems like it's just stuck in koji
#{__python3} setup.py test
10 years ago
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst ChangeLog
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
10 years ago
%files doc
%license LICENSE
%doc html
%changelog
%autochangelog