generated from demus/python3-rpm-template
Build and provide rpm of python3-pyp2spec-rpm / rpmbuild (release) Failing after 26s
55 lines
929 B
RPMSpec
55 lines
929 B
RPMSpec
%global forgeurl https://git.demus.dk/demus/pyp2spec
|
|
%global forgename gitea.com
|
|
|
|
Version: 0.12.1
|
|
Name: pyp2spec
|
|
|
|
Release: %autorelease
|
|
Summary: Generate Fedora RPM spec files for Python projects
|
|
|
|
%forgemeta
|
|
|
|
# Code is MIT, templates and files generated by the tool MIT-0
|
|
License: MIT AND MIT-0
|
|
URL: %{forgeurl}
|
|
Source: %{forgesource}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
%description
|
|
pyp2spec is a tech preview. It is a tool generating Fedora RPM spec files
|
|
for Python distributions. It utilizes the benefits of pyproject-rpm-macros.
|
|
|
|
|
|
%prep
|
|
%forgesetup
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -t
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files pyp2spec -l
|
|
|
|
|
|
%check
|
|
%tox
|
|
|
|
|
|
%files -f %{pyproject_files}
|
|
%doc README.md
|
|
%{_bindir}/pyp2spec
|
|
%{_bindir}/conf2spec
|
|
%{_bindir}/pyp2conf
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|