Thu, 08 Jan 2009 12:48:36 +0100
Import package vendor original specs for necessary manipulations.
mpg123/mpg123.patch | file | annotate | diff | comparison | revisions | |
mpg123/mpg123.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mpg123/mpg123.patch Thu Jan 08 12:48:36 2009 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +Index: src/Makefile.in 1.5 +--- src/Makefile.in.orig 2007-12-05 02:36:29 +0100 1.6 ++++ src/Makefile.in 2007-12-05 08:34:08 +0100 1.7 +@@ -57,7 +57,7 @@ 1.8 + term.$(OBJEXT) wav.$(OBJEXT) xfermem.$(OBJEXT) 1.9 + mpg123_OBJECTS = $(am_mpg123_OBJECTS) 1.10 + am__DEPENDENCIES_1 = 1.11 +-DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 1.12 ++DEFAULT_INCLUDES = -I. -I$(srcdir) -I. -I$(top_srcdir)/libltdl 1.13 + depcomp = $(SHELL) $(top_srcdir)/build/depcomp 1.14 + am__depfiles_maybe = depfiles 1.15 + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 1.16 +@@ -294,7 +294,7 @@ 1.17 + 1.18 + # AM_CPPFLAGS = 1.19 + mpg123_LDADD = $(LIBLTDL) libmpg123/libmpg123.la @MODULE_OBJ@ @OUTPUT_OBJ@ @OUTPUT_LIBS@ 1.20 +-mpg123_LDFLAGS = @LT_LDFLAGS@ @OUTPUT_LDFLAGS@ 1.21 ++mpg123_LDFLAGS = @LT_LDFLAGS@ @OUTPUT_LDFLAGS@ -static 1.22 + # Just mpg123_INCLUDES has no effect on build! Trying that before reverting to AM_CPPFLAGS. 1.23 + INCLUDES = $(LTDLINCL) -I$(top_srcdir)/src/libmpg123 1.24 + # libltdl is not mentioned here... it's not that trivial 1.25 +Index: src/output/Makefile.in 1.26 +--- src/output/Makefile.in.orig 2007-12-05 02:36:30 +0100 1.27 ++++ src/output/Makefile.in 2007-12-05 08:33:30 +0100 1.28 +@@ -212,7 +212,7 @@ 1.29 + output_win32_la_OBJECTS = $(am_output_win32_la_OBJECTS) 1.30 + @HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@am_output_win32_la_rpath = -rpath \ 1.31 + @HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@ $(pkglibdir) 1.32 +-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 1.33 ++DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src -I$(top_srcdir)/libltdl 1.34 + depcomp = $(SHELL) $(top_srcdir)/build/depcomp 1.35 + am__depfiles_maybe = depfiles 1.36 + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/mpg123/mpg123.spec Thu Jan 08 12:48:36 2009 +0100 2.3 @@ -0,0 +1,85 @@ 2.4 +## 2.5 +## mpg123.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package information 2.28 +Name: mpg123 2.29 +Summary: MP3 Decoder/Player 2.30 +URL: http://www.mpg123.org/ 2.31 +Vendor: Michael Hipp 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: PLUS 2.35 +Group: Audio 2.36 +License: GPL 2.37 +Version: 1.6.3 2.38 +Release: 20081221 2.39 + 2.40 +# list of sources 2.41 +Source0: http://www.mpg123.de/download/mpg123-%{version}.tar.bz2 2.42 +Patch0: mpg123.patch 2.43 + 2.44 +# build information 2.45 +Prefix: %{l_prefix} 2.46 +BuildRoot: %{l_buildroot} 2.47 +BuildPreReq: OpenPKG, openpkg >= 20040130 2.48 +PreReq: OpenPKG, openpkg >= 20040130 2.49 +AutoReq: no 2.50 +AutoReqProv: no 2.51 + 2.52 +%description 2.53 + mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer 3. 2.54 + 2.55 +%track 2.56 + prog mpg123 = { 2.57 + version = %{version} 2.58 + url = http://www.mpg123.de/download.shtml 2.59 + regex = mpg123-(__VER__)\.tar\.bz2 2.60 + } 2.61 + 2.62 +%prep 2.63 + %setup -q 2.64 + %patch -p0 2.65 + 2.66 +%build 2.67 + CC="%{l_cc}" \ 2.68 + CFLAGS="%{l_cflags -O}" \ 2.69 + ./configure \ 2.70 + --prefix=%{l_prefix} \ 2.71 + --mandir=%{l_prefix}/man \ 2.72 + --enable-static \ 2.73 + --enable-shared 2.74 + %{l_make} %{l_mflags -O} 2.75 + 2.76 +%install 2.77 + rm -rf $RPM_BUILD_ROOT 2.78 + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" 2.79 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.so* 2.80 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.la 2.81 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mpg123/*.a 2.82 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.83 + 2.84 +%files -f files 2.85 + 2.86 +%clean 2.87 + rm -rf $RPM_BUILD_ROOT 2.88 +