1 |
cebix |
1.1 |
%define name @PACKAGE@ |
2 |
|
|
%define version @VERSION@ |
3 |
|
|
%define release 1 |
4 |
|
|
|
5 |
|
|
Summary: SID tune replayer |
6 |
|
|
Name: %{name} |
7 |
|
|
Version: %{version} |
8 |
|
|
Release: %{release} |
9 |
|
|
Copyright: GPL |
10 |
|
|
Group: Applications/Multimedia |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
URL: http://www.uni-mainz.de/~bauec002/SPMain.html |
13 |
|
|
BuildRoot: %{_tmppath}/%{name}-root |
14 |
|
|
Prefix: %{_prefix} |
15 |
|
|
|
16 |
cebix |
1.2 |
Requires: SDL >= 1.1.4 |
17 |
|
|
|
18 |
cebix |
1.1 |
%description |
19 |
|
|
SIDPlayer is a replayer program for C64 music ("SID tunes"). You can think |
20 |
|
|
of it as being a stripped-down C64 emulator that only emulates the CPU and |
21 |
|
|
the sound chip of the C64. SIDPlayer can replay SID tunes in the "PSID" file |
22 |
|
|
format, but it cannot run any C64 programs. |
23 |
|
|
|
24 |
|
|
%prep |
25 |
|
|
%setup -q |
26 |
|
|
|
27 |
|
|
%build |
28 |
cebix |
1.4 |
CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} |
29 |
cebix |
1.1 |
if [ -x /usr/bin/getconf ] ; then |
30 |
|
|
NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
31 |
|
|
if [ $NCPU -eq 0 ] ; then |
32 |
|
|
NCPU=1 |
33 |
|
|
fi |
34 |
|
|
else |
35 |
|
|
NCPU=1 |
36 |
|
|
fi |
37 |
|
|
PARL=$[ $NCPU + 1 ] |
38 |
|
|
make -j $PARL |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
rm -rf ${RPM_BUILD_ROOT} |
42 |
cebix |
1.4 |
make DESTDIR=${RPM_BUILD_ROOT} install-strip |
43 |
cebix |
1.1 |
|
44 |
|
|
%clean |
45 |
|
|
rm -rf ${RPM_BUILD_ROOT} |
46 |
|
|
|
47 |
|
|
%files |
48 |
|
|
%defattr(-,root,root) |
49 |
|
|
%doc COPYING README |
50 |
|
|
%{_bindir}/* |