2011-04-26 21:39:44 +02:00
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
|
|
URL: ...
|
|
|
|
Source: ...
|
|
|
|
License: ...
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
Requires: python >= %python_version
|
|
|
|
|
|
|
|
%description
|
2012-04-17 22:55:13 +02:00
|
|
|
%{summary}.
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2016-02-16 19:34:06 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \\
|
|
|
|
\ -O1 --skip-build \\
|
|
|
|
\ --root="%{buildroot}" \\
|
2016-02-16 19:34:06 +01:00
|
|
|
\ --install-headers=%{python_inc} \\
|
2011-04-26 21:39:44 +02:00
|
|
|
\ --install-lib=%{python_sitearch} \\
|
|
|
|
\ --record=%{name}.filelist
|
|
|
|
|
2021-03-16 21:36:45 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2016-02-16 19:34:06 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2011-04-26 21:39:44 +02:00
|
|
|
%defattr(-,root,root)
|
2012-04-10 23:42:12 +02:00
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{python_sitearch}/%{name}.py*
|
|
|
|
# %{python_sitearch}/%{name}.so
|
2011-04-26 21:39:44 +02:00
|
|
|
@standard_docs@
|
2016-10-16 17:40:00 +02:00
|
|
|
## note: add extra documentation (if any)
|
2011-12-16 22:00:51 +01:00
|
|
|
# @standard_docs_devel@
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|