Bug 609957

Summary: RPM-HOWTO instructions do not work
Product: [openSUSE] openSUSE Distribution Reporter: Christopher Yeleighton <giecrilj>
Component: DocumentationAssignee: Michael Schröder <mls>
Status: RESOLVED WONTFIX QA Contact: Frank Sundermeyer <fs>
Severity: Minor    
Priority: P3 - Medium CC: qantas94heavy
Version: Leap 42.3   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christopher Yeleighton 2010-05-28 17:10:10 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9

The instructions how to build a package from source are outdated and do not work any more.

Reproducible: Always

Steps to Reproduce:
1. 
Open the document "Building the Package with RPM" [1].

2. rpm -ba foobar-1.0.spec

Actual Results:  
1. 
Once you have a spec file, you are ready to try and build your package. The most useful way to do it is with a command like the following: 

rpm -ba foobar-1.0.spec

2.
-ba: nieznana opcja

Expected Results:  
1.
Once you have a spec file, you are ready to try and build your package. The most useful way to do it is with a command like the following: 

rpmbuild -ba foobar-1.0.spec

== References ==
[1] <URL:file:///usr/share/doc/packages/rpm/RPM-HOWTO/build-it.html#BUILD-PKG>
Comment 1 Christopher Yeleighton 2010-06-04 19:01:44 UTC
Also, the path "/usr/doc/rpm*/GROUPS" in the document "Building RPMs" [2] should be replaced with "file:///usr/share/doc/packages/rpm/GROUPS". 

== References ==
[2] /usr/share/doc/packages/rpm/RPM-HOWTO/build.html
Comment 2 Christopher Yeleighton 2010-06-04 19:19:10 UTC
Also, the option "%setup -q" used in the example spec file [2] is not explained.
Comment 3 Christopher Yeleighton 2010-06-04 19:29:51 UTC
Also, the sample spec file contains the following invalid tag:

Copyright: GPL

that causes rpmbuild to fail.  It should be replaced with

License: GPL
Comment 4 Christopher Yeleighton 2010-06-04 21:05:13 UTC
Also, the information in section 7.6. "What to do with your new RPMs" [3] is probably obsolete:

: Once you've made your own RPM of something (assuming its something that hasn't already been RPM'ed), you can contribute your work to others (also assuming you RPM'ed something freely distributable). To do so, you'll want to upload it to ftp.redhat.com.

The FTP server ftp.redhat.com provides no "incoming" sink.

[3] <URL:file:///usr/share/doc/packages/rpm/RPM-HOWTO/build-it.html#WHAT-TO-DO>
Comment 5 Christopher Yeleighton 2010-06-05 17:38:21 UTC
(In reply to comment #4)
> Also, the information in section 7.6. "What to do with your new RPMs" [3] is
> probably obsolete:
> 
> : Once you've made your own RPM of something (assuming its something that
> hasn't already been RPM'ed), you can contribute your work to others (also
> assuming you RPM'ed something freely distributable). To do so, you'll want to
> upload it to ftp.redhat.com.
> 
> The FTP server ftp.redhat.com provides no "incoming" sink.
> 
> [3] <URL:file:///usr/share/doc/packages/rpm/RPM-HOWTO/build-it.html#WHAT-TO-DO>

Should probably be <URL:http://en.opensuse.org/Contrib> instead.
Comment 6 Karl Cheng 2017-08-12 05:44:11 UTC
Still contains this old information on Leap 42.3.
Comment 8 Tomáš Chvátal 2019-07-11 11:00:51 UTC
This is automated batch bugzilla cleanup.

The openSUSE 42.3 changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE (At this moment openSUSE Leap 15.1, 15.0 and Tumbleweed) please
feel free to reopen this bug against that version (!you must update the
"Version" component in the bug fields, do not just reopen please), or
alternatively create a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime