2024-06-27 08:43:58 +02:00
|
|
|
%define gitver %(echo %version | cut -d. -f3)
|
2024-01-06 02:47:54 +01:00
|
|
|
Name: krop
|
2024-06-27 08:43:58 +02:00
|
|
|
Version: 0.6.1
|
|
|
|
Release: 1mamba
|
2024-01-06 02:47:54 +01:00
|
|
|
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
|
2024-06-27 08:43:58 +02:00
|
|
|
Source: https://github.com/PunkPangolin/krop.git/qt6-%{gitver}/krop-%{version}.tar.bz2
|
|
|
|
#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-17 18:48:25 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(setuptools)
|
2024-01-06 02:47:54 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-06-27 08:43:58 +02:00
|
|
|
Requires: PyQt6-py3
|
|
|
|
Requires: PyQt6-sip-py3
|
2024-01-06 02:47:55 +01:00
|
|
|
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
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-06-27 08:43:58 +02:00
|
|
|
* Wed Jun 26 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.1-1mamba
|
|
|
|
- update to 0.6.1
|
|
|
|
|
2024-01-17 18:48:25 +01:00
|
|
|
* Wed Jan 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-2mamba
|
|
|
|
- rebuilt with python3 == 3.11
|
|
|
|
|
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
|