Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#941 closed defect (wontfix)

build RPMS of SVN automatically with these 2 spec files - files attached ( for contrib )

Reported by: buzz <buzz@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

HOWTO BUILD RPMS OF THE MYTH SVN:

1) both spec files contain a %define near the top of the file that specifies where to find your local svn working copy - default is currently /root/myth-svn/ (with subdirs of mythtv and mythplugins). Change this folder to suit you. A duplicate of this working copy (just the uncompiled non-'.svn' related bits) will be made under /usr/src/redhat/BUILD/* for the rpm build process. This will be kept synchronised to your working copy for you.

2) unless specified otherwise (with .rpmrc file?), 'root' is required to build SRPMS, and this is done from the /usr/src/redhat/* folder/s. Copy the attached spec files to /usr/src/redhat/SPECS/ folder.

3) some other source dependancies are defined in the spec file. These are available from inside the standard myth .src.rpm files from atrpms, and can be correctly placed by the following command after you download the src rpm from atrpms to your homefolder):

(cd /usr/src/redhat/SOURCES; rpm2cpio ~/myth_0.18.1-*.rhfc4.at.src.rpm | cpio -i )

4) build the main mythtv set of rpms with this command: rpm -ba mythtv-svn-rpmbuild.spec

5) if (4) is successful, a bunch of RPMS are now available in /usr/src/redhat/RPMS/i386/. Install them (or at least the libmyth-devel one, as it's required for the next step): rpm -Uhv /usr/src/redhat/RPMS/i386/*.rpm Move the RPMS out of the way for the next steps: mv /usr/src/redhat/RPMS/i386/*.rpm /tmp

6) build the mythtv plugins set of rpms with this command: rpm -ba mythplugins-svn-rpmbuild.spec

7) if (6) is successful, a bunch of extra RPMS are now available in /usr/src/redhat/RPMS/i386/. Install them too! rpm -Uhv /usr/src/redhat/RPMS/i386/*.rpm

8) RPM Build is now done!.

9) Installing another system with the identical myth version is now as easy as copying these RPMS to it and running: yum localinstall *.rpm. All required run-time dependancies will be automatically installed from your enabled yum repositories (assuming you do have yum setup correctly, don't you!)

NOTE: any missing dependancies on your build system that are required for a successful build/run with be prompted (there are a lot!), and after installing these, you can try steps (4/6) again, till all dependancies are resolved.

David Bussenschutt (aka Buzz). <buzz@…>

Attachments (3)

RPMBUILD.SVN.MYTH.README (2.2 KB) - added by buzz <buzz@…> 14 years ago.
mythplugins-svn-rpmbuild.spec (25.4 KB) - added by buzz <buzz@…> 14 years ago.
mythtv-svn-rpmbuild.spec (24.8 KB) - added by buzz <buzz@…> 14 years ago.

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by buzz <buzz@…>

Attachment: RPMBUILD.SVN.MYTH.README added

Changed 14 years ago by buzz <buzz@…>

Changed 14 years ago by buzz <buzz@…>

Attachment: mythtv-svn-rpmbuild.spec added

comment:1 Changed 14 years ago by sigtom@…

In the above instructions, as well as in the RPMBUILD.SVN.MYTH.README, the command to build the rpms should be

{{{rpmbuild -ba mythtv-svn-rpmbuild.spec and rpmbuild -ba mythplugins-svn-rpmbuild.spec }}}

comment:2 Changed 14 years ago by buzz <buzz@…>

Thanks tom, for noticing the typo. Just change references to 'rpm -ba' into 'rpmbuild -ba' in the doco.

comment:3 Changed 14 years ago by Isaac Richards

Resolution: wontfix
Status: newclosed

Packaging stuff doesn't belong in upstream sources.

comment:4 Changed 14 years ago by rtsai1111

(For archival purposes.) The elucidated justification for not including packaging metadata in the source tree is here: http://www.gossamer-threads.com/lists/mythtv/dev/3258#3258

Note: See TracTickets for help on using tickets.