1 | # Note: this .spec is borrowed from pixman-0.33.6-1.fc24.src.rpm
|
---|
2 |
|
---|
3 | Name: pixman
|
---|
4 | Version: 0.32.8
|
---|
5 | Release: 3%{?dist}
|
---|
6 | Summary: Pixel manipulation library
|
---|
7 |
|
---|
8 | Group: System Environment/Libraries
|
---|
9 | License: MIT
|
---|
10 | URL: http://cgit.freedesktop.org/pixman/
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 |
|
---|
13 | %define svn_url http://svn.netlabs.org/repos/ports/pixman/trunk
|
---|
14 | %define svn_rev 1232
|
---|
15 |
|
---|
16 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
17 |
|
---|
18 | BuildRequires: gcc make subversion zip
|
---|
19 |
|
---|
20 | BuildRequires: automake autoconf libtool
|
---|
21 |
|
---|
22 | %description
|
---|
23 | Pixman is a pixel manipulation library for X and Cairo.
|
---|
24 |
|
---|
25 | %package devel
|
---|
26 | Summary: Pixel manipulation library development package
|
---|
27 | Group: Development/Libraries
|
---|
28 | Requires: %{name}%{?isa} = %{version}-%{release}
|
---|
29 | Requires: pkgconfig
|
---|
30 |
|
---|
31 | %description devel
|
---|
32 | Development library for pixman.
|
---|
33 |
|
---|
34 | %prep
|
---|
35 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
36 | %setup -q
|
---|
37 | %else
|
---|
38 | %setup -n "%{name}-%{version}" -Tc
|
---|
39 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
40 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
41 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
42 | %endif
|
---|
43 |
|
---|
44 | # Generate confuigure and friends
|
---|
45 | NOCONFIGURE=1 autogen.sh
|
---|
46 |
|
---|
47 | %build
|
---|
48 | CFLAGS="%{optflags}" \
|
---|
49 | LDFLAGS="-Zhigh-mem" \
|
---|
50 | LIBS="-lurpo" \
|
---|
51 | %configure \
|
---|
52 | --disable-static
|
---|
53 |
|
---|
54 | make %{?_smp_mflags} V=1
|
---|
55 |
|
---|
56 | %install
|
---|
57 | make install DESTDIR=$RPM_BUILD_ROOT
|
---|
58 |
|
---|
59 | find %{buildroot} -type f -name "*.la" -delete
|
---|
60 |
|
---|
61 | %check
|
---|
62 | make check %{?_smp_mflags} V=1 ||:
|
---|
63 |
|
---|
64 | #%post -p /sbin/ldconfig
|
---|
65 | #%postun -p /sbin/ldconfig
|
---|
66 |
|
---|
67 | %files
|
---|
68 | %doc COPYING
|
---|
69 | %{_libdir}/pixman1*.dll
|
---|
70 |
|
---|
71 | %files devel
|
---|
72 | %dir %{_includedir}/pixman-1
|
---|
73 | %{_includedir}/pixman-1/pixman.h
|
---|
74 | %{_includedir}/pixman-1/pixman-version.h
|
---|
75 | %{_libdir}/pixman-1*.a
|
---|
76 | %{_libdir}/pkgconfig/pixman-1.pc
|
---|
77 |
|
---|
78 | %changelog
|
---|
79 | * Tue Mar 1 2016 Dmitriy Kuminov <coding@dmik.org> 0.32.8-3
|
---|
80 | - Use respective optimization flags for different architectures.
|
---|
81 |
|
---|
82 | * Sat Feb 20 2016 Dmitriy Kuminov <coding@dmik.org> 0.32.8-2
|
---|
83 | - Allow loading DLL into high memory.
|
---|
84 |
|
---|
85 | * Tue Dec 29 2015 Dmitriy Kuminov <coding@dmik.org> 0.32.8-1
|
---|
86 | - Initial package for version 0.38.2.
|
---|