Update version, correct yucky endian byte order code, and modernize packaging.

Wed, 29 Aug 2012 18:41:17 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 29 Aug 2012 18:41:17 +0200
changeset 641
4fa917def625
parent 640
b8c54b685320
child 642
f954b9674ace

Update version, correct yucky endian byte order code, and modernize packaging.

sswf/sswf.spec file | annotate | diff | comparison | revisions
     1.1 --- a/sswf/sswf.spec	Tue Aug 28 19:03:30 2012 +0200
     1.2 +++ b/sswf/sswf.spec	Wed Aug 29 18:41:17 2012 +0200
     1.3 @@ -31,7 +31,7 @@
     1.4  Class:        EVAL
     1.5  Group:        Flash
     1.6  License:      GPL
     1.7 -Version:      1.8.3
     1.8 +Version:      1.8.4
     1.9  Release:      20090106
    1.10  
    1.11  #   list of sources
    1.12 @@ -39,14 +39,10 @@
    1.13  Patch0:       sswf.patch
    1.14  
    1.15  #   build information
    1.16 -Prefix:       %{l_prefix}
    1.17 -BuildRoot:    %{l_buildroot}
    1.18 -BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
    1.19 -PreReq:       OpenPKG, openpkg >= 20060823
    1.20 +BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes
    1.21 +PreReq:       OpenPKG, openpkg >= 20100101
    1.22  BuildPreReq:  libiconv, jpeg, zlib, freetype
    1.23  PreReq:       libiconv, jpeg, zlib, freetype
    1.24 -AutoReq:      no
    1.25 -AutoReqProv:  no
    1.26  
    1.27  %description
    1.28      Script SWF (SSWF) is a C/C++ library and scripting language to
    1.29 @@ -62,6 +58,22 @@
    1.30  %prep
    1.31      %setup -q
    1.32      %patch -p0
    1.33 +    case "%{l_platform -t}" in
    1.34 +        i?86-* | amd64-* )
    1.35 +            %{l_shtool} subst \
    1.36 +                -e 's;^\(DEFS = @DEFS@\);\1 -DITSLITTLE;' \
    1.37 +                src/lib/Makefile.in
    1.38 +            %{l_shtool} subst \
    1.39 +                -e 's;^\(#if defined(__MINGW32__) || defined(_MSVC)\);\1 || defined(ITSLITTLE);' \
    1.40 +                include/sswf/libsswf-config.h
    1.41 +            ;;
    1.42 +        sun4u-* )
    1.43 +            ( echo "This software is building on a bit endian architecture, but unfortunately"
    1.44 +              echo "the developer has failed to portably write the software to accommadate"
    1.45 +              echo "big endian. Little endian receives better support."
    1.46 +            ) | %{l_rpmtool} msg -b -t warn
    1.47 +            ;;
    1.48 +    esac
    1.49  
    1.50  %build
    1.51      CC="%{l_cc}" \
    1.52 @@ -80,13 +92,11 @@
    1.53      %{l_make} %{l_mflags -O}
    1.54  
    1.55  %install
    1.56 -    rm -rf $RPM_BUILD_ROOT
    1.57 -    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.58 +    %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    1.59      strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    1.60      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.61  
    1.62  %files -f files
    1.63  
    1.64  %clean
    1.65 -    rm -rf $RPM_BUILD_ROOT
    1.66  

mercurial