forked from pool/python-recommonmark
Accepting request 655993 from devel:languages:python
- Fix the fdupes call - Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/request/show/655993 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-recommonmark?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 7 10:17:42 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Fix the fdupes call
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:53:36 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 20 21:24:28 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-recommonmark
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -24,32 +24,27 @@ Release: 0
|
||||
Summary: Python docutils-compatibility bridge to CommonMark
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/rtfd/recommonmark
|
||||
URL: https://github.com/rtfd/recommonmark
|
||||
Source0: https://files.pythonhosted.org/packages/source/r/recommonmark/recommonmark-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/rtfd/recommonmark/master/license.md
|
||||
# PATCH-FIX-UPSTREAM fix-commonmark-compatibility.patch sebix+novell.com@sebix.at -- fix commonmark renamings
|
||||
Patch0: fix-commonmark-compatibility.patch
|
||||
BuildRequires: %{python_module CommonMark}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-CommonMark
|
||||
Requires: python-docutils
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
Provides: python-reCommonMark = %{version}
|
||||
Obsoletes: python-reCommonMark < %{version}
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-reCommonMark < %{version}
|
||||
Provides: %{oldpython}-reCommonMark = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Provides: python3-reCommonMark = %{version}
|
||||
Obsoletes: python3-reCommonMark < %{version}
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -75,7 +70,7 @@ find recommonmark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/cm2html
|
||||
%python_clone -a %{buildroot}%{_bindir}/cm2latex
|
||||
@@ -91,8 +86,7 @@ find recommonmark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
|
||||
%python_uninstall_alternative cm2man
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc license.md
|
||||
%license license.md
|
||||
%python_alternative %{_bindir}/cm2html
|
||||
%python_alternative %{_bindir}/cm2latex
|
||||
%python_alternative %{_bindir}/cm2man
|
||||
|
||||
Reference in New Issue
Block a user