mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-29 13:44:21 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
Name: {{python_name}}
|
||||
Version: {{version}}
|
||||
Release: {{release}}%{?dist}
|
||||
Summary: {{summary}}
|
||||
|
||||
License: {{license}}
|
||||
URL: {{url}}
|
||||
Source0: {{source}}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%global _description %{expand:
|
||||
{{description}}}
|
||||
|
||||
{% for br in manual_build_requires %}BuildRequires: {{br}}
|
||||
{% endfor %}
|
||||
%description %_description
|
||||
|
||||
%package -n python3-{{name}}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n python3-{{name}} %_description
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n {{name}}-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires {{extra_build_requires}}
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files {{module_name}}
|
||||
|
||||
|
||||
%check
|
||||
{{test}}
|
||||
|
||||
|
||||
%files -n python3-{{name}} -f %{pyproject_files}
|
||||
%doc {{doc_files}}
|
||||
%license {{license_files}}
|
||||
|
||||
|
||||
%changelog
|
||||
* {{changelog_head}} - {{version}}-{{release}}
|
||||
- {{changelog_msg}}
|
||||
Reference in New Issue
Block a user