XBMC in RPM Fusion
NOTE: nightly builds are disabled because I need web hosting. If you have server space available with HTTP access, please let me know. Unfortunately since XBMC bundles ffmpeg, I can't host these on fedorapeople.org. (Thank you to Brian Faris for being willing to hosting the nightlies build infrastructure through 2013.)
Nightly packages from xbmc's master Git branch are available at http://xbmc.ktdreyer.com.
To use these builds, download http://xbmc.ktdreyer.com/fedora/xbmc-nightly.repo to /etc/yum.repos.d/ and run "yum update xbmc". To get back to RPM Fusion's official XBMC package, run "yum --disablerepo=xbmc-nightly downgrade xbmc"
Note that these builds may be in various states of disrepair, or even altogether unusable. Be prepared to upgrade or downgrade as needed. You have been warned.
The build script that does this is available at https://gitorious.org/ktdreyer/xbmc-nightly.
Modifying and building a custom package
RPM Fusion uses CVS to manage the spec files and associated files for a package. To add to the complexity, Alex and Ken keep the canonical RPM spec in a separate Git repository, since Git is much easier to work with than CVS. We do all commmits to Git first, and then periodically sync that to CVS.
Building from Git
To do a build from Git:
$ git clone git://fedorapeople.org/home/fedora/alexlan/public_git/xbmc-rpm.git $ cd xbmc $ ./xbmc-generate-tarball-xz.sh $ md5sum xbmc-*-patched.tar.xz > sources $ fedpkg --dist f20 mockbuild --root fedora-20-x86_64-rpmfusion_free
Use fedpkg inside the Git repo in order to do the build. Because RPM Fusion's infrastructure is not yet plumbed up together with dist-git and fedpkg, we can't use this command for real package maintenance, but it is useful for easily doing local mock builds.
Maybe you're already familiar with mock and fedpkg... if so, great! If not, read over some of the relevant fedoraproject.org wiki pages.
Doing an XBMC upgrade
Let's say RPM Fusion is shipping an older version of XBMC, and you want a newer version.
Clone the Git repo, and maybe even looking through the history of commits (git log -p), so you can see how we do each update.
The first step is to change the Git tag in xbmc-generate-tarball-xz.sh and re-run that script. That will download a tarball to your working directory and strip it of all the unneeded bits.
Next, update the version in xbmc.spec. You will also need to put the md5sum of the new tarball into the sources file. You can run md5sum xbmc-*-patched.tar.xz > sources, but I like to use fedpkg new-sources to automatically update the .gitignore and sources files. (It's ok if fedpkg complains about failure to upload, since RPM Fusion's infrastructure technically doesn't use fedpkg.)
Lastly, make a git commit (fedpkg commit -c) that updates everything to the latest version.
Once you're sure it builds on a couple platforms (like F19 and F20), then create a patch with git format-patch and attach it to your bugzilla report.