X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cairo.spec;h=105813786fadfa794c21f41e2d4be905c8b2f150;hb=c13406bb8c36ff4f871813010075ff58435a3f5c;hp=8e09c6833e68cfbebf12358c3c576f1f04bcf99d;hpb=2dd18c6d1baa65063604c3cb4cae9edca030d68d;p=packages%2Fcairo.git diff --git a/cairo.spec b/cairo.spec index 8e09c68..1058137 100644 --- a/cairo.spec +++ b/cairo.spec @@ -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