]> git.pld-linux.org Git - packages/cairo.git/blobdiff - cairo.spec
- TODO removed, not a bug.
[packages/cairo.git] / cairo.spec
index 31784fdb32264126f316c6d30c42684450eb42f2..3fa2230e9dcee30318fca6433396557906e2620c 100644 (file)
@@ -1,29 +1,35 @@
+#
+# Conditional build:
+%bcond_without apidocs         # disable gtk-doc
+%bcond_with    xcb             # enable XCB backend (XCB not released yet)
+%bcond_with    tests           # perform tests (can fail due to out of memory)
+#
 Summary:       Cairo - multi-platform 2D graphics library
 Summary(pl):   Cairo - wieloplatformowa biblioteka graficzna 2D
 Name:          cairo
-Version:       0.3.0
-Release:       1
+Version:       1.0.2
+Release:       3
 License:       LGPL v2.1 or MPL v1.1
 Group:         Libraries
-Source0:       http://cairographics.org/snapshots/%{name}-%{version}.tar.gz
-# Source0-md5: 78c1a536d3a45bdc06a8335d33e63d8f
-Patch0:                %{name}-glitz.patch
+Source0:       http://cairographics.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5: d0b7111a14f90ec3afa777ec40c44984
+Patch0:                %{name}-gcc4.patch
 URL:           http://cairographics.org/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake >= 1.7
 BuildRequires: fontconfig-devel
-BuildRequires: freetype-devel >= 2.1.0
-BuildRequires: glitz-devel >= 0.4.0
-BuildRequires: libpixman-devel >= 0.1.2
+BuildRequires: freetype-devel >= 2.1.10
+BuildRequires: glitz-devel >= 0.4.4
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.3}
 BuildRequires: libpng-devel
 BuildRequires: libtool
 BuildRequires: pkgconfig
-#BuildRequires:        xcb-devel (http://freedesktop.org/software/xcb - CVS only, not released yet)
+%{?with_xcb:BuildRequires:     xcb-devel}
 BuildRequires: xrender-devel >= 0.6
 BuildRequires: zlib-devel
-Requires:      freetype >= 2.1.0
-Requires:      glitz >= 0.4.0
-Requires:      libpixman >= 0.1.2
+Requires:      freetype >= 2.1.10
+Requires:      glitz >= 0.4.4
+Requires:      xrender >= 0.6
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -72,10 +78,10 @@ Summary(pl):        Pliki programistyczne biblioteki Cairo
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      fontconfig-devel
-Requires:      freetype-devel >= 2.1.0
-Requires:      glitz-devel >= 0.4.0
-Requires:      libpixman-devel >= 0.1.2
+Requires:      freetype-devel >= 2.1.10
+Requires:      glitz-devel >= 0.4.4
 Requires:      libpng-devel
+%{?with_xcb:Requires:  xcb-devel}
 Requires:      xrender-devel >= 0.6
 
 %description devel
@@ -106,8 +112,15 @@ Statyczna biblioteka Cairo.
 %{__autoheader}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       %{?with_apidocs:--enable-gtk-doc} \
+       %{?with_xcb:--enable-xcb} \
+       --enable-glitz \
+       --enable-ps \
+       --enable-pdf \
+       --with-html-dir=%{_gtkdocdir}
 %{__make}
+%{?with_tests:%{__make} check}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -133,6 +146,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.la
 %{_includedir}/*
 %{_pkgconfigdir}/*.pc
+%{_gtkdocdir}/cairo
 
 %files static
 %defattr(644,root,root,755)
This page took 0.257624 seconds and 4 git commands to generate.