14
0

Accepting request 807621 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807621
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMeta3?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:39:33 +00:00
committed by Git OBS Bridge
parent 262d32e0b6
commit f0ddf0e6aa
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 7 15:17:39 UTC 2019 - Matej Cepl <mcepl@suse.com> Thu Nov 7 15:17:39 UTC 2019 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyMeta3 # spec file for package python-PyMeta3
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@ Source: https://files.pythonhosted.org/packages/source/P/PyMeta3/PyMeta3
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -51,11 +53,18 @@ It is a fork of PyMeta 0.5.0 that supports Python 2 and 3.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
install -D -m0755 bin/generate_parser %{buildroot}%{_bindir}/generate_parser install -D -m0755 bin/generate_parser %{buildroot}%{_bindir}/generate_parser
sed -i -e 's/env python$/python3/' %{buildroot}%{_bindir}/generate_parser sed -i -e 's/env python$/python3/' %{buildroot}%{_bindir}/generate_parser
%python_clone -a %{buildroot}%{_bindir}/generate_parser
%post
%python_install_alternative generate_parser
%postun
%python_uninstall_alternative generate_parser
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc NEWS README %doc NEWS README
%{python_sitelib}/* %{python_sitelib}/*
%python3_only %{_bindir}/generate_parser %python_alternative %{_bindir}/generate_parser
%changelog %changelog