|
| 1 | +# |
| 2 | +# spec file for package python-bytecode |
| 3 | +# |
| 4 | +# Copyright (c) 2025 SUSE LLC |
| 5 | +# |
| 6 | +# All modifications and additions to the file contributed by third parties |
| 7 | +# remain the property of their copyright owners, unless otherwise agreed |
| 8 | +# upon. The license for this file, and modifications and additions to the |
| 9 | +# file, is the same license as for the pristine package itself (unless the |
| 10 | +# license for the pristine package is not an Open Source License, in which |
| 11 | +# case the license is the MIT License). An "Open Source License" is a |
| 12 | +# license that conforms to the Open Source Definition (Version 1.9) |
| 13 | +# published by the Open Source Initiative. |
| 14 | + |
| 15 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 16 | +# |
| 17 | + |
| 18 | + |
| 19 | +Name: python-bytecode |
| 20 | +Version: ##RPMVERSION## |
| 21 | +Release: 1%{?dist} |
| 22 | +Summary: Python module to generate and modify bytecode |
| 23 | +License: MIT |
| 24 | +URL: https://github.com/mrcaique/bytecode |
| 25 | +Source: /github/home/rpmbuild/SOURCES/%{name}.tar.gz |
| 26 | +BuildRequires: python-rpm-macros |
| 27 | +BuildRequires: %{python_module pip} |
| 28 | +BuildRequires: %{python_module setuptools >= 61.2} |
| 29 | +BuildRequires: %{python_module setuptools_scm >= 3.4.3} |
| 30 | +BuildRequires: %{python_module wheel} |
| 31 | +BuildRequires: fdupes |
| 32 | +BuildArch: noarch |
| 33 | +%python_subpackages |
| 34 | + |
| 35 | +%description |
| 36 | +Python module to generate and modify bytecode |
| 37 | + |
| 38 | +%prep |
| 39 | +%autosetup -p1 -n bytecode |
| 40 | + |
| 41 | +%build |
| 42 | +%pyproject_wheel |
| 43 | + |
| 44 | +%install |
| 45 | +%pyproject_install |
| 46 | +%python_expand %fdupes %{buildroot}%{$python_sitelib} |
| 47 | + |
| 48 | +%files %{python_files} |
| 49 | +%doc README.rst |
| 50 | +%license COPYING |
| 51 | +%{python_sitelib}/bytecode |
| 52 | +%{python_sitelib}/bytecode-*.dist-info |
| 53 | + |
| 54 | +%changelog |
| 55 | + |
0 commit comments