PyPDF2 and stapler (RPM build error for stapler)

Ralf Corsepius rc040203 at freenet.de
Mon Feb 16 06:39:23 UTC 2015


On 02/16/2015 06:41 AM, Ranjan Maitra wrote:
> Hi,
>
> Thanks for this!
>
>> In case you do not to intend to submit this package to Fedora, the only
>> way to avoid this clash, is to resort to renaming your package (e.g. to
>> call it pdfstapler).
>
> How and where in the .spec file should I do this?

Something along the lines of:

Name: pdfstapler
...
URL: <somewhere>/stapler-<version>.tar.gz
...
%setup -q -n stapler-<version>
...

> What happens to the binary, etc inside the package?
The contents would not actually change.

What would change is the package's name and the location used for "%doc 
<rel filename>" (/usr/share/doc/pdfstapler instead of 
/usr/share/doc/stapler).

Of course, you'd have to check if the files inside of your package would 
clash with files provided by other packages, in particular against the 
files inside of the other "stapler":

# repoquery -ql stapler
/usr/share/doc/stapler
/usr/share/doc/stapler/LICENSE
/usr/share/java/stapler/stapler.jar
/usr/share/maven-metadata/stapler-stapler.xml
/usr/share/maven-poms/stapler/stapler.pom


Ralf




More information about the users mailing list