From 963c0ca792d9393c4ae5a2ebd524ba7db6f7ceab Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 02:47:54 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 0.4.1-1mamba;Thu Aug 01 2013] --- README.md | 2 ++ krop.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 krop.spec diff --git a/README.md b/README.md index 426b913..1aea0a6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # krop +A tool to crop PDF files, with an eye towards eReaders. + diff --git a/krop.spec b/krop.spec new file mode 100644 index 0000000..3c08f36 --- /dev/null +++ b/krop.spec @@ -0,0 +1,49 @@ +Name: krop +Version: 0.4.1 +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 +URL: http://arminstraub.com/computer/krop +Source: http://arminstraub.com/downloads/krop/krop-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +Requires: python-poppler-qt4 +Requires: python-pypdf +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%prep +%setup -q + +%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 + +install -D -m0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop + +%files -f %{name}.filelist +%defattr(-,root,root) +%{_datadir}/applications/%{name}.desktop +%doc LICENSE + +%changelog +* Thu Aug 01 2013 Silvan Calarco 0.4.1-1mamba +- package created by silvan using the webbuild interface