forked from pool/python-rst.linker
Accepting request 508191 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/508191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rst.linker?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-rst.linker
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,26 +17,30 @@
|
||||
|
||||
|
||||
%define _name rst.linker
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-rst.linker
|
||||
Version: 1.7
|
||||
Version: 1.9
|
||||
Release: 0
|
||||
Summary: Changelog link and timestamp adding Sphinx plugin
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jaraco/rst.linker
|
||||
Source: https://files.pythonhosted.org/packages/source/r/%{_name}/%{_name}-%{version}.tar.gz
|
||||
BuildRequires: python
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-dateutil
|
||||
BuildRequires: python-path.py
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-pytest-runner
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-setuptools_scm
|
||||
BuildRequires: python-six
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module path.py}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-dateutil
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
rst.linker is a Sphinx plugin to add links and timestamps to the
|
||||
@@ -44,23 +48,23 @@ changelog.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
rm -rf rst.linker.egg-info
|
||||
|
||||
%build
|
||||
python2 setup.py build
|
||||
python2 setup.py build_sphinx
|
||||
%python_build
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python2 setup.py install \
|
||||
--root=%{buildroot} --prefix=%{_prefix}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
python2 setup.py test
|
||||
%python_exec %{_bindir}/py.test -v test_all.py
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES.rst README.rst
|
||||
%dir %{python_sitelib}/rst/
|
||||
%{python_sitelib}/rst/linker.py*
|
||||
%{python_sitelib}/%{_name}-*
|
||||
%doc build/sphinx/html
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user