| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ##
- ## mng.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: mng
- Summary: PNG Animated Image Library
- URL: http://www.libmng.com/
- Vendor: Gerard Juyn
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: BASE
- Group: Graphics
- License: LGPL
- Version: 1.0.6
- Release: 20040203
- # list of sources
- Source0: http://osdn.dl.sourceforge.net/sourceforge/libmng/libmng-%{version}.tar.gz
- Patch0: mng.patch.bz2
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, zlib, jpeg, gcc
- PreReq: OpenPKG, openpkg >= 20040130, zlib, jpeg
- AutoReq: no
- AutoReqProv: no
- %description
- libmng - library for reading, writing, displaying and examing
- Multiple-Image Network Graphics. MNG is the animation extension to
- the popular PNG image-format.
- %track
- prog mng = {
- comment = "rse: 1.0.6 as of 19-Oct-2003 had no pre-generated Autoconf/Automake files at all"
- version = 1.0.6
- url = http://prdownloads.sourceforge.net/libmng/
- regex = libmng-(\d+\.\d+\.\d+)\.tar\.gz
- }
- %prep
- %setup -q -n libmng-%{version}
- # FIXME: rse: remove the following lines later once MNG distribution
- # FIXME: rse: contains its pre-generated Autoconf stuff again!"
- %patch -p1
- ln -s makefiles/configure.in .
- ln -s makefiles/acinclude.m4 .
- ln -s makefiles/Makefile.am .
- chmod a+x configure install-sh
- %build
- AUTOCONF=true \
- AUTOMAKE=true \
- ACLOCAL=true \
- MAKEINFO=true \
- CC="%{l_cc}" \
- CFLAGS="%{l_cflags -O}" \
- ./configure \
- --prefix=%{l_prefix} \
- --with-zlib=%{l_prefix} \
- --disable-shared
- %{l_make} %{l_mflags -O}
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|