[mythtv-commits] Ticket #941: build RPMS of SVN automatically with these 2 spec files - files attached ( for contrib )

MythTV mythtv at cvs.mythtv.org
Thu Jan 5 04:29:55 UTC 2006


#941: build RPMS of SVN automatically with these 2 spec files - files attached (
for contrib )
----------------------------------+-----------------------------------------
 Reporter:  buzz <buzz at oska.com>  |       Owner:  ijr 
     Type:  defect                |      Status:  new 
 Priority:  minor                 |   Milestone:      
Component:  mythtv                |     Version:  head
 Severity:  medium                |  
----------------------------------+-----------------------------------------
 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 at oska.com>

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/941>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list