#43 Import GNU Hello packaging tutorial
Merged by oturpe. Opened by oturpe.
fedora-docs/ oturpe/package-maintainer-docs import-gnu-hello-tutorial  into  main

Download 43.patch

Quick Docs have some pages about RPM Packaging.
This material goes better into Package Maintainer Docs.
The pages are out of date,
thus they also need to be updated
to match todays packaging practices.
Updating all of them in one to go would be a quite large undertaking,
so instead, just one page is updated and imported here.
The rest can be handled later.

This pull request has partial overlap with #22.
However, the conflict resolution there will be easy,
since the article already handled by this pull request
just has to be dropped there.

@ankursinha
May I ask for reviews again?
I have this one, #41 and #38 ready for review.

Good to merge (and then we'll replace the page in the quick docs with links to here).

I havent't gone through #22, but in general, I think we should stop using rpmbuild and just use fedpkg commands. We can update that bit later after the import.

Please feel free to rebase this etc and merge as you see fit :thumbsup:

Using fedpkg instead of rpmbuild is a really good improvement idea.
It is not a large job at all,
so I think I will include that change in this pull request.
Just for reference, #22 did not have that either,
the content there is just copied over from Quick Docs,
then formatting improvements and link fixes.

I will also take of submitting a PR to Quick Docs about this move.

rebased onto d3bb2c5da81f71b08eb390314049c127a619dcd4

@ankursinha I added another commit which introduces fedpkg here.
Let me know what you think.

Should we link to the macros page in the guidelines for this (since this may differ from the default rpm macros)?

https://docs.fedoraproject.org/en-US/packaging-guidelines/RPMMacros/#_macros_for_paths_set_and_used_by_build_systems

Otherwise I think it looks very good! +1 to merge :)

rebased onto 3dc869e80c0921288fcffa54b1f3920da12cb534

Thank you for the review.
Agreed, pointing to Packaging Guidelines for the default rpm macros is better.
I did that change,
merging now.

fedpkg and/or rpkg would gain from patches
for the fact that fedpkg lint does not find the correct files
and for the fact that all fedpkg invocations need --release rawhide
(even if done inside a local Git repository with rawhide branch checked out).
I will try to file bugs and even fixes
when I have time.

Pull-Request has been merged by oturpe

Metadata