libpixman/libpixman.spec

Thu, 04 Oct 2012 20:00:55 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 04 Oct 2012 20:00:55 +0200
changeset 709
84a9f800fa37
child 710
1e46ce84435a
permissions
-rw-r--r--

Import package vendor original spec for necessary manipulations.

michael@709 1 ##
michael@709 2 ## libpixman.spec -- OpenPKG RPM Package Specification
michael@709 3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@709 4 ##
michael@709 5 ## Permission to use, copy, modify, and distribute this software for
michael@709 6 ## any purpose with or without fee is hereby granted, provided that
michael@709 7 ## the above copyright notice and this permission notice appear in all
michael@709 8 ## copies.
michael@709 9 ##
michael@709 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@709 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@709 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@709 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@709 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@709 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@709 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@709 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@709 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@709 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@709 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@709 21 ## SUCH DAMAGE.
michael@709 22 ##
michael@709 23
michael@709 24 # package information
michael@709 25 Name: libpixman
michael@709 26 Summary: Cairo Pixel Manipulation Library
michael@709 27 URL: http://cairographics.org/
michael@709 28 Vendor: The Cairo Project
michael@709 29 Packager: OpenPKG Foundation e.V.
michael@709 30 Distribution: OpenPKG Community
michael@709 31 Class: EVAL
michael@709 32 Group: XWindow
michael@709 33 License: MIT-style
michael@709 34 Version: 0.26.2
michael@709 35 Release: 20120630
michael@709 36
michael@709 37 # list of sources
michael@709 38 Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz
michael@709 39 Patch0: libpixman.patch
michael@709 40
michael@709 41 # build information
michael@709 42 BuildPreReq: OpenPKG, openpkg >= 20100101
michael@709 43 PreReq: OpenPKG, openpkg >= 20100101
michael@709 44
michael@709 45 %description
michael@709 46 Pixman is the pixel manipulation library of the Cairo project.
michael@709 47 It provides pixel region and image compositing APIs.
michael@709 48
michael@709 49 %track
michael@709 50 prog libpixman = {
michael@709 51 version = %{version}
michael@709 52 url = http://cairographics.org/releases/
michael@709 53 regex = pixman-(__VER__)\.tar\.gz
michael@709 54 }
michael@709 55
michael@709 56 %prep
michael@709 57 %setup -q -n pixman-%{version}
michael@709 58 %patch -p0
michael@709 59
michael@709 60 %build
michael@709 61 CC="%{l_cc}" \
michael@709 62 CFLAGS="%{l_cflags -O}" \
michael@709 63 ./configure \
michael@709 64 --prefix=%{l_prefix} \
michael@709 65 --disable-gtk \
michael@709 66 --disable-shared
michael@709 67 %{l_make} %{l_mflags -O}
michael@709 68
michael@709 69 %install
michael@709 70 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
michael@709 71 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@709 72
michael@709 73 %files -f files
michael@709 74
michael@709 75 %clean
michael@709 76

mercurial