mng/mng.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 255
36843f2b0be1
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@255 1 ##
michael@255 2 ## mng.spec -- OpenPKG RPM Package Specification
michael@255 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@255 4 ##
michael@255 5 ## Permission to use, copy, modify, and distribute this software for
michael@255 6 ## any purpose with or without fee is hereby granted, provided that
michael@255 7 ## the above copyright notice and this permission notice appear in all
michael@255 8 ## copies.
michael@255 9 ##
michael@255 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@255 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@255 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@255 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@255 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@255 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@255 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@255 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@255 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@255 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@255 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@255 21 ## SUCH DAMAGE.
michael@255 22 ##
michael@255 23
michael@255 24 # package information
michael@255 25 Name: mng
michael@255 26 Summary: PNG Animated Image Library
michael@255 27 URL: http://www.libmng.com/
michael@255 28 Vendor: Gerard Juyn
michael@255 29 Packager: OpenPKG Foundation e.V.
michael@255 30 Distribution: OpenPKG Community
michael@255 31 Class: BASE
michael@255 32 Group: Graphics
michael@255 33 License: LGPL
michael@255 34 Version: 1.0.10
michael@256 35 Release: 20101010
michael@255 36
michael@255 37 # list of sources
michael@255 38 Source0: http://switch.dl.sourceforge.net/sourceforge/libmng/libmng-%{version}.tar.gz
michael@255 39
michael@255 40 # build information
michael@255 41 Prefix: %{l_prefix}
michael@255 42 BuildRoot: %{l_buildroot}
michael@255 43 BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc
michael@255 44 PreReq: OpenPKG, openpkg >= 20040130
michael@255 45 BuildPreReq: zlib, jpeg, lcms
michael@255 46 PreReq: zlib, jpeg, lcms
michael@255 47 AutoReq: no
michael@255 48 AutoReqProv: no
michael@255 49
michael@255 50 %description
michael@255 51 libmng is a library for reading, writing, displaying and examing
michael@255 52 Multiple-Image Network Graphics (MNG). MNG is the animation
michael@255 53 extension to the popular PNG image-format.
michael@255 54
michael@255 55 %track
michael@255 56 prog mng = {
michael@255 57 version = %{version}
michael@256 58 url = http://sourceforge.net/projects/libmng/files/
michael@255 59 regex = libmng-(\d+\.\d+\.\d+)\.tar\.gz
michael@255 60 }
michael@255 61
michael@255 62 %prep
michael@255 63 %setup -q -n libmng-%{version}
michael@255 64
michael@255 65 %build
michael@255 66 %{l_make} %{l_mflags -O} \
michael@255 67 -f makefiles/makefile.unix \
michael@255 68 CC="%{l_cc}" \
michael@256 69 CFLAGS="%{l_cflags -O} %{l_cppflags} -DMNG_FULL_CMS \
michael@256 70 -DMNG_SUPPORT_READ -DMNG_SUPPORT_WRITE -DMNG_SUPPORT_DISPLAY \
michael@256 71 -DMNG_ACCESS_CHUNKS"
michael@255 72
michael@255 73 %install
michael@255 74 rm -rf $RPM_BUILD_ROOT
michael@255 75 %{l_shtool} mkdir -f -p -m 755 \
michael@255 76 $RPM_BUILD_ROOT%{l_prefix}/include \
michael@255 77 $RPM_BUILD_ROOT%{l_prefix}/lib
michael@255 78 %{l_shtool} install -c -m 644 \
michael@255 79 libmng.h libmng_conf.h libmng_types.h \
michael@255 80 $RPM_BUILD_ROOT%{l_prefix}/include/
michael@255 81 %{l_shtool} install -c -m 644 \
michael@255 82 libmng.a $RPM_BUILD_ROOT%{l_prefix}/lib/
michael@255 83 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@255 84
michael@255 85 %files -f files
michael@255 86
michael@255 87 %clean
michael@255 88 rm -rf $RPM_BUILD_ROOT
michael@255 89

mercurial