Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
9da02f61bc | |||
864b5fbb7f |
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 13:11:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 07:26:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-PyMeta3
|
||||
Version: 0.5.1
|
||||
Release: 0
|
||||
@@ -24,7 +23,9 @@ Summary: Pattern-matching language based on OMeta for Python 3 and 2
|
||||
License: MIT
|
||||
URL: https://github.com/wbond/pymeta3
|
||||
Source: https://files.pythonhosted.org/packages/source/P/PyMeta3/PyMeta3-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
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}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
install -D -m0755 bin/generate_parser %{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}
|
||||
%license LICENSE
|
||||
%doc NEWS README
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pymeta
|
||||
%{python_sitelib}/[Pp]y[Mm]eta3-%{version}*-info
|
||||
%python_alternative %{_bindir}/generate_parser
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user