generated from demus/python3-rpm-template
Move sources to git.demus.dk
Build and provide rpm of python3-pyp2spec-rpm / rpmbuild (release) Failing after 26s
Build and provide rpm of python3-pyp2spec-rpm / rpmbuild (release) Failing after 26s
This commit is contained in:
+10
-15
@@ -1,12 +1,18 @@
|
|||||||
Name: pyp2spec
|
%global forgeurl https://git.demus.dk/demus/pyp2spec
|
||||||
|
%global forgename gitea.com
|
||||||
|
|
||||||
Version: 0.12.1
|
Version: 0.12.1
|
||||||
|
Name: pyp2spec
|
||||||
|
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Generate Fedora RPM spec files for Python projects
|
Summary: Generate Fedora RPM spec files for Python projects
|
||||||
|
|
||||||
|
%forgemeta
|
||||||
|
|
||||||
# Code is MIT, templates and files generated by the tool MIT-0
|
# Code is MIT, templates and files generated by the tool MIT-0
|
||||||
License: MIT AND MIT-0
|
License: MIT AND MIT-0
|
||||||
URL: https://github.com/danieldemus/pyp2spec
|
URL: %{forgeurl}
|
||||||
Source0: %{pypi_source pyp2spec}
|
Source: %{forgesource}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@@ -18,18 +24,7 @@ for Python distributions. It utilizes the benefits of pyproject-rpm-macros.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n pyp2spec-%{version}
|
%forgesetup
|
||||||
|
|
||||||
## START: Set by rpmautospec
|
|
||||||
## (rpmautospec version 0.7.3)
|
|
||||||
## RPMAUTOSPEC: autorelease, autochangelog
|
|
||||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
||||||
release_number = 1;
|
|
||||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
||||||
print(release_number + base_release_number - 1);
|
|
||||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
||||||
## END: Set by rpmautospec
|
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -t
|
%pyproject_buildrequires -t
|
||||||
|
|||||||
Reference in New Issue
Block a user