]> git.pld-linux.org Git - packages/cairo.git/blobdiff - cairo.spec
- release 8
[packages/cairo.git] / cairo.spec
index 8e09c6833e68cfbebf12358c3c576f1f04bcf99d..105813786fadfa794c21f41e2d4be905c8b2f150 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without apidocs         # disable gtk-doc
+%bcond_without svg             # disable SVG support (to boostrap librsvg)
 %if "%{pld_release}" == "ac"
 %bcond_with    xcb             # XCB backend
 %else
@@ -12,7 +13,7 @@ Summary:      Cairo - multi-platform 2D graphics library
 Summary(pl.UTF-8):     Cairo - wieloplatformowa biblioteka graficzna 2D
 Name:          cairo
 Version:       1.10.2
-Release:       2
+Release:       8
 License:       LGPL v2.1 or MPL v1.1
 Group:         Libraries
 Source0:       http://cairographics.org/releases/%{name}-%{version}.tar.gz
@@ -26,13 +27,14 @@ BuildRequires:      freetype-devel >= 1:2.3.0
 BuildRequires: glib2-devel >= 1:2.0
 %{?with_apidocs:BuildRequires: gtk-doc >= 1.6}
 BuildRequires: libpng-devel >= 2:1.4.0
-BuildRequires: librsvg-devel >= 2.15.0
+%{?with_svg:BuildRequires:     librsvg-devel >= 2.15.0}
 BuildRequires: libspectre-devel >= 0.2.0
 BuildRequires: libtool >= 1.4
 BuildRequires: pixman-devel >= 0.18.4
 BuildRequires: pkgconfig >= 1:0.9
-BuildRequires: poppler-glib-devel >= 0.13.3
+%{?with_tests:BuildRequires:   poppler-glib-devel >= 0.13.3}
 BuildRequires: rpm >= 4.4.9-56
+BuildRequires: sed >= 4.0
 %if %{with xcb}
 BuildRequires: libxcb-devel >= 1.4
 %endif
@@ -190,8 +192,13 @@ Dokumentacja API Cairo.
        --enable-pdf \
        --enable-png \
        --enable-ps \
+       %{!?with_svg:--disable-svg} \
+       --enable-tee \
        %{?with_xcb:--enable-xcb} \
        --with-html-dir=%{_gtkdocdir}
+
+%{__sed} -i 's/gobject-2.0 glib-2.0//' src/cairo.pc
+
 %{__make}
 %{?with_tests:%{__make} check}
 
@@ -238,7 +245,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/cairo-pdf.pc
 %{_pkgconfigdir}/cairo-png.pc
 %{_pkgconfigdir}/cairo-ps.pc
-%{_pkgconfigdir}/cairo-svg.pc
+%{?with_svg:%{_pkgconfigdir}/cairo-svg.pc}
+%{_pkgconfigdir}/cairo-tee.pc
 %{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
 %{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
 %{_pkgconfigdir}/cairo-xlib.pc
This page took 0.095922 seconds and 4 git commands to generate.