| 1 | %define svn_url http://svn.netlabs.org/repos/ports/mikmod/trunk
|
|---|
| 2 | %define svn_rev 1464
|
|---|
| 3 |
|
|---|
| 4 | Summary: Music module player
|
|---|
| 5 | Name: mikmod
|
|---|
| 6 | Version: 3.2.7
|
|---|
| 7 | Release: 1%{?dist}
|
|---|
| 8 | License: GPLv2 and LGPLv2+
|
|---|
| 9 | Group: Applications/Multimedia
|
|---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|---|
| 11 | BuildRequires: ncurses-devel libmikmod-devel
|
|---|
| 12 | URL: http://mikmod.raphnet.net/
|
|---|
| 13 | #Source0: http://mikmod.raphnet.net/files/mikmod-%{version}-beta1.tar.bz2
|
|---|
| 14 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 15 | #Patch0: mikmod-3.2.2-beta1-missing-protos.patch
|
|---|
| 16 | #Patch1: mikmod-3.2.2-beta1-various-fixes.patch
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | MikMod is one of the best and most well known MOD music file players
|
|---|
| 20 | for UNIX-like systems. This particular distribution is intended to
|
|---|
| 21 | compile fairly painlessly in a Linux environment. MikMod uses the OSS
|
|---|
| 22 | /dev/dsp driver including all recent kernels for output, and will also
|
|---|
| 23 | write .wav files. Supported file formats include MOD, STM, S3M, MTM,
|
|---|
| 24 | XM, ULT, and IT. The player uses ncurses for console output and
|
|---|
| 25 | supports transparent loading from gzip/pkzip/zoo archives and the
|
|---|
| 26 | loading/saving of playlists.
|
|---|
| 27 |
|
|---|
| 28 | Install the mikmod package if you need a MOD music file player.
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | %prep
|
|---|
| 32 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
|---|
| 33 | %setup -q
|
|---|
| 34 | %else
|
|---|
| 35 | %setup -q -n "%{name}-%{version}" -Tc
|
|---|
| 36 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 37 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 38 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 39 | %endif
|
|---|
| 40 |
|
|---|
| 41 | #%patch0 -p1
|
|---|
| 42 | #%patch1 -p1 -b .various-fixes
|
|---|
| 43 |
|
|---|
| 44 | autoreconf -fi
|
|---|
| 45 |
|
|---|
| 46 | %build
|
|---|
| 47 | export LDFLAGS="-g -Zhigh-mem"
|
|---|
| 48 |
|
|---|
| 49 | %configure
|
|---|
| 50 |
|
|---|
| 51 | %{__make} %{?_smp_mflags} CFLAGS="-g $RPM_OPT_FLAGS `libmikmod-config --cflags`"
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | %install
|
|---|
| 55 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 56 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|---|
| 57 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | %clean
|
|---|
| 61 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | %files
|
|---|
| 65 | %defattr(-, root, root)
|
|---|
| 66 | %doc AUTHORS COPYING NEWS README
|
|---|
| 67 | %{_bindir}/mikmod.exe
|
|---|
| 68 | %{_datadir}/mikmod
|
|---|
| 69 | %{_mandir}/man1/mikmod*
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | %changelog
|
|---|
| 73 | * Fri Mar 19 2016 Valery V. Sedletski <_valerius@mail.ru> - 3.2.7-1
|
|---|
| 74 | - Initial OS/2 packaging.
|
|---|