summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Add SourceLicense tag to spec syntaxFlorian Festi2022-09-021-0/+1
| | | | | | | | | to set a separate license to the source RPM. This can be useful if the sources have code under additional licenses that do not end up in the binary packeges. Resolves: #2079 (cherry picked from commit 9ed9d3fce34bc3c8121989e0cf263528e7e68756)
* Before importing an OpenPGP certificate, lint itNeal H. Walfield2022-08-171-0/+26
| | | | | | | | | | | | | | | When importing an OpenPGP certificate, lint the certificate to show the user possible issues. Fail if the certificate is completely unusable. Using the Sequoia backend, this yields, for instance: $ ./rpmkeys --import tests/data/keys/alice-revoked-subkey.asc Certificate B3A771BFEB04E625: Subkey 1F71177215217EE0 was revoked: Key material has been compromised, it was the maid Certificate does not have any usable signing keys Fixes #1974. (cherry pick d703160334ff545ce8bf7475da5689422f43dacc)
* Add UpstreamReleases tagStanislav Brabec2022-06-281-0/+1
| | | | | | | | | | | | | Create a new optional UpstreamReleases tag that allows to specify an URL of the location, where the source code could be downloaded. In contrast to the URL part of the Source tag, this is intended for the referrer of the sorce code, e. g. download top dir or the sub-page of the web that contains references to the source files. Third party tools or the package maintainer can use this tag and find the latest version of the source code. Co-authoredby: Florian Festi <ffesti@redhat.com> (cherry picked from commit c0b417f572d2450f060f8cde901a8edb4f9a3b33)
* Add TranslationURL tagStanislav Brabec2022-06-281-0/+1
| | | | | | | | Create a new optional TranslationURL tag that allows to specify URL for translators. Third party tools can visualize it and motivate people to translate. (cherry picked from commit c10073d1932a536c9f2db59b8426d4e630b21216)
* Document --root assumptions both in the manual and APIPanu Matilainen2022-06-281-0/+5
| | | | | Fixes: #2081 (cherry picked from commit 370c58746c3b8c178808aaa95e1acb009fc4a677)
* Add parsed and expanded spec to src.rpm header (#1241)Panu Matilainen2022-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | The trend of packaging is to hide more and more of what actually happens behind helper macros and other dynamically generated constructs. While this is mostly a good thing, it makes understanding and postmortem analysis harder than it should be. Add the spec in its parsed and expanded form into the src.rpm header to make the actual contents of the build more trackable. It can be argued this does not belong in the header and should be in payload instead, my rationale for the placement is that this way the payload remains effectively arch independent, whereas the header already heavily reflects the particular environment where it was built. Probably worth noting that %setup and %patch built-in macros are not properly expanded in the stored spec, but that's a separate issue related the special way %prep is processed. Fixes: #1241
* Add proper deprecation warnings to deprecated rpmsq functionsPanu Matilainen2022-04-081-0/+16
|
* Fix minor ABI regression wrt RPMQV_* enumPanu Matilainen2022-04-051-1/+1
| | | | | | | Commit 949dc7c31ad26cb489e54386d289b73f40a54b80 introduced a new value into middle of a public enum, which we can't do since we're not bumping soname here. Not that anybody would've noticed, nothing outside rpm itself uses this rpmcli stuff really.
* Add compiler deprecation warnings to obsolete rpmfi APIsPanu Matilainen2022-04-051-0/+4
| | | | | Should've been in commit 53b408c18ee9738c3b461c3c43acc40a0fd72f3f already.
* Kick out --nopromote remnants, add compiler deprecation warningsPanu Matilainen2022-04-051-0/+3
| | | | | | Bury the two remaining callers that somehow avoided the massacre in commit 6800e0a4df14e03157a463b55cbe6adfa0ce0c3d, add compiler deprecation warnings.
* Mark deprecated PGP/keyring APIs as suchPanu Matilainen2022-04-052-0/+14
| | | | | | Add RPM_GNUC_DEPRECATED markers where we can, unfortunately these APIs are used to implement each others so adding more would cause unwanted warnings to build of rpm itself.
* Make pgpDigParams opaqueNeal H. Walfield2022-03-311-1/+72
| | | | | | | | | | | | - Add accessor functions pgpDigParamsSignID, pgpDigParamsUserID, pgpDigParamsVersion, and pgpDigParamsTime. - Move the definition of `pgpDigParams_s` from `rpmio/digest.h` to `rpmio/rpmpgp.c`. - Change code to use the accessor functions. - Fixes #1979.
* Eliminate the strange include pre-build install machineryPanu Matilainen2022-03-1037-0/+9093
Introduced back in 2007 in 583140460100ea99553d883174065ca22a3099b2 the point was to fake up a sane public header structure with minimal internal disruption, TEMPORARILY. I think 15 years is temporary enough. The machinery has worked rather well for what it is, but having the headers appear in multiple locations is weird and confusing to people, plus this "physical" separation makes it far more clearer what is a public header and what isn't.