From Mageia wiki
Jump to: navigation, search

--doktor5000 16:46, 15 December 2011 (UTC) In https://wiki.mageia.org/en/Packagers_RPM_tutorial#Create_required_folders is that script (which is currently missing - rpmsetup.sh / RPM Setup Script) really needed? I vote against this, as it's simply an mkdir call.

  • I just killed the paragraph ... --malo 17:21, 15 December 2011 (UTC)

rpm --resign doesn't work

After importing your gpg signature into the the RPM DB, you can check the signature but...:

<source lang=bash>

$ gpg --export -a 'My Full Name' >myfullname.txt
$ sudo rpm --import myfullname.txt
$ rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'
gpg-pubkey-80420f66-4d4fe123 --> gpg(Mageia Packages <packages@mageia.org>)
gpg-pubkey-17fcb029-42400c93 --> gpg(My Full Name <myfullname@somesite>)
rpm --checksig foo.rpm
foo.rpm: sha1 md5 OK

</source> ...you can't sign your homemade rpm: <source lang=bash>

rpm --resign foo.rpm
rpm can't find file

</source>

Any reason for that or am I wrong? --nbrouard 11:30, 27 November 2014 (UTC)

re- rpm --resign doesn't work

I've been hitting the same problem yesterday.

Stracing rpm resign, I found out the binary rpm-sign is called, but not installed. This is where our "can't find file" comes from.

You need to install rpm-sign. The problem also appears in centos7. Somehow, installing rpmdev doesn't pull rpmsign.

[sudo] urpmi rpm-sign

--syn 16:02, November 19 2015 (UTC)

Why don't you use extensions in the mageia wiki?

require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";

at least is important for clarifying source code.--nbrouard 11:30, 27 November 2014 (UTC)