michael@709: ## michael@709: ## libpixman.spec -- OpenPKG RPM Package Specification michael@709: ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. michael@709: ## michael@709: ## Permission to use, copy, modify, and distribute this software for michael@709: ## any purpose with or without fee is hereby granted, provided that michael@709: ## the above copyright notice and this permission notice appear in all michael@709: ## copies. michael@709: ## michael@709: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@709: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@709: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@709: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@709: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@709: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@709: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@709: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@709: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@709: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@709: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@709: ## SUCH DAMAGE. michael@709: ## michael@709: michael@709: # package information michael@709: Name: libpixman michael@709: Summary: Cairo Pixel Manipulation Library michael@709: URL: http://cairographics.org/ michael@709: Vendor: The Cairo Project michael@709: Packager: OpenPKG Foundation e.V. michael@709: Distribution: OpenPKG Community michael@709: Class: EVAL michael@709: Group: XWindow michael@709: License: MIT-style michael@709: Version: 0.26.2 michael@710: Release: 20120800 michael@710: michael@710: # package options michael@710: %option with_pic no michael@709: michael@709: # list of sources michael@709: Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz michael@709: Patch0: libpixman.patch michael@709: michael@709: # build information michael@709: BuildPreReq: OpenPKG, openpkg >= 20100101 michael@709: PreReq: OpenPKG, openpkg >= 20100101 michael@709: michael@709: %description michael@709: Pixman is the pixel manipulation library of the Cairo project. michael@709: It provides pixel region and image compositing APIs. michael@709: michael@709: %track michael@709: prog libpixman = { michael@709: version = %{version} michael@709: url = http://cairographics.org/releases/ michael@709: regex = pixman-(__VER__)\.tar\.gz michael@709: } michael@709: michael@709: %prep michael@709: %setup -q -n pixman-%{version} michael@709: %patch -p0 michael@709: michael@709: %build michael@709: CC="%{l_cc}" \ michael@710: %if "%{with_pic}" == "yes" michael@710: CFLAGS="%{l_cflags -O} -fPIC" \ michael@710: LDFLAGS="%{l_cflags -O} -fPIC" \ michael@710: %else michael@709: CFLAGS="%{l_cflags -O}" \ michael@710: %endif michael@709: ./configure \ michael@709: --prefix=%{l_prefix} \ michael@709: --disable-gtk \ michael@709: --disable-shared michael@709: %{l_make} %{l_mflags -O} michael@709: michael@709: %install michael@709: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@709: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@709: michael@709: %files -f files michael@709: michael@709: %clean michael@709: