From b94807be1481d671520b0c7ed5d2f1e88c6975813ac4cc9dc23a0bf55294f54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 20 Jan 2021 13:57:40 +0000 Subject: [PATCH] Accepting request 864639 from home:jayvdb:branches:devel:languages:python - Changed dependency from git to git-core - Remove build dependency on pytest-cov and python-devel - Use fdupes OBS-URL: https://build.opensuse.org/request/show/864639 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/cookiecutter?expand=0&rev=13 --- cookiecutter.changes | 7 +++++++ cookiecutter.spec | 10 ++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cookiecutter.changes b/cookiecutter.changes index f18691c..f306f8e 100644 --- a/cookiecutter.changes +++ b/cookiecutter.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 20 08:32:20 UTC 2021 - John Vandenberg + +- Changed dependency from git to git-core +- Remove build dependency on pytest-cov and python-devel +- Use fdupes + ------------------------------------------------------------------- Wed Apr 22 18:05:41 UTC 2020 - Sebastian Wagner diff --git a/cookiecutter.spec b/cookiecutter.spec index c5151a9..4e62945 100644 --- a/cookiecutter.spec +++ b/cookiecutter.spec @@ -26,18 +26,18 @@ Group: Development/Languages/Python URL: https://github.com/audreyr/cookiecutter Source: https://files.pythonhosted.org/packages/source/c/cookiecutter/cookiecutter-%{version}.tar.gz Source1: ccext.py -BuildRequires: git +BuildRequires: fdupes +BuildRequires: git-core BuildRequires: python3-Jinja2 >= 2.7 BuildRequires: python3-binaryornot >= 0.2.0 BuildRequires: python3-click >= 7.0 -BuildRequires: python3-devel BuildRequires: python3-future >= 0.15.2 BuildRequires: python3-jinja2-time >= 0.1.0 BuildRequires: python3-poyo >= 0.1.0 BuildRequires: python3-python-slugify BuildRequires: python3-setuptools BuildRequires: python3-whichcraft >= 0.4.0 -Requires: git +Requires: git-core Requires: python3-Jinja2 >= 2.7 Requires: python3-binaryornot >= 0.2.0 Requires: python3-click >= 7.0 @@ -54,7 +54,6 @@ BuildArch: noarch BuildRequires: python3-chardet >= 2.0.0 BuildRequires: python3-freezegun BuildRequires: python3-pytest -BuildRequires: python3-pytest-cov BuildRequires: python3-pytest-mock BuildRequires: python3-requests >= 2.18.0 # /SECTION @@ -85,6 +84,8 @@ This package contains the documentation for cookiecutter. %setup -q -n cookiecutter-%{version} sed -i "s/cookiecutter =/cookiecutter-%{py3_ver} =/" setup.py cp %{SOURCE1} docs +# Remove pytest addopts: +rm setup.cfg %build python3 setup.py build @@ -98,6 +99,7 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/alternatives touch %{buildroot}%{_sysconfdir}/alternatives/cookiecutter ln -sf %{_sysconfdir}/alternatives/cookiecutter %{buildroot}%{_bindir}/cookiecutter +%fdupes %{buildroot}%{python3_sitelib} %check export LC_ALL=en_US.UTF-8