path: root/packaging
diff options
authorThomas Jarosch <>2011-03-07 20:51:01 +0000
committerThomas Jarosch <>2011-03-07 20:51:01 +0000
commit77d409dd397d6c3af3ffca7747f30d066c4aa0eb (patch)
tree29b18d9447e286a786a0b787feb3364f95842b62 /packaging
parent8f3feda719176cfd9f3101365bec11bb9d4cc13e (diff)
Add rockbox rpm .spec file
Supports build from unreleased subversion checkouts. Tested on Fedora 14. Might be the base for a MeeGo package later on. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'packaging')
1 files changed, 65 insertions, 0 deletions
diff --git a/packaging/rpm/rockbox.spec b/packaging/rpm/rockbox.spec
new file mode 100644
index 0000000000..1314c41632
--- /dev/null
+++ b/packaging/rpm/rockbox.spec
@@ -0,0 +1,65 @@
+# Set svn_revision to SVN revision number if you want to do a SVN build.
+# Parent source directory has to be "rockbox-rXXXXX"
+%define svn_revision 0
+%if 0%{?svn_revision}
+# SVN rockbox build
+Version: r%{svn_revision}
+# Normal rockbox release
+%define major_version 3.8
+Version: 3.8
+Name: rockbox
+Summary: High quality audio player
+License: GPL
+Group: Applications/Multimedia
+Release: 1%{?dist}
+Buildroot: %{_tmppath}/%{name}-%{version}-root
+Requires: SDL
+BuildRequires: SDL-devel
+# Note: rpm doesn't support 7z. You need to repack as .tar.bz2
+# Source:{major_version}/%{name}-%{version}.7z
+Source: %{name}-%{version}.tar.bz2
+Prefix: /opt/rockbox
+Rockbox open source high quality audio player
+- Supports over 20 sound codecs:
+ MP3, OGG, WAV, FLAC and many more
+- Navigate music by folders or tag database
+- Gapless playback and crossfading
+- Ability to create your own themes
+- Album art support
+Need more reasons?
+Find them here:
+%setup -q
+mkdir build
+cd build
+../tools/configure --prefix=%{prefix} --target=sdlapp --lcdwidth=800 --lcdheight=480 --type=N
+make %{?_smp_mflags}
+cd build
+make PREFIX=$RPM_BUILD_ROOT/%{prefix} fullinstall