2015-06-01 14:51:12 +00:00
|
|
|
%global pypi_name semantic_version
|
2016-02-24 14:31:04 +00:00
|
|
|
|
2015-06-01 14:51:12 +00:00
|
|
|
Name: python-%{pypi_name}
|
2020-02-20 11:13:45 +00:00
|
|
|
Version: 2.8.4
|
2022-12-30 16:19:20 +00:00
|
|
|
Release: %autorelease
|
2017-01-28 16:17:15 +00:00
|
|
|
Summary: Library implementing the 'SemVer' scheme
|
2015-06-01 14:51:12 +00:00
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/rbarrois/python-semanticversion
|
2017-01-28 16:17:15 +00:00
|
|
|
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
2015-06-01 14:51:12 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-01-28 16:17:15 +00:00
|
|
|
%global _description \
|
|
|
|
This small python library provides a few tools to handle semantic versioning\
|
|
|
|
in Python.
|
2016-02-24 14:31:04 +00:00
|
|
|
|
2017-01-28 16:17:15 +00:00
|
|
|
%description %{_description}
|
2016-02-24 14:31:04 +00:00
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
2017-01-28 16:17:15 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2019-01-17 13:21:29 +00:00
|
|
|
#BuildRequires: python3-django
|
2016-02-24 14:31:04 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
2017-01-28 16:17:15 +00:00
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
2016-02-24 14:31:04 +00:00
|
|
|
|
2017-01-28 16:17:15 +00:00
|
|
|
Python 3 version
|
2015-06-01 14:51:12 +00:00
|
|
|
|
|
|
|
%package doc
|
2017-01-28 16:17:15 +00:00
|
|
|
Summary: Documentation for python-%{pypi_name}
|
2019-01-08 14:34:55 +00:00
|
|
|
BuildRequires: python3-sphinx
|
2020-02-20 11:47:27 +00:00
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
2015-06-01 14:51:12 +00:00
|
|
|
|
|
|
|
%description doc
|
2017-01-28 16:17:15 +00:00
|
|
|
%{summary}.
|
2015-06-01 14:51:12 +00:00
|
|
|
|
|
|
|
%prep
|
2020-02-20 11:25:19 +00:00
|
|
|
%autosetup -n semantic_version-%{version}
|
2015-06-01 14:51:12 +00:00
|
|
|
# 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
|
2017-01-28 16:17:15 +00:00
|
|
|
%py3_build
|
2015-06-01 14:51:12 +00:00
|
|
|
# generate html docs
|
2019-01-17 13:21:29 +00:00
|
|
|
sphinx-build-%{python3_version} docs html
|
2015-06-01 14:51:12 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
%install
|
2017-01-28 16:17:15 +00:00
|
|
|
%py3_install
|
2015-06-01 14:51:12 +00:00
|
|
|
|
|
|
|
%check
|
2017-01-28 23:09:28 +00:00
|
|
|
# Seems like it's just stuck in koji
|
|
|
|
#{__python3} setup.py test
|
2015-06-01 14:51:12 +00:00
|
|
|
|
2016-02-24 14:31:04 +00:00
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst ChangeLog
|
2017-01-28 16:17:15 +00:00
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
2016-02-24 14:31:04 +00:00
|
|
|
|
2015-06-01 14:51:12 +00:00
|
|
|
%files doc
|
|
|
|
%license LICENSE
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
%changelog
|
2022-12-30 16:19:20 +00:00
|
|
|
%autochangelog
|