Clean packaging and correct compatibility conflicts with libtool libs.

Thu, 08 Jan 2009 12:49:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 08 Jan 2009 12:49:35 +0100
changeset 40
d8bc8fd2a27c
parent 39
488ae692938e
child 41
e3adaa7471f5

Clean packaging and correct compatibility conflicts with libtool libs.

mpg123/mpg123.spec file | annotate | diff | comparison | revisions
     1.1 --- a/mpg123/mpg123.spec	Thu Jan 08 12:48:36 2009 +0100
     1.2 +++ b/mpg123/mpg123.spec	Thu Jan 08 12:49:35 2009 +0100
     1.3 @@ -32,7 +32,10 @@
     1.4  Group:        Audio
     1.5  License:      GPL
     1.6  Version:      1.6.3
     1.7 -Release:      20081221
     1.8 +Release:      20090106
     1.9 +
    1.10 +#   package options
    1.11 +%option       with_dev  no
    1.12  
    1.13  #   list of sources
    1.14  Source0:      http://www.mpg123.de/download/mpg123-%{version}.tar.bz2
    1.15 @@ -67,15 +70,20 @@
    1.16          --prefix=%{l_prefix} \
    1.17          --mandir=%{l_prefix}/man \
    1.18          --enable-static \
    1.19 -        --enable-shared
    1.20 +        --disable-shared
    1.21      %{l_make} %{l_mflags -O}
    1.22  
    1.23  %install
    1.24      rm -rf $RPM_BUILD_ROOT
    1.25      %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    1.26 +%if "%{with_dev}" != "yes"
    1.27 +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/include
    1.28 +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
    1.29 +%else
    1.30      rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.so*
    1.31      rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.la
    1.32      rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mpg123/*.a
    1.33 +%endif
    1.34      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.35  
    1.36  %files -f files

mercurial