forked from pool/python-rst.linker
67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-rst.linker
|
||
|
#
|
||
|
# Copyright (c) 2016 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
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
%define _name rst.linker
|
||
|
Name: python-rst.linker
|
||
|
Version: 1.7
|
||
|
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
|
||
|
Requires: python-dateutil
|
||
|
Requires: python-six
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
rst.linker is a Sphinx plugin to add links and timestamps to the
|
||
|
changelog.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{_name}-%{version}
|
||
|
|
||
|
%build
|
||
|
python2 setup.py build
|
||
|
python2 setup.py build_sphinx
|
||
|
|
||
|
%install
|
||
|
python2 setup.py install \
|
||
|
--root=%{buildroot} --prefix=%{_prefix}
|
||
|
|
||
|
%check
|
||
|
python2 setup.py test
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc CHANGES.rst README.rst
|
||
|
%dir %{python_sitelib}/rst/
|
||
|
%{python_sitelib}/rst/linker.py*
|
||
|
%{python_sitelib}/%{_name}-*
|
||
|
|
||
|
%changelog
|