···11+# Set svn_revision to SVN revision number if you want to do a SVN build.
22+# Parent source directory has to be "rockbox-rXXXXX"
33+%define svn_revision 0
44+55+%if 0%{?svn_revision}
66+# SVN rockbox build
77+Version: r%{svn_revision}
88+%else
99+# Normal rockbox release
1010+%define major_version 3.8
1111+Version: 3.8
1212+%endif
1313+1414+Name: rockbox
1515+Summary: High quality audio player
1616+License: GPL
1717+Group: Applications/Multimedia
1818+Vendor: rockbox.org
1919+Release: 1%{?dist}
2020+Url: http://www.rockbox.org
2121+Buildroot: %{_tmppath}/%{name}-%{version}-root
2222+Requires: SDL
2323+BuildRequires: SDL-devel
2424+# Note: rpm doesn't support 7z. You need to repack as .tar.bz2
2525+# Source: http://download.rockbox.org/release/%{major_version}/%{name}-%{version}.7z
2626+Source: %{name}-%{version}.tar.bz2
2727+Prefix: /opt/rockbox
2828+2929+%description
3030+Rockbox open source high quality audio player
3131+3232+Features:
3333+- Supports over 20 sound codecs:
3434+ MP3, OGG, WAV, FLAC and many more
3535+- Navigate music by folders or tag database
3636+- Gapless playback and crossfading
3737+- Ability to create your own themes
3838+- Album art support
3939+4040+Need more reasons?
4141+Find them here: http://www.rockbox.org/wiki/WhyRockbox
4242+4343+%prep
4444+%setup -q
4545+4646+%build
4747+mkdir build
4848+cd build
4949+5050+../tools/configure --prefix=%{prefix} --target=sdlapp --lcdwidth=800 --lcdheight=480 --type=N
5151+5252+make %{?_smp_mflags}
5353+5454+%install
5555+cd build
5656+make PREFIX=$RPM_BUILD_ROOT/%{prefix} fullinstall
5757+5858+%clean
5959+rm -fr $RPM_BUILD_ROOT
6060+6161+%files
6262+%defattr(-,root,root)
6363+%{prefix}/bin/rockbox
6464+%{prefix}/lib/*
6565+%{prefix}/share/*