Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 88625a7ab5 | |||
| 6e07e683b9 | |||
| 166b6cde64 | |||
| 1912fd9bce |
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 23 01:30:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 19:11:45 UTC 2024 - Guang Yee <gyee@suse.com>
|
||||||
|
|
||||||
|
- Enable sle15_python_module_pythons.
|
||||||
|
- Use proper macro for python executable
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 7 12:49:49 UTC 2021 - pgajdos@suse.com
|
Thu Oct 7 12:49:49 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ebcdic
|
# spec file for package python-ebcdic
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 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,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-ebcdic
|
Name: python-ebcdic
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,7 +25,9 @@ License: BSD-2-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/roskakori/CodecMapper
|
URL: https://github.com/roskakori/CodecMapper
|
||||||
Source: https://github.com/roskakori/CodecMapper/archive/v%{version}.tar.gz
|
Source: https://github.com/roskakori/CodecMapper/archive/v%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -38,17 +40,17 @@ Additional EBCDIC codecs for Python.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n CodecMapper-%{version}/ebcdic
|
%setup -q -n CodecMapper-%{version}/ebcdic
|
||||||
# do not use venv python
|
# do not use venv python
|
||||||
sed -i -e 's:"${basedir}/venv/bin/python":"/usr/bin/python3":' ../build.xml
|
sed -i -e 's:"${basedir}/venv/bin/python":"${PYTHON}":' ../build.xml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# first generate the py files
|
# first generate the py files
|
||||||
pushd ..
|
pushd ..
|
||||||
ant ebcdic
|
%python_expand ant ebcdic -DPYTHON="$python"
|
||||||
popd
|
popd
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -58,6 +60,7 @@ export LANG="en_US.UTF8"
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/ebcdic
|
||||||
|
%{python_sitelib}/ebcdic-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user