18110
|
1 |
#
|
|
2 |
# spec file for package libmikmod
|
|
3 |
#
|
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner wjs
|
|
9 |
#
|
|
10 |
|
|
11 |
%define OSR 8590:3.2.0
|
|
12 |
|
|
13 |
Name: libmikmod
|
|
14 |
License: LGPL
|
|
15 |
Group: System/Libraries
|
|
16 |
Version: 3.2.0
|
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
|
19 |
Vendor: mikmod.raphnet.net
|
|
20 |
Summary: libmikmod - a portable sound library for Unix and other systems.
|
|
21 |
%define tarball_version 3.2.0-beta2
|
|
22 |
Source: http://mikmod.raphnet.net/files/libmikmod-%{tarball_version}.tar.bz2
|
|
23 |
# date:2009-02-20 type:branding owner:mattman
|
|
24 |
Patch1: libmikmod-01-manpage.diff
|
|
25 |
URL: http://mikmod.raphnet.net/
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Docdir: %{_defaultdocdir}/%{name}
|
|
28 |
Autoreqprov: on
|
|
29 |
Requires: SUNWlibms
|
|
30 |
|
|
31 |
%description
|
|
32 |
The MikMod sound library is an excellent way for a programmer to add music
|
|
33 |
and sound effects to an application. It is a powerful and flexible library,
|
|
34 |
with a simple and easy-to-learn API.
|
|
35 |
|
|
36 |
%package devel
|
|
37 |
Summary: Headers for developing programs that will use libmikmod
|
|
38 |
Group: Development/Libraries
|
|
39 |
Requires: %name
|
|
40 |
|
|
41 |
%description devel
|
|
42 |
This package contains the headers that programmers will need to develop
|
|
43 |
applications which will use libmikmod.
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q -n libmikmod-%tarball_version
|
|
47 |
%patch1 -p1
|
|
48 |
|
|
49 |
%build
|
|
50 |
%ifos linux
|
|
51 |
if [ -x /usr/bin/getconf ]; then
|
|
52 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
53 |
fi
|
|
54 |
%else
|
|
55 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
56 |
%endif
|
|
57 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
58 |
CPUS=1
|
|
59 |
fi
|
|
60 |
|
|
61 |
./configure --prefix=%{_prefix} \
|
|
62 |
--mandir=%{_mandir} \
|
|
63 |
--libdir=%{_libdir} \
|
|
64 |
--libexecdir=%{_libexecdir} \
|
|
65 |
--sysconfdir=%{_sysconfdir} \
|
|
66 |
--enable-shared \
|
|
67 |
--disable-static
|
|
68 |
|
|
69 |
make -j$CPUS
|
|
70 |
|
|
71 |
%install
|
|
72 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
73 |
|
|
74 |
# delete libtool .la files
|
|
75 |
rm $RPM_BUILD_ROOT%{_libdir}/*la
|
|
76 |
# Remove the libmikmod.info file. No other modules install .info files.
|
|
77 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/info
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%post -p /sbin/ldconfig
|
|
83 |
%postun -p /sbin/ldconfig
|
|
84 |
|
|
85 |
%files
|
|
86 |
%defattr (-, root, root)
|
|
87 |
%{_libdir}/*.so.*
|
|
88 |
|
|
89 |
%files devel
|
|
90 |
%defattr(-, root, root)
|
|
91 |
%{_libdir}/*.so
|
|
92 |
|
|
93 |
%changelog
|
|
94 |
* Fri Feb 20 2009 - [email protected]
|
|
95 |
- Add manpage patch
|
|
96 |
* Tue Sep 2 2008 - [email protected]
|
|
97 |
- Create
|