]> git.pld-linux.org Git - packages/pixman.git/blobdiff - pixman.spec
- disable openmp (used only in tests), seems to increase failure ratio on th-i686...
[packages/pixman.git] / pixman.spec
index 211c6be7f5683702ab81842bd6b894b2dd4a1d39..abee19f400775811ad1ee2c0471083a2f5336065 100644 (file)
@@ -1,19 +1,25 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
 Summary:       Pixel manipulation library
 Summary(pl.UTF-8):     Biblioteka operacji na pikselach
 Name:          pixman
-# 0.16.x is stable, 0.17.x is unstable
-Version:       0.16.0
-Release:       1
+# 0.36.x is stable, 0.37.x unstable
+Version:       0.36.0
+Release:       2
 License:       MIT
 Group:         Libraries
-Source0:       http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
-# Source0-md5: 183dea8a100c1d9732cdb2146ec90f68
-Patch0:                %{name}-no_pkgconfig.patch
-URL:           http://xorg.freedesktop.org/
-BuildRequires: autoconf >= 2.57
+Source0:       https://www.cairographics.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 552df0d7ccccfadd07ae3758cc9a057f
+URL:           http://pixman.org/
+BuildRequires: autoconf >= 2.62
 BuildRequires: automake
+%{?with_tests:BuildRequires:   libpng-devel}
 BuildRequires: libtool
+BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.453
+BuildRequires: sed >= 4.0
 Obsoletes:     libic
 Obsoletes:     libpixman
 Obsoletes:     libpixregion
@@ -58,7 +64,8 @@ Ten pakiet zawiera statyczną wersję biblioteki pixman.
 
 %prep
 %setup -q
-%patch0 -p1
+
+%{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h
 
 %build
 %{__libtoolize}
@@ -67,6 +74,9 @@ Ten pakiet zawiera statyczną wersję biblioteki pixman.
 %{__autoheader}
 %{__automake}
 %configure \
+       --disable-gtk \
+       --disable-openmp \
+       --disable-silent-rules \
 %ifarch %{x8664}
 %if "%{cc_version}" < "4.2"
        --disable-sse2
@@ -75,14 +85,14 @@ Ten pakiet zawiera statyczną wersję biblioteki pixman.
 
 %{__make}
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -91,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO
+%doc COPYING README
 %attr(755,root,root) %{_libdir}/libpixman-1.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libpixman-1.so.0
 
This page took 0.053808 seconds and 4 git commands to generate.