sswf/sswf.spec

Tue, 28 Aug 2012 18:28:35 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:28:35 +0200
changeset 526
7ddfdb42afce
parent 110
b70af19a3465
child 641
4fa917def625
permissions
-rw-r--r--

Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.

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@110 34 Version: 1.8.3
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@110 42 Prefix: %{l_prefix}
michael@110 43 BuildRoot: %{l_buildroot}
michael@110 44 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
michael@110 45 PreReq: OpenPKG, openpkg >= 20060823
michael@110 46 BuildPreReq: libiconv, jpeg, zlib, freetype
michael@110 47 PreReq: libiconv, jpeg, zlib, freetype
michael@110 48 AutoReq: no
michael@110 49 AutoReqProv: no
michael@110 50
michael@110 51 %description
michael@110 52 Script SWF (SSWF) is a C/C++ library and scripting language to
michael@110 53 dynamically create Adobe Flash animations in SWF format.
michael@110 54
michael@110 55 %track
michael@110 56 prog sswf = {
michael@110 57 version = %{version}
michael@110 58 url = http://prdownloads.sourceforge.net/sswf/
michael@110 59 regex = sswf-(__VER__)-src\.tar\.bz2
michael@110 60 }
michael@110 61
michael@110 62 %prep
michael@110 63 %setup -q
michael@110 64 %patch -p0
michael@110 65
michael@110 66 %build
michael@110 67 CC="%{l_cc}" \
michael@110 68 CXX="%{l_cxx}" \
michael@110 69 CFLAGS="%{l_cflags -O}" \
michael@110 70 CXXFLAGS="%{l_cxxflags -O}" \
michael@110 71 CPPFLAGS="%{l_cppflags}" \
michael@110 72 LDFLAGS="%{l_ldflags}" \
michael@110 73 ./configure \
michael@110 74 --prefix=%{l_prefix} \
michael@110 75 --mandir=%{l_prefix}/man \
michael@110 76 --disable-rpm-docs \
michael@110 77 --disable-debug \
michael@110 78 --disable-yydebug \
michael@110 79 --disable-shared
michael@110 80 %{l_make} %{l_mflags -O}
michael@110 81
michael@110 82 %install
michael@110 83 rm -rf $RPM_BUILD_ROOT
michael@110 84 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@110 85 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@110 86 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@110 87
michael@110 88 %files -f files
michael@110 89
michael@110 90 %clean
michael@110 91 rm -rf $RPM_BUILD_ROOT
michael@110 92

mercurial