Clean packaging, allow parallel make, and gettext/libiconv dependency.

Wed, 07 Jan 2009 15:02:43 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 07 Jan 2009 15:02:43 +0100
changeset 25
d347f9d0cfb2
parent 24
e27cb96c604b
child 26
89094e16ef70

Clean packaging, allow parallel make, and gettext/libiconv dependency.

aqbanking/aqbanking.spec file | annotate | diff | comparison | revisions
     1.1 --- a/aqbanking/aqbanking.spec	Wed Jan 07 15:00:34 2009 +0100
     1.2 +++ b/aqbanking/aqbanking.spec	Wed Jan 07 15:02:43 2009 +0100
     1.3 @@ -39,7 +39,7 @@
     1.4  Group:        Finance
     1.5  License:      GPL
     1.6  Version:      %{V_openpkg}
     1.7 -Release:      20080101
     1.8 +Release:      20090106
     1.9  
    1.10  #   list of sources
    1.11  Source0:      http://switch.dl.sourceforge.net/aqbanking/aqbanking-%{V_aqbanking}.tar.gz
    1.12 @@ -53,8 +53,8 @@
    1.13  BuildRoot:    %{l_buildroot}
    1.14  BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes
    1.15  PreReq:       OpenPKG, openpkg >= 20040130
    1.16 -BuildPreReq:  openssl
    1.17 -PreReq:       openssl
    1.18 +BuildPreReq:  openssl, gettext, libiconv
    1.19 +PreReq:       openssl, gettext, libiconv
    1.20  AutoReq:      no
    1.21  AutoReqProv:  no
    1.22  
    1.23 @@ -113,10 +113,10 @@
    1.24            --disable-shared
    1.25  
    1.26        #   build the library
    1.27 -      %{l_make} %{l_mflags}
    1.28 +      %{l_make} %{l_mflags -O} LIBS="-lintl -liconv"
    1.29  
    1.30        #   pre-install it and adjust for temporary usage by AqBanking build (below)
    1.31 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.32 +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.33        %{l_shtool} subst \
    1.34            -e "s;%{l_prefix};$RPM_BUILD_ROOT%{l_prefix};g" \
    1.35            $RPM_BUILD_ROOT%{l_prefix}/bin/gwenhywfar-config
    1.36 @@ -138,7 +138,7 @@
    1.37            --with-openssl-libs=%{l_prefix}/lib \
    1.38            --enable-shared \
    1.39            --enable-static
    1.40 -      %{l_make} %{l_mflags}
    1.41 +      %{l_make} %{l_mflags -O}
    1.42      ) || exit $?
    1.43  
    1.44      #   build OpenHBCI v2 (legacy)
    1.45 @@ -161,7 +161,7 @@
    1.46            --with-openssl-libs=%{l_prefix}/lib \
    1.47            --enable-shared \
    1.48            --enable-static
    1.49 -      %{l_make} %{l_mflags}
    1.50 +      %{l_make} %{l_mflags -O}
    1.51      ) || exit $?
    1.52  
    1.53      #   build AqBanking
    1.54 @@ -192,12 +192,12 @@
    1.55  
    1.56      #   install Gwhenhywfar
    1.57      ( cd gwenhywfar-%{V_gwenhywfar}
    1.58 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.59 +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.60      ) || exit $?
    1.61  
    1.62      #   install OpenHBCI v1 (legacy)
    1.63      ( cd openhbci-%{V_openhbci1}
    1.64 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.65 +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.66        strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    1.67        rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/plugins/*/*/*.a
    1.68        mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \
    1.69 @@ -206,7 +206,7 @@
    1.70  
    1.71      #   install OpenHBCI v2 (legacy)
    1.72      ( cd openhbci2-%{V_openhbci2}
    1.73 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.74 +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.75        strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    1.76        rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/plugins/*/*/*.a
    1.77        mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \
    1.78 @@ -217,7 +217,7 @@
    1.79  
    1.80      #   install AqBanking
    1.81      ( cd aqbanking-%{V_aqbanking}
    1.82 -      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.83 +      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.84      ) || exit $?
    1.85  
    1.86      #   strip down installation

mercurial