2024-01-06 02:47:54 +01:00
|
|
|
Name: krop
|
2024-01-06 02:47:55 +01:00
|
|
|
Version: 0.6.0
|
2024-01-06 02:47:54 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A tool to crop PDF files, with an eye towards eReaders
|
|
|
|
Group: Graphical Desktop/Applications/Publishing
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 02:47:55 +01:00
|
|
|
URL: http://arminstraub.com/software/krop
|
|
|
|
Source: https://github.com/arminstraub/krop.git/v%{version}/krop-%{version}.tar.bz2
|
2024-01-06 02:47:54 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 02:47:55 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(setuptools)
|
2024-01-06 02:47:54 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 02:47:55 +01:00
|
|
|
Requires: python-poppler-qt5-py3
|
|
|
|
Requires: python-pypdf-py3
|
2024-01-06 02:47:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-01-06 02:47:55 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2024-01-06 02:47:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 02:47:55 +01:00
|
|
|
%{__python3} setup.py install \
|
2024-01-06 02:47:54 +01:00
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
2024-01-06 02:47:55 +01:00
|
|
|
--install-lib=%{python3_sitearch} \
|
2024-01-06 02:47:54 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
|
|
|
install -D -m0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 02:47:55 +01:00
|
|
|
%dir %{python3_sitearch}/krop-%{version}-py*.egg-info
|
|
|
|
%{python3_sitearch}/krop-%{version}-py*.egg-info/*
|
2024-01-06 02:47:54 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 02:47:55 +01:00
|
|
|
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-1mamba
|
|
|
|
- update to 0.6.0
|
|
|
|
|
2024-01-06 02:47:54 +01:00
|
|
|
* Thu Aug 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|