krop/krop.spec

50 lines
1.4 KiB
RPMSpec
Raw Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.4.1-1mamba
- package created by silvan using the webbuild interface