automatic version update by autodist [release 3.0.1-1mamba;Wed Jan 18 2023]
This commit is contained in:
parent
b716c9e8f1
commit
12051ee0b7
@ -1,5 +1,6 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-pypdf2
|
||||
Version: 2.11.1
|
||||
Version: 3.0.1
|
||||
Release: 1mamba
|
||||
Summary: PDF toolkit
|
||||
Group: System/Libraries
|
||||
@ -26,26 +27,31 @@ BuildArch: noarch
|
||||
%setup -q -n PyPDF2-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
#%if "%{?with_pyver}" != "3"
|
||||
## Rename any conflicting file outside of python site packages tree
|
||||
#for f in %{_bindir}/pdm; do
|
||||
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
#done
|
||||
#%endif
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%dir %{python_sitearch}/PyPDF2-%{version}-py*.egg-info
|
||||
%{python_sitearch}/PyPDF2-%{version}-py*.egg-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/PyPDF2
|
||||
%{python_sitelib}/PyPDF2/*
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Jan 18 2023 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Oct 11 2022 Automatic Build System <autodist@mambasoft.it> 2.11.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user