Re: PyPDF2 and stapler (RPM build error for stapler)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 17 Jan 2015 23:08:42 +0100 Felix Schwarz <fschwarz@xxxxxxxxxxxxxxxxx> wrote:

> 
> Am 17.01.2015 um 21:13 schrieb Ranjan Maitra:
> > and the PyPDF2 is this one:
> > 
> > https://mstamy2.github.io/PyPDF2/
> 
> There are a few requests for PyPDF2 in bugzilla. As I mentioned a couple of
> times I'd like to see a new package for that instead of upgrading pypdf
> itself. You should be able to find some spec file attempts in one of the open
> bugs.
> 
> If you are going to submit a pypdf2 package for review feel free to cc me in bz.

Hi,

I did successfully create a PyPDF2 rpm using the following spec file (it was a trial-and-error and it seems to "work").

$ fpaste PyPDF2.spec
Uploading (2.7KiB)...
http://ur1.ca/jqd0j -> http://paste.fedoraproject.org/185671/39788881

However, I did not have as much success with creating a RPM for stapler so I was wondering if someone could help me with the spec file (I have almost no experience with python and python spec files). Here is the spec file:

$ fpaste pdfstapler.spec
Uploading (2.2KiB)...
http://ur1.ca/jqd0u -> http://paste.fedoraproject.org/185673/42397898

However, the rpmbuild gives me the following errors:


$ rpmbuild -bb pdfstapler.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5bzBrf
+ umask 022
+ cd /home/maitra/rpmbuild/BUILD
+ cd /home/maitra/rpmbuild/BUILD
+ rm -rf stapler-master
+ /usr/bin/unzip -qq /home/maitra/rpmbuild/SOURCES/master.zip
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd stapler-master
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ryc7by
+ umask 022
+ cd /home/maitra/rpmbuild/BUILD
+ cd stapler-master
+ /usr/bin/python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/staplelib
copying staplelib/commands.py -> build/lib/staplelib
copying staplelib/stapler.py -> build/lib/staplelib
copying staplelib/tests.py -> build/lib/staplelib
copying staplelib/iohelper.py -> build/lib/staplelib
copying staplelib/__init__.py -> build/lib/staplelib
running egg_info
creating stapler.egg-info
writing requirements to stapler.egg-info/requires.txt
writing stapler.egg-info/PKG-INFO
writing top-level names to stapler.egg-info/top_level.txt
writing dependency_links to stapler.egg-info/dependency_links.txt
writing entry points to stapler.egg-info/entry_points.txt
writing manifest file 'stapler.egg-info/SOURCES.txt'
reading manifest file 'stapler.egg-info/SOURCES.txt'
writing manifest file 'stapler.egg-info/SOURCES.txt'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Iq93nR
+ umask 022
+ cd /home/maitra/rpmbuild/BUILD
+ '[' /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64 '!=' / ']'
+ rm -rf /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
++ dirname /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
+ mkdir -p /home/maitra/rpmbuild/BUILDROOT
+ mkdir /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
+ cd stapler-master
+ rm -rf /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
+ /usr/bin/python setup.py install -O1 --skip-build --root /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
running install
running install_lib
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages
creating /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
copying build/lib/staplelib/commands.py -> /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
copying build/lib/staplelib/stapler.py -> /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
copying build/lib/staplelib/tests.py -> /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
copying build/lib/staplelib/iohelper.py -> /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
copying build/lib/staplelib/__init__.py -> /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib
byte-compiling /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib/commands.py to commands.pyc
byte-compiling /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib/stapler.py to stapler.pyc
byte-compiling /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib/tests.py to tests.pyc
byte-compiling /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib/iohelper.py to iohelper.pyc
byte-compiling /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/staplelib/__init__.py to __init__.pyc
writing byte-compilation script '/tmp/tmpSBKHMb.py'
/usr/bin/python -O /tmp/tmpSBKHMb.py
removing /tmp/tmpSBKHMb.py
running install_egg_info
running egg_info
writing requirements to stapler.egg-info/requires.txt
writing stapler.egg-info/PKG-INFO
writing top-level names to stapler.egg-info/top_level.txt
writing dependency_links to stapler.egg-info/dependency_links.txt
writing entry points to stapler.egg-info/entry_points.txt
reading manifest file 'stapler.egg-info/SOURCES.txt'
writing manifest file 'stapler.egg-info/SOURCES.txt'
Copying stapler.egg-info to /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info
running install_scripts
Installing stapler script to /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/bin
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/maitra/rpmbuild/BUILD/stapler-master
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
find: 'debug': No such file or directory
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/maitra/rpmbuild/BUILDROOT/stapler-master-.fc21.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/bin/stapler
   /usr/lib/python2.7/site-packages/staplelib/__init__.py
   /usr/lib/python2.7/site-packages/staplelib/__init__.pyc
   /usr/lib/python2.7/site-packages/staplelib/__init__.pyo
   /usr/lib/python2.7/site-packages/staplelib/commands.py
   /usr/lib/python2.7/site-packages/staplelib/commands.pyc
   /usr/lib/python2.7/site-packages/staplelib/commands.pyo
   /usr/lib/python2.7/site-packages/staplelib/iohelper.py
   /usr/lib/python2.7/site-packages/staplelib/iohelper.pyc
   /usr/lib/python2.7/site-packages/staplelib/iohelper.pyo
   /usr/lib/python2.7/site-packages/staplelib/stapler.py
   /usr/lib/python2.7/site-packages/staplelib/stapler.pyc
   /usr/lib/python2.7/site-packages/staplelib/stapler.pyo
   /usr/lib/python2.7/site-packages/staplelib/tests.py
   /usr/lib/python2.7/site-packages/staplelib/tests.pyc
   /usr/lib/python2.7/site-packages/staplelib/tests.pyo
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/PKG-INFO
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/SOURCES.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/dependency_links.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/entry_points.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/not-zip-safe
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/requires.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/top_level.txt


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/bin/stapler
   /usr/lib/python2.7/site-packages/staplelib/__init__.py
   /usr/lib/python2.7/site-packages/staplelib/__init__.pyc
   /usr/lib/python2.7/site-packages/staplelib/__init__.pyo
   /usr/lib/python2.7/site-packages/staplelib/commands.py
   /usr/lib/python2.7/site-packages/staplelib/commands.pyc
   /usr/lib/python2.7/site-packages/staplelib/commands.pyo
   /usr/lib/python2.7/site-packages/staplelib/iohelper.py
   /usr/lib/python2.7/site-packages/staplelib/iohelper.pyc
   /usr/lib/python2.7/site-packages/staplelib/iohelper.pyo
   /usr/lib/python2.7/site-packages/staplelib/stapler.py
   /usr/lib/python2.7/site-packages/staplelib/stapler.pyc
   /usr/lib/python2.7/site-packages/staplelib/stapler.pyo
   /usr/lib/python2.7/site-packages/staplelib/tests.py
   /usr/lib/python2.7/site-packages/staplelib/tests.pyc
   /usr/lib/python2.7/site-packages/staplelib/tests.pyo
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/PKG-INFO
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/SOURCES.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/dependency_links.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/entry_points.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/not-zip-safe
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/requires.txt
   /usr/lib/python2.7/site-packages/stapler-0.3.0-py2.7.egg-info/top_level.txt


Any suggestions as to what I am doing wrong/how to correct it?

Many thanks and best wishes,
Ranjan

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux