On Tue, May 12, 2015 at 10:19:39PM +0200, Suvayu Ali wrote:
> I am sorry I do not quite understand. I presume that you mean
that one should rename stapler (my packaged version) to something else. I tried doing this
in the spec file. But it never worked because the spec file looks for that something else
then. I could not figure out how to fix this so just created the file for my personal
use.
> If you or someone else would like to take a look, here it is:
> fpaste pdf-stapler.spec
> Uploading (2.4KiB)...
>
http://ur1.ca/kckv7 ->
http://paste.fedoraproject.org/221087/14400891
Just rename the tarball to the new name and you are good. The %{name}
macro takes the value from the Name: field in the spec file.
Actually, please keep the upstream tarball name; renaming it shouldn't
be necessary. Also, the guidelines contain a recipe for source from
github:
https://fedoraproject.org/wiki/Packaging:SourceURL#Github
What you'll need is to provide the _original_ name to the %setup
macro. In this case, that'd be '%setup -q -n stapler'.
If I recall correctly, Fedora packaging guidelines says the package
name
should be something like python-stapler.
It kind of depends. That is the case for python _modules_ — packages
intended to be used by other python programs. However, this is a
utility which happens to be written in Python — it doesn't need that
prefix (but you _could_ do that).
There a number of other issues in the spec file currently — I'll
address them separately.
--
Matthew Miller
<mattdm(a)fedoraproject.org>
Fedora Project Leader