michael@39: ## michael@39: ## mpg123.spec -- OpenPKG RPM Package Specification michael@39: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@39: ## michael@39: ## Permission to use, copy, modify, and distribute this software for michael@39: ## any purpose with or without fee is hereby granted, provided that michael@39: ## the above copyright notice and this permission notice appear in all michael@39: ## copies. michael@39: ## michael@39: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@39: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@39: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@39: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@39: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@39: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@39: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@39: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@39: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@39: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@39: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@39: ## SUCH DAMAGE. michael@39: ## michael@39: michael@39: # package information michael@39: Name: mpg123 michael@39: Summary: MP3 Decoder/Player michael@39: URL: http://www.mpg123.org/ michael@39: Vendor: Michael Hipp michael@39: Packager: OpenPKG Foundation e.V. michael@39: Distribution: OpenPKG Community michael@39: Class: PLUS michael@39: Group: Audio michael@39: License: GPL michael@638: Version: 1.14.4 michael@638: Release: 20120800 michael@40: michael@40: # package options michael@40: %option with_dev no michael@39: michael@39: # list of sources michael@39: Source0: http://www.mpg123.de/download/mpg123-%{version}.tar.bz2 michael@39: michael@39: # build information michael@85: BuildPreReq: OpenPKG, openpkg >= 20040130, make michael@39: PreReq: OpenPKG, openpkg >= 20040130 michael@39: michael@39: %description michael@39: mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer 3. michael@39: michael@39: %track michael@39: prog mpg123 = { michael@39: version = %{version} michael@39: url = http://www.mpg123.de/download.shtml michael@39: regex = mpg123-(__VER__)\.tar\.bz2 michael@39: } michael@39: michael@39: %prep michael@39: %setup -q michael@638: %{l_shtool} subst \ michael@638: -e 's;^\(DEFAULT_INCLUDES *=.*\);\1 -I. -I$(top_srcdir)/libltdl;' \ michael@638: -e 's;^\(mpg123_LDFLAGS *=.*\);\1 -static;' \ michael@638: src/output/Makefile.in \ michael@638: src/Makefile.in michael@39: michael@39: %build michael@39: CC="%{l_cc}" \ michael@39: CFLAGS="%{l_cflags -O}" \ michael@39: ./configure \ michael@39: --prefix=%{l_prefix} \ michael@39: --mandir=%{l_prefix}/man \ michael@39: --enable-static \ michael@40: --disable-shared michael@39: %{l_make} %{l_mflags -O} michael@39: michael@39: %install michael@39: %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" michael@40: %if "%{with_dev}" != "yes" michael@40: rm -rf $RPM_BUILD_ROOT%{l_prefix}/include michael@40: rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib michael@40: %else michael@39: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.so* michael@39: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.la michael@39: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mpg123/*.a michael@40: %endif michael@39: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@39: michael@39: %files -f files michael@39: michael@39: %clean michael@39: