PyPDF2 and stapler (RPM build error for stapler)

Ranjan Maitra maitra.mbox.ignored at inbox.com
Mon Feb 16 21:24:08 UTC 2015


Thanks very much! So here is the problem I have:
 
> %global snapdate 20150128
> %global commit 8b5f409afc9b35e0fe71ceb46d97292d79a7158b
> %global shortcommit %(c=%{commit}; echo ${c:0:7})
> 
> %global realname stapler
> 
> Name:           pdf%{realname}
> # The Version is hidden in the stapler script
> Version:        0.3.0
> Release:        0.%{snapdate}git%{shortcommit}%{?dist}
> Summary:        Python-based PDF toolkit alternative to obsoleted pdftk
> 
> Group:          Applications/System
> License:        BSD
> URL:            https://github.com/hellerbarde/%{realname}
> Source0:        https://github.com/hellerbarde/%{realname}/archive/%{commit}/%{realname}-%{snapdate}git%{shortcommit}.tar.gz
.....

So, I try:

% rpmbuild -bb pdfstapler.spec 
error: File /home/user/rpmbuild/SOURCES/stapler-20150128git8b5f409.tar.gz: No such file or directory

So, it turns out that I don't quite have a file called stapler-20150128git8b5f409.tar.gz. 

I guess this is coming from the %{realname}-%{snapdate}git%{shortcommit}.tar.gz but I am not sure whether there is a file which is called stapler-20150128git8b5f409.tar.gz. Where do you find this from? Sorry about the naivety of the question but I am not as familiar with git as I am with subversion.

Best wishes,
Ranjan

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




More information about the users mailing list