|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-PyMeta3
|
|
|
|
# spec file for package python-PyMeta3
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 SUSE LLC
|
|
|
|
# Copyright (c) 2025 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
|
|
|
@@ -16,7 +16,6 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
|
|
|
Name: python-PyMeta3
|
|
|
|
Name: python-PyMeta3
|
|
|
|
Version: 0.5.1
|
|
|
|
Version: 0.5.1
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
@@ -24,7 +23,9 @@ Summary: Pattern-matching language based on OMeta for Python 3 and 2
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/wbond/pymeta3
|
|
|
|
URL: https://github.com/wbond/pymeta3
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyMeta3/PyMeta3-%{version}.tar.gz
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyMeta3/PyMeta3-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(post): update-alternatives
|
|
|
@@ -46,10 +47,10 @@ It is a fork of PyMeta 0.5.0 that supports Python 2 and 3.
|
|
|
|
%setup -q -n PyMeta3-%{version}
|
|
|
|
%setup -q -n PyMeta3-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%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
|
|
|
@@ -64,7 +65,8 @@ sed -i -e 's/env python$/python3/' %{buildroot}%{_bindir}/generate_parser
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS README
|
|
|
|
%doc NEWS README
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{python_sitelib}/pymeta
|
|
|
|
|
|
|
|
%{python_sitelib}/[Pp]y[Mm]eta3-%{version}*-info
|
|
|
|
%python_alternative %{_bindir}/generate_parser
|
|
|
|
%python_alternative %{_bindir}/generate_parser
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|