forked from pool/python-subst
Accepting request 807264 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807264 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-subst?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 08:03:08 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 13 08:53:14 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-subst
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,26 +12,26 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-subst
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Utility to replace one string into another in given list of files
|
||||
Url: http://mysz.github.io/subst/
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://mysz.github.io/subst/
|
||||
Source: https://files.pythonhosted.org/packages/source/s/subst/subst-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/msztolcman/subst/master/LICENSE
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -52,16 +52,23 @@ touch test/__init__.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/subst
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONPATH=${PWD}/test
|
||||
%python_exec setup.py test
|
||||
|
||||
%post
|
||||
%python_install_alternative subst
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative subst
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%python3_only %{_bindir}/subst
|
||||
%python_alternative %{_bindir}/subst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user