On Fri, May 22, 2015 at 09:54:07AM -0500, Ranjan Maitra wrote:
Hmmm, first thing here — you're asking for python3-devel but calling
%{__python} (which is currently %{__python2}) instead of
% %{__python3}, and you're using the python2 sitelib.
However, it "crashes" after installation:
[...]
pkg_resources.DistributionNotFound: pypdf==1.12
We actually have pyPdf in the distro. However, it's 1.13. Try:
at the top of the file:
%define pypdfversion 1.13
requires line:
Requires: pyPdf = %{pypdfversion}
(no need for BuildRequires), and then put this after %setup
for f in setup.py stapler.egg-info/requires.txt ; do
sed -i 's/pypdf == 1.12/pypdf == %{pypdfversion}/g' $f
done
Having made these changes, your specfile works for me and pdf-stapler
appears to run — at least, it does not crash.
--
Matthew Miller
<mattdm(a)fedoraproject.org>
Fedora Project Leader