python-pypdf2/python-pypdf2.spec

56 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-pypdf2
Version: 1.27.4
Release: 1mamba
Summary: PDF toolkit
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypdf2.readthedocs.io/en/latest/
Source: https://pypi.debian.net/PyPDF2/PyPDF2-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
BuildArch: noarch
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n PyPDF2-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%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
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/PyPDF2-%{version}-py*.egg-info
%{python_sitearch}/PyPDF2-%{version}-py*.egg-info/*
%doc LICENSE
%changelog
* Sat Apr 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.27.4-1mamba
- update to 1.27.4
* Wed Aug 31 2016 Automatic Build System <autodist@mambasoft.it> 1.26.0-1mamba
- automatic update by autodist
* Tue Jun 09 2015 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.24-1mamba
- package created using the webbuild interface