source: spec/trunk/SPECS/mikmod.spec@ 1010

Last change on this file since 1010 was 716, checked in by valerius, 9 years ago

spec: mikmod: Add .spec file for mikmod.

File size: 2.2 KB
Line 
1%define svn_url http://svn.netlabs.org/repos/ports/mikmod/trunk
2%define svn_rev 1464
3
4Summary: Music module player
5Name: mikmod
6Version: 3.2.7
7Release: 1%{?dist}
8License: GPLv2 and LGPLv2+
9Group: Applications/Multimedia
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
11BuildRequires: ncurses-devel libmikmod-devel
12URL: http://mikmod.raphnet.net/
13#Source0: http://mikmod.raphnet.net/files/mikmod-%{version}-beta1.tar.bz2
14Source: %{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
19MikMod is one of the best and most well known MOD music file players
20for UNIX-like systems. This particular distribution is intended to
21compile fairly painlessly in a Linux environment. MikMod uses the OSS
22/dev/dsp driver including all recent kernels for output, and will also
23write .wav files. Supported file formats include MOD, STM, S3M, MTM,
24XM, ULT, and IT. The player uses ncurses for console output and
25supports transparent loading from gzip/pkzip/zoo archives and the
26loading/saving of playlists.
27
28Install 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
36svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
37rm -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
44autoreconf -fi
45
46%build
47export LDFLAGS="-g -Zhigh-mem"
48
49%configure
50
51%{__make} %{?_smp_mflags} CFLAGS="-g $RPM_OPT_FLAGS `libmikmod-config --cflags`"
52
53
54%install
55rm -rf $RPM_BUILD_ROOT
56make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
57rm -f $RPM_BUILD_ROOT%{_infodir}/dir
58
59
60%clean
61rm -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.
Note: See TracBrowser for help on using the repository browser.