Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@110 | 1 | ## |
michael@110 | 2 | ## sswf.spec -- OpenPKG RPM Package Specification |
michael@110 | 3 | ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@110 | 4 | ## |
michael@110 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@110 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@110 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@110 | 8 | ## copies. |
michael@110 | 9 | ## |
michael@110 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@110 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@110 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@110 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@110 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@110 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@110 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@110 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@110 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@110 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@110 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@110 | 21 | ## SUCH DAMAGE. |
michael@110 | 22 | ## |
michael@110 | 23 | |
michael@110 | 24 | # package information |
michael@110 | 25 | Name: sswf |
michael@110 | 26 | Summary: Script SWF Format |
michael@110 | 27 | URL: http://www.m2osw.com/sswf |
michael@110 | 28 | Vendor: Alexis Wilke et al. |
michael@110 | 29 | Packager: OpenPKG Foundation e.V. |
michael@110 | 30 | Distribution: OpenPKG Community |
michael@110 | 31 | Class: EVAL |
michael@110 | 32 | Group: Flash |
michael@110 | 33 | License: GPL |
michael@641 | 34 | Version: 1.8.4 |
michael@111 | 35 | Release: 20090106 |
michael@110 | 36 | |
michael@110 | 37 | # list of sources |
michael@110 | 38 | Source0: http://switch.dl.sourceforge.net/sswf/sswf-%{version}-src.tar.bz2 |
michael@110 | 39 | Patch0: sswf.patch |
michael@110 | 40 | |
michael@110 | 41 | # build information |
michael@641 | 42 | BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes |
michael@641 | 43 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@110 | 44 | BuildPreReq: libiconv, jpeg, zlib, freetype |
michael@110 | 45 | PreReq: libiconv, jpeg, zlib, freetype |
michael@110 | 46 | |
michael@110 | 47 | %description |
michael@110 | 48 | Script SWF (SSWF) is a C/C++ library and scripting language to |
michael@110 | 49 | dynamically create Adobe Flash animations in SWF format. |
michael@110 | 50 | |
michael@110 | 51 | %track |
michael@110 | 52 | prog sswf = { |
michael@110 | 53 | version = %{version} |
michael@110 | 54 | url = http://prdownloads.sourceforge.net/sswf/ |
michael@110 | 55 | regex = sswf-(__VER__)-src\.tar\.bz2 |
michael@110 | 56 | } |
michael@110 | 57 | |
michael@110 | 58 | %prep |
michael@110 | 59 | %setup -q |
michael@110 | 60 | %patch -p0 |
michael@641 | 61 | case "%{l_platform -t}" in |
michael@641 | 62 | i?86-* | amd64-* ) |
michael@641 | 63 | %{l_shtool} subst \ |
michael@641 | 64 | -e 's;^\(DEFS = @DEFS@\);\1 -DITSLITTLE;' \ |
michael@641 | 65 | src/lib/Makefile.in |
michael@641 | 66 | %{l_shtool} subst \ |
michael@641 | 67 | -e 's;^\(#if defined(__MINGW32__) || defined(_MSVC)\);\1 || defined(ITSLITTLE);' \ |
michael@641 | 68 | include/sswf/libsswf-config.h |
michael@641 | 69 | ;; |
michael@641 | 70 | sun4u-* ) |
michael@641 | 71 | ( echo "This software is building on a bit endian architecture, but unfortunately" |
michael@641 | 72 | echo "the developer has failed to portably write the software to accommadate" |
michael@641 | 73 | echo "big endian. Little endian receives better support." |
michael@641 | 74 | ) | %{l_rpmtool} msg -b -t warn |
michael@641 | 75 | ;; |
michael@641 | 76 | esac |
michael@110 | 77 | |
michael@110 | 78 | %build |
michael@110 | 79 | CC="%{l_cc}" \ |
michael@110 | 80 | CXX="%{l_cxx}" \ |
michael@110 | 81 | CFLAGS="%{l_cflags -O}" \ |
michael@110 | 82 | CXXFLAGS="%{l_cxxflags -O}" \ |
michael@110 | 83 | CPPFLAGS="%{l_cppflags}" \ |
michael@110 | 84 | LDFLAGS="%{l_ldflags}" \ |
michael@110 | 85 | ./configure \ |
michael@110 | 86 | --prefix=%{l_prefix} \ |
michael@110 | 87 | --mandir=%{l_prefix}/man \ |
michael@110 | 88 | --disable-rpm-docs \ |
michael@110 | 89 | --disable-debug \ |
michael@110 | 90 | --disable-yydebug \ |
michael@110 | 91 | --disable-shared |
michael@110 | 92 | %{l_make} %{l_mflags -O} |
michael@110 | 93 | |
michael@110 | 94 | %install |
michael@641 | 95 | %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
michael@110 | 96 | strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
michael@110 | 97 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@110 | 98 | |
michael@110 | 99 | %files -f files |
michael@110 | 100 | |
michael@110 | 101 | %clean |
michael@110 | 102 |