diff --git a/python-rst.linker.changes b/python-rst.linker.changes index 8fef4f2..03c04cc 100644 --- a/python-rst.linker.changes +++ b/python-rst.linker.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Tue Jul 4 09:35:47 UTC 2017 - aloisio@gmx.com + +- Update to version 1.9 + * Replacer now adds the Sphinx config namespace to the + replacements, meaning that names like ``project`` + or ``copyright`` may be referenced in the format + strings. This feature is particularly useful when + coupled with the `jaraco.packaging + `.sphinx + plugin, which supplies a ``package_url``. + 1.8.2: + * Added project description and updated changelog. + 1.8.1: + * Issue #4: Prefer public API of ``app.confdir`` to private + API. + 1.8: + * Issue #4: Resolve deterministically the filenames relative to + the config file. + * *semver deviation*: This change is backward-incompatible + for projects that relied on paths relative to the cwd where + the cwd was not the directory of the config file. + +- Converted to single-spec + ------------------------------------------------------------------- Sat Jul 30 18:24:12 UTC 2016 - sor.alexei@meowr.ru diff --git a/python-rst.linker.spec b/python-rst.linker.spec index ff90302..5a22ae3 100644 --- a/python-rst.linker.spec +++ b/python-rst.linker.spec @@ -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 diff --git a/rst.linker-1.7.tar.gz b/rst.linker-1.7.tar.gz deleted file mode 100644 index ae4c46a..0000000 --- a/rst.linker-1.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59038b0dce170f7d6459132a1b7358b01f71f372afbf5b1c07d0862ba4a5042e -size 6798 diff --git a/rst.linker-1.9.tar.gz b/rst.linker-1.9.tar.gz new file mode 100644 index 0000000..2cf8d58 --- /dev/null +++ b/rst.linker-1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4de05e547d14ac16599d6379a73d394b8eba03afb1f16b6bdb400013957d9999 +size 7618