libmikmod.spec.in
资源名称:tcpmp.rar [点击查看]
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:2k
源码类别:
Windows CE
开发平台:
C/C++
- %define version @LIBMIKMOD_MAJOR_VERSION@.@LIBMIKMOD_MINOR_VERSION@.@LIBMIKMOD_MICRO_VERSION@
- %define release @SPEC_RELEASE@
- # This should empty for release
- %define prerelease @SPEC_PRERELEASE@
- Summary: sound library
- Name: libmikmod
- Version: %{version}
- Release: %{release}
- License: LGPL
- Group: System Environment/Libraries
- URL: http://mikmod.raphnet.net/
- Source: http://mikmod.raphnet.net/files/%{name}-%{version}%{prerelease}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- %description
- A portable sound library for Unix and other systems, capable of playing
- samples as well as module files, on a wide range of sound devices.
- %package devel
- Summary: Libraries and include files to develop libmikmod applications
- Group: Development/Libraries
- Requires: %{name} = %{version}
- %description devel
- Install the libmikmod-devel package if you want to develop applications
- that will use the libmikmod library.
- %prep
- %setup -q -n %{name}-%{version}%{prerelease}
- %build
- %configure --disable-esd --disable-alsa
- make
- %install
- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
- %makeinstall
- rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
- %clean
- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %post devel
- if [ "$1" = "1" ]; then # first install
- if [ -x /sbin/install-info ]; then
- /sbin/install-info %{_infodir}/mikmod.info* %{_infodir}/dir
- fi
- fi
- %preun devel
- if [ "$1" = "0" ]; then # last uninstall
- if [ -x /sbin/install-info ]; then
- /sbin/install-info --delete %{_infodir}/mikmod.info* %{_infodir}/dir
- fi
- fi
- %ifos darwin
- %define __defattr %defattr(-,root,wheel)
- %define __soext dylib
- %else
- %define __defattr %defattr(-,root,root)
- %define __soext so
- %endif
- %files
- %{__defattr}
- %doc AUTHORS COPYING.LESSER COPYING.LIB INSTALL NEWS README TODO
- %ifnos darwin
- %{_libdir}/libmikmod.%{__soext}.*
- %else
- %{_libdir}/libmikmod.*.%{__soext}
- %endif
- %files devel
- %{__defattr}
- %doc docs/mikmod.html
- %{_bindir}/libmikmod-config
- %{_mandir}/man?/*
- %{_includedir}/mikmod.h
- %{_libdir}/libmikmod.a
- %{_libdir}/libmikmod.la
- %{_libdir}/libmikmod.%{__soext}
- %{_infodir}/mikmod.info*
- %{_datadir}/aclocal/*