Hello, > However, your suggestions really helped me and I was able to modify the spec file (was missing the python2-sitelib part) and can make a rpm. Here is the spec file: > > $ fpaste pdfstapler.spec > Uploading (2.4KiB)... > http://ur1.ca/jqgcf -> http://paste.fedoraproject.org/185742/15606142 > > Not completely sure if this is correct. So it would be great if someone could verify to its correctness. > > But I still had some other questions. > > Specifically, how do I get the version number in the name of the rpm. Right now, it is stapler-master simply because the master is used in the source file? > > Also, the binary is called stapler. However, there is already a stapler binary (as part of a totally different package for URL applications). Is there a way to name this automagically? (The package and the binary that I am packaging are called stapler - I guess I was thinking of renaming them to pdfstapler to avold confusion.) > Actually, I have realized that there is a big(ger) problem. I am able to install my stapler and I am able to make it work (on all the test examples that I tried) but the problem is that a yum update would wipe it out (with the repo's stapler which is quite different in scope and functionality from the python package). sudo yum update Loaded plugins: fastestmirror, langpacks .... ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: stapler noarch 1.233-1.fc21 updates 303 k Installing for dependencies: android-json-org-java noarch 4.3-0.2.r3.1.fc21 fedora 29 k annotation-indexer noarch 1.9-2.fc21 fedora 19 k ant noarch 1.9.4-3.fc21 fedora 2.0 M ant-antlr noarch 1.9.4-3.fc21 fedora 36 k ant-junit noarch 1.9.4-3.fc21 fedora 146 k antlr-tool noarch 2.7.7-34.fc21 fedora 362 k apache-commons-beanutils noarch 1.9.2-1.fc21 fedora 229 k apache-commons-cli noarch 1.2-13.fc21 fedora 51 k apache-commons-codec noarch 1.9-4.fc21 fedora 228 k apache-commons-collections noarch 3.2.1-20.fc21 fedora 505 k apache-commons-discovery noarch 2:0.5-12.fc21 fedora 81 k apache-commons-fileupload noarch 1.3.1-4.fc21 fedora 75 k apache-commons-io noarch 1:2.4-12.fc21 fedora 180 k apache-commons-lang noarch 2.6-16.fc21 fedora 277 k apache-ivy noarch 2.3.0-17.fc21 fedora 1.1 M args4j noarch 2.0.28-2.fc21 fedora 92 k bsf noarch 2.4.0-19.fc21 fedora 106 k cglib noarch 3.1-4.fc21 fedora 261 k codemodel noarch 2.6-15.fc21 fedora 165 k dom4j noarch 1.6.1-22.fc21 fedora 285 k easymock noarch 3.2-3.fc21 fedora 124 k ezmorph noarch 1.0.6-11.fc21 fedora 81 k felix-osgi-core noarch 1.4.0-17.fc21 fedora 96 k glassfish-dtd-parser noarch 1.2-0.10.20120120svn.fc21 fedora 70 k glassfish-fastinfoset noarch 1.2.12-11.fc21 fedora 327 k glassfish-jaxb noarch 2.2.5-5.fc20 fedora 1.8 M glassfish-jaxb-api noarch 2.2.9-6.fc21 fedora 93 k groovy18 noarch 1.8.9-14.fc21 fedora 4.7 M guava noarch 17.0-1.fc21 fedora 1.9 M hamcrest noarch 1.3-8.fc21 fedora 129 k hsqldb1 noarch 1.8.1.3-4.fc21 fedora 715 k isorelax noarch 1:0-0.16.release20050331.fc21 fedora 76 k istack-commons noarch 2.17-5.fc21 fedora 105 k jakarta-oro noarch 2.0.8-16.fc21 fedora 82 k jaxen noarch 1.1.6-4.fc21 fedora 204 k jdom noarch 1.1.3-7.fc21 fedora 176 k jdom2 noarch 2.0.5-4.fc21 fedora 871 k jenkins-json-lib noarch 2.4-7.fc21 fedora 139 k jettison noarch 1.3.4-4.fc21 fedora 83 k jing noarch 20091111-16.fc21 fedora 611 k jline1 noarch 1.0-10.fc21 fedora 66 k joda-convert noarch 1.6-2.fc21 fedora 93 k joda-time noarch 2.3-2.tzdata2013g.fc21 fedora 492 k jsr-305 noarch 0-0.17.20130910svn.fc21 fedora 29 k junit noarch 1:4.11-14.fc21 fedora 260 k jvnet-parent noarch 4-5.fc21 fedora 11 k jzlib noarch 1.1.3-2.fc21 fedora 75 k kxml noarch 2.3.0-7.fc21 fedora 151 k localizer noarch 1.19-2.fc21 fedora 12 k metainf-services noarch 1.5-4.fc21 fedora 12 k msv-msv noarch 1:2013.6.1-4.fc21 fedora 626 k msv-xsdlib noarch 1:2013.6.1-4.fc21 fedora 223 k objectweb-asm noarch 5.0.2-2.fc21 fedora 578 k objectweb-asm3 noarch 3.3.1-10.fc21 fedora 390 k objenesis noarch 1.2-16.fc21 fedora 64 k portlet-2.0-api noarch 1.0-9.fc21 fedora 54 k qdox noarch 1.12.1-10.fc21 fedora 170 k relaxngDatatype noarch 1.0-12.5.fc21 fedora 16 k relaxngcc noarch 1.12-6.fc20 fedora 350 k rngom noarch 201103-0.10.20120119svn.fc21 fedora 271 k stax-ex noarch 1.7.1-8.fc21 fedora 32 k stax2-api noarch 3.1.1-9.fc21 fedora 165 k tiger-types noarch 1.4-5.fc21 fedora 32 k tomcat-el-2.2-api noarch 7.0.54-3.fc21 fedora 77 k tomcat-jsp-2.2-api noarch 7.0.54-3.fc21 fedora 91 k txw2 noarch 20110809-11.fc21 fedora 138 k woodstox-core noarch 4.2.0-5.fc21 fedora 493 k ws-jaxme noarch 0.5.2-12.fc21 fedora 1.1 M xmlstreambuffer noarch 1.5.1-5.fc21 fedora 143 k xom noarch 1.0-16.fc21 fedora 129 k xpp2 noarch 2.1.10-19.fc21 fedora 266 k xpp3 noarch 1.1.4-3.c.fc21 fedora 325 k xpp3-minimal noarch 1.1.4-3.c.fc21 fedora 33 k xsom noarch 0-12.20110809svn.fc21 fedora 385 k xstream noarch 1.4.7-5.fc21 fedora 460 k Transaction Summary ================================================================================ Install ( 75 Dependent packages) Upgrade 1 Package Total download size: 26 M Is this ok [y/d/N]: Exiting on user command Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx.2015-02-15.10-54.eSOcai.yumtx Is there an easy way to change everything in the python stapler package (that I am packaging) to pdfstapler or some such name? Many thanks and best wishes, Ranjan ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth -- 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