Add rpmdsTagF() and rpmdsTagEVR() to the API to accompany rpmdsTagN()
Add rpmdsPutToHeader function to to API
Expand options in %autopatch only once

- Work around scoping "fun" wrt nested parametrized macro invocations
  combined with macro manipulation from %{lua:...}

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Fix two off by one bugs breaking hardlinks in builds

for a link count of 2
Remember to actually install appdata.prov script

- Should've been in commit e6cadc6d5a1d2cf2c61c738808b5f2b212452148
No longer needed.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Function writeRPM was modified to one pass implemntation to improve performance. Now data aren't written into temporary file and then copied into final file but they are directy written into final file.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Add a %_rundir macro to the platform files.

The default value is /run, it can be changed with the --with-rundir
configure option.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Dont mess with PPC character signedness (RhBug:1085127)

- Overriding architecture default ABI is not something rpm upstream
  should do, such decisions belong to distro level.
- -fsigned-char was originally added in back in 1997 with little
  fanfare in commit 3cb5b141d5d26a73b9d3b4a21763dac1fb3b32ed, for
  whatever it is worth...
Sometimes a smaller hammer is better (but only sometimes)

- The sed-munger added in commit ccd6281e699781e0b00edb16b6e9f4dec6878c15
  causes bigger breakage than it fixes, perhaps because the hammer
  applied was disproportionally large. The only thing needing adjustment
  is ${prefix} in case when localstatedir is not explicitly set, so
  we fixup just that instead of "everything".
- Discovered via RhBug:921973 testing
Revert back to DSA-1 only support for NSS

- This essentially reverts commit fe5a1e5dfa93f15b7beda59e193832577143a4d9
  which apparently causes intermittent failures with DSA-1. Look at
  DSA-2 again on some sunnier day...
Plug ages old memleak on package signing
Removed historical leftover.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
There is no need to recalculate digests during signing.

Digests are not signatures even if they reside in "signature" header,
and signing a package must not affect the digests. So recalculating
digests on signing is not just wasteful, but also conceptually plain
wrong.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Removed now unused internal helper functions.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Passing data to sign to the gpg program by a pipe.

- This change shorten signing time beacause it is not necessary to
write data that should be signed, into a temporary file and then pass
this file to gpg program.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Function manageFile was modified to support also "r+.ufdio" mode.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Reserve space for gpg signature during building of package.

- During building of a package a dummy tag is added to the signature
header. This tag reserves some space for gpg signatures. So during
signing of the package the gpg signatures can be put in this reserved
space and it is not necessary to rewrite the whole package to make some
space for gpg signatures.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
l10n: vi.po (759t): Init Vietnamese translation

  * Init then translate all strings
  * Add vi to LINGUAS

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
New function addFileListRecord()

This function takes care about appending of FileListRec structure
to the FileList struct's files.