michael@255: ## michael@255: ## mng.spec -- OpenPKG RPM Package Specification michael@255: ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. michael@255: ## michael@255: ## Permission to use, copy, modify, and distribute this software for michael@255: ## any purpose with or without fee is hereby granted, provided that michael@255: ## the above copyright notice and this permission notice appear in all michael@255: ## copies. michael@255: ## michael@255: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@255: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@255: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@255: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@255: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@255: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@255: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@255: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@255: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@255: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@255: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@255: ## SUCH DAMAGE. michael@255: ## michael@255: michael@255: # package information michael@255: Name: mng michael@255: Summary: PNG Animated Image Library michael@255: URL: http://www.libmng.com/ michael@255: Vendor: Gerard Juyn michael@255: Packager: OpenPKG Foundation e.V. michael@255: Distribution: OpenPKG Community michael@255: Class: BASE michael@255: Group: Graphics michael@255: License: LGPL michael@255: Version: 1.0.10 michael@256: Release: 20101010 michael@255: michael@255: # list of sources michael@255: Source0: http://switch.dl.sourceforge.net/sourceforge/libmng/libmng-%{version}.tar.gz michael@255: michael@255: # build information michael@255: Prefix: %{l_prefix} michael@255: BuildRoot: %{l_buildroot} michael@255: BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc michael@255: PreReq: OpenPKG, openpkg >= 20040130 michael@255: BuildPreReq: zlib, jpeg, lcms michael@255: PreReq: zlib, jpeg, lcms michael@255: AutoReq: no michael@255: AutoReqProv: no michael@255: michael@255: %description michael@255: libmng is a library for reading, writing, displaying and examing michael@255: Multiple-Image Network Graphics (MNG). MNG is the animation michael@255: extension to the popular PNG image-format. michael@255: michael@255: %track michael@255: prog mng = { michael@255: version = %{version} michael@256: url = http://sourceforge.net/projects/libmng/files/ michael@255: regex = libmng-(\d+\.\d+\.\d+)\.tar\.gz michael@255: } michael@255: michael@255: %prep michael@255: %setup -q -n libmng-%{version} michael@255: michael@255: %build michael@255: %{l_make} %{l_mflags -O} \ michael@255: -f makefiles/makefile.unix \ michael@255: CC="%{l_cc}" \ michael@256: CFLAGS="%{l_cflags -O} %{l_cppflags} -DMNG_FULL_CMS \ michael@256: -DMNG_SUPPORT_READ -DMNG_SUPPORT_WRITE -DMNG_SUPPORT_DISPLAY \ michael@256: -DMNG_ACCESS_CHUNKS" michael@255: michael@255: %install michael@255: rm -rf $RPM_BUILD_ROOT michael@255: %{l_shtool} mkdir -f -p -m 755 \ michael@255: $RPM_BUILD_ROOT%{l_prefix}/include \ michael@255: $RPM_BUILD_ROOT%{l_prefix}/lib michael@255: %{l_shtool} install -c -m 644 \ michael@255: libmng.h libmng_conf.h libmng_types.h \ michael@255: $RPM_BUILD_ROOT%{l_prefix}/include/ michael@255: %{l_shtool} install -c -m 644 \ michael@255: libmng.a $RPM_BUILD_ROOT%{l_prefix}/lib/ michael@255: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@255: michael@255: %files -f files michael@255: michael@255: %clean michael@255: rm -rf $RPM_BUILD_ROOT michael@255: