18861N/A#
18861N/A# spec file for package libmikmod
18861N/A#
18861N/A# Copyright (c) 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner wjs
18861N/A#
18861N/A
18861N/A%define OSR 8590:3.2.0
18861N/A
18861N/AName: libmikmod
18861N/ALicense: LGPL
18861N/AGroup: System/Libraries
18861N/AVersion: 3.2.0
18861N/ARelease: 1
18861N/ADistribution: Java Desktop System
18861N/AVendor: mikmod.raphnet.net
18861N/ASummary: libmikmod - a portable sound library for Unix and other systems.
18861N/A%define tarball_version 3.2.0-beta2
18861N/ASource: http://mikmod.raphnet.net/files/libmikmod-%{tarball_version}.tar.bz2
18861N/A# date:2009-02-20 type:branding owner:mattman
18861N/APatch1: libmikmod-01-manpage.diff
18861N/AURL: http://mikmod.raphnet.net/
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ADocdir: %{_defaultdocdir}/%{name}
18861N/AAutoreqprov: on
18861N/ARequires: SUNWlibms
18861N/A
18861N/A%description
18861N/AThe MikMod sound library is an excellent way for a programmer to add music
18861N/Aand sound effects to an application. It is a powerful and flexible library,
18861N/Awith a simple and easy-to-learn API.
18861N/A
18861N/A%package devel
18861N/ASummary: Headers for developing programs that will use libmikmod
18861N/AGroup: Development/Libraries
18861N/ARequires: %name
18861N/A
18861N/A%description devel
18861N/AThis package contains the headers that programmers will need to develop
18861N/Aapplications which will use libmikmod.
18861N/A
18861N/A%prep
18861N/A%setup -q -n libmikmod-%tarball_version
18861N/A%patch1 -p1
18861N/A
18861N/A%build
18861N/A%ifos linux
18861N/Aif [ -x /usr/bin/getconf ]; then
18861N/A CPUS=`getconf _NPROCESSORS_ONLN`
18861N/Afi
18861N/A%else
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/A%endif
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/A./configure --prefix=%{_prefix} \
18861N/A --mandir=%{_mandir} \
18861N/A --libdir=%{_libdir} \
18861N/A --libexecdir=%{_libexecdir} \
18861N/A --sysconfdir=%{_sysconfdir} \
18861N/A --enable-shared \
18861N/A --disable-static
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/A
18861N/A# delete libtool .la files
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/*la
18861N/A# Remove the libmikmod.info file. No other modules install .info files.
18861N/Arm -rf $RPM_BUILD_ROOT%{_prefix}/info
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%post -p /sbin/ldconfig
18861N/A%postun -p /sbin/ldconfig
18861N/A
18861N/A%files
18861N/A%defattr (-, root, root)
18861N/A%{_libdir}/*.so.*
18861N/A
18861N/A%files devel
18861N/A%defattr(-, root, root)
18861N/A%{_libdir}/*.so
18861N/A
18861N/A%changelog
18861N/A* Fri Feb 20 2009 - matt.keenan@sun.com
18861N/A- Add manpage patch
18861N/A* Tue Sep 2 2008 - william.schoofs@sun.com
18861N/A- Create