# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346258477 -7200 # Node ID 4fa917def625d53425acdcd8b6e5af5642043c1a # Parent b8c54b685320cc3c1abedc4aeb69fe02e25eac22 Update version, correct yucky endian byte order code, and modernize packaging. diff -r b8c54b685320 -r 4fa917def625 sswf/sswf.spec --- a/sswf/sswf.spec Tue Aug 28 19:03:30 2012 +0200 +++ b/sswf/sswf.spec Wed Aug 29 18:41:17 2012 +0200 @@ -31,7 +31,7 @@ Class: EVAL Group: Flash License: GPL -Version: 1.8.3 +Version: 1.8.4 Release: 20090106 # list of sources @@ -39,14 +39,10 @@ Patch0: sswf.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes -PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20100101 BuildPreReq: libiconv, jpeg, zlib, freetype PreReq: libiconv, jpeg, zlib, freetype -AutoReq: no -AutoReqProv: no %description Script SWF (SSWF) is a C/C++ library and scripting language to @@ -62,6 +58,22 @@ %prep %setup -q %patch -p0 + case "%{l_platform -t}" in + i?86-* | amd64-* ) + %{l_shtool} subst \ + -e 's;^\(DEFS = @DEFS@\);\1 -DITSLITTLE;' \ + src/lib/Makefile.in + %{l_shtool} subst \ + -e 's;^\(#if defined(__MINGW32__) || defined(_MSVC)\);\1 || defined(ITSLITTLE);' \ + include/sswf/libsswf-config.h + ;; + sun4u-* ) + ( echo "This software is building on a bit endian architecture, but unfortunately" + echo "the developer has failed to portably write the software to accommadate" + echo "big endian. Little endian receives better support." + ) | %{l_rpmtool} msg -b -t warn + ;; + esac %build CC="%{l_cc}" \ @@ -80,13 +92,11 @@ %{l_make} %{l_mflags -O} %install - rm -rf $RPM_BUILD_ROOT - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean - rm -rf $RPM_BUILD_ROOT