Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
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@710 | 35 | Release: 20120800 |
michael@710 | 36 | |
michael@710 | 37 | # package options |
michael@710 | 38 | %option with_pic no |
michael@709 | 39 | |
michael@709 | 40 | # list of sources |
michael@709 | 41 | Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz |
michael@709 | 42 | Patch0: libpixman.patch |
michael@709 | 43 | |
michael@709 | 44 | # build information |
michael@709 | 45 | BuildPreReq: OpenPKG, openpkg >= 20100101 |
michael@709 | 46 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@709 | 47 | |
michael@709 | 48 | %description |
michael@709 | 49 | Pixman is the pixel manipulation library of the Cairo project. |
michael@709 | 50 | It provides pixel region and image compositing APIs. |
michael@709 | 51 | |
michael@709 | 52 | %track |
michael@709 | 53 | prog libpixman = { |
michael@709 | 54 | version = %{version} |
michael@709 | 55 | url = http://cairographics.org/releases/ |
michael@709 | 56 | regex = pixman-(__VER__)\.tar\.gz |
michael@709 | 57 | } |
michael@709 | 58 | |
michael@709 | 59 | %prep |
michael@709 | 60 | %setup -q -n pixman-%{version} |
michael@709 | 61 | %patch -p0 |
michael@709 | 62 | |
michael@709 | 63 | %build |
michael@709 | 64 | CC="%{l_cc}" \ |
michael@710 | 65 | %if "%{with_pic}" == "yes" |
michael@710 | 66 | CFLAGS="%{l_cflags -O} -fPIC" \ |
michael@710 | 67 | LDFLAGS="%{l_cflags -O} -fPIC" \ |
michael@710 | 68 | %else |
michael@709 | 69 | CFLAGS="%{l_cflags -O}" \ |
michael@710 | 70 | %endif |
michael@709 | 71 | ./configure \ |
michael@709 | 72 | --prefix=%{l_prefix} \ |
michael@709 | 73 | --disable-gtk \ |
michael@709 | 74 | --disable-shared |
michael@709 | 75 | %{l_make} %{l_mflags -O} |
michael@709 | 76 | |
michael@709 | 77 | %install |
michael@709 | 78 | %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
michael@709 | 79 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@709 | 80 | |
michael@709 | 81 | %files -f files |
michael@709 | 82 | |
michael@709 | 83 | %clean |
michael@709 | 84 |