]> git.pld-linux.org Git - packages/cairo.git/blobdiff - cairo.spec
- updated to 1.10.2
[packages/cairo.git] / cairo.spec
index afc717b7c3dc3240126c9bf7390f8accf9f9499f..3b07191ed73831c98af88052fc3a29dfffbb646c 100644 (file)
@@ -1,28 +1,50 @@
+#
+# Conditional build:
+%bcond_without apidocs         # disable gtk-doc
+%if "%{pld_release}" == "ac"
+%bcond_with    xcb             # XCB backend
+%else
+%bcond_without xcb             # XCB backend
+%endif
+%bcond_with    tests           # perform tests (can fail due to out of memory)
+#
 Summary:       Cairo - multi-platform 2D graphics library
 Summary:       Cairo - multi-platform 2D graphics library
-Summary(pl):   Cairo - wieloplatformowa biblioteka graficzna 2D
+Summary(pl.UTF-8):     Cairo - wieloplatformowa biblioteka graficzna 2D
 Name:          cairo
 Name:          cairo
-Version:       0.2.0
-Release:       2
+Version:       1.10.2
+Release:       1
 License:       LGPL v2.1 or MPL v1.1
 Group:         Libraries
 License:       LGPL v2.1 or MPL v1.1
 Group:         Libraries
-Source0:       http://cairographics.org/snapshots/%{name}-%{version}.tar.gz
-# Source0-md5: 2ff2b3b52b862971d2baa3fede3a3d6e
+Source0:       http://cairographics.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5: f101a9e88b783337b20b2e26dfd26d5f
+Patch0:                %{name}-link.patch
 URL:           http://cairographics.org/
 URL:           http://cairographics.org/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: fontconfig-devel
-BuildRequires: freetype-devel >= 2.1.0
-BuildRequires: glitz-devel >= 0.2.3
-BuildRequires: libpixman-devel >= 0.1.2
-BuildRequires: libpng-devel
-BuildRequires: libtool
-BuildRequires: pkgconfig
-#BuildRequires:        xcb-devel (http://freedesktop.org/software/xcb - CVS only, not released yet)
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9.6
+BuildRequires: fontconfig-devel >= 2.2.95
+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
+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
+BuildRequires: rpm >= 4.4.9-56
+%if %{with xcb}
+BuildRequires: libxcb-devel >= 1.4
+%endif
+%if "%{pld_release}" == "ac"
 BuildRequires: xrender-devel >= 0.6
 BuildRequires: xrender-devel >= 0.6
+%else
+BuildRequires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
+BuildRequires: xorg-lib-libXrender-devel >= 0.6
+%endif
 BuildRequires: zlib-devel
 BuildRequires: zlib-devel
-Requires:      freetype >= 2.1.0
-Requires:      glitz >= 0.2.3
-Requires:      libpixman >= 0.1.2
+Requires:      freetype >= 1:2.3.0
+Requires:      pixman >= 0.18.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,73 +61,139 @@ significant addition of translucence in the imaging model). When
 complete, the API is intended to support the complete imaging model of
 PDF 1.4.
 
 complete, the API is intended to support the complete imaging model of
 PDF 1.4.
 
-Cairo relies on the Xc library for backend rendering. Xc provides an
-abstract interface for rendering to multiple target types. As of this
-writing, Xc allows Cairo to target X drawables as well as generic
-image buffers. Future backends such as PostScript, PDF, and perhaps
-OpenGL are currently being planned.
-
-%description -l pl
-Cairo obs³uguje oparty na wektorach rendering z antyaliasingiem dla X.
-¦cie¿ki sk³adaj± siê z odcinków i splajnów kubicznych, a renderowane
-mog± byæ z dowoln± grubo¶ci± i ró¿nymi stylami po³±czeñ i zakoñczeñ.
-Wszystkie kolory mog± byæ podane z opcjonaln± pó³przezroczysto¶ci±
-(podan± przez wspó³czynnik nieprzezroczysto¶ci lub alpha) i ³±czone
-przy u¿yciu rozszerzonego algorytmu mieszania Portera-Duffa, który
-mo¿na znale¼æ w rozszerzeniu X Render.
-
-Cairo eksportuje stanowe API renderuj±ce w duchu podobne do operatorów
-konstruowania ¶cie¿ek, tekstu i rysowania z PostScriptu (ze znacznym
-dodatkiem pó³przezroczysto¶ci w modelu obrazu). Kiedy API zostanie
-ukoñczone, ma obs³ugiwaæ pe³ny model obrazu z PDF w wersji 1.4.
-
-Cairo do backendowego renderowania wykorzystuje bibliotekê Xc. Xc
-dostarcza abstrakcyjny interfejs do renderowania na wiele rodzajów
-wyj¶æ. Aktualnie Xc pozwala Cairo tworzyæ obiekty X, a tak¿e ogólne
-bufory obrazu. W przysz³o¶ci planowane s± takie backendy jak
-PostScript, PDF i byæ mo¿e OpenGL.
+%description -l pl.UTF-8
+Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
+Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
+mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
+Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
+(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
+przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
+można znaleźć w rozszerzeniu X Render.
+
+Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
+konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
+dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
+ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
 
 %package devel
 Summary:       Development files for Cairo library
 
 %package devel
 Summary:       Development files for Cairo library
-Summary(pl):   Pliki programistyczne biblioteki Cairo
+Summary(pl.UTF-8):     Pliki programistyczne biblioteki Cairo
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      fontconfig-devel
-Requires:      freetype-devel >= 2.1.0
-Requires:      glitz-devel >= 0.2.3
-Requires:      libpixman-devel >= 0.1.2
-Requires:      libpng-devel
+Requires:      fontconfig-devel >= 2.2.95
+Requires:      freetype-devel >= 1:2.3.0
+Requires:      libpng-devel >= 2:1.4.0
+%{?with_xcb:Requires:  libxcb-devel >= 1.4}
+Requires:      pixman-devel >= 0.18.4
+%if "%{pld_release}" == "ac"
 Requires:      xrender-devel >= 0.6
 Requires:      xrender-devel >= 0.6
+%else
+Requires:      xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
+Requires:      xorg-lib-libXrender-devel >= 0.6
+%endif
 
 %description devel
 Development files for Cairo library.
 
 
 %description devel
 Development files for Cairo library.
 
-%description devel -l pl
+%description devel -l pl.UTF-8
 Pliki programistyczne biblioteki Cairo.
 
 %package static
 Summary:       Static Cairo library
 Pliki programistyczne biblioteki Cairo.
 
 %package static
 Summary:       Static Cairo library
-Summary(pl):   Statyczna biblioteka Cairo
+Summary(pl.UTF-8):     Statyczna biblioteka Cairo
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static Cairo library.
 
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static Cairo library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka Cairo.
 
 Statyczna biblioteka Cairo.
 
+%package gobject
+Summary:       GObject functions library for Cairo graphics library
+Summary(pl.UTF-8):     Biblioteka funkcji GObject dla biblioteki graficznej Cairo
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description gobject
+GObject functions library for Cairo graphics library.
+
+%description gobject -l pl.UTF-8
+Biblioteka funkcji GObject dla biblioteki graficznej Cairo.
+
+%package gobject-devel
+Summary:       Header files for Cairo GObject library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Cairo GObject
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      %{name}-gobject = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.0
+
+%description gobject-devel
+Header files for Cairo GObject library.
+
+%description gobject-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Cairo GObject.
+
+%package gobject-static
+Summary:       Static Cairo GObject library
+Summary(pl.UTF-8):     Statyczna biblioteka Cairo GObject
+Group:         Development/Libraries
+Requires:      %{name}-gobject-devel = %{version}-%{release}
+
+%description gobject-static
+Static Cairo GObject library.
+
+%description gobject-static -l pl.UTF-8
+Statyczna biblioteka Cairo GObject.
+
+%package trace
+Summary:       Cairo calls tracing utility
+Summary(pl.UTF-8):     Narzędzie do śledzenia wywołań Cairo
+Group:         Development/Tools
+Requires:      %{name} = %{version}-%{release}
+
+%description trace
+Cairo calls tracing utility.
+
+%description trace -l pl.UTF-8
+Narzędzie do śledzenia wywołań Cairo.
+
+%package apidocs
+Summary:       Cairo API documentation
+Summary(pl.UTF-8):     Dokumentacja API Cairo
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+Cairo API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API Cairo.
+
 %prep
 %setup -q
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
 %build
+%{?with_apidocs:%{__gtkdocize}}
 %{__libtoolize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I build
 %{__autoheader}
 %{__autoconf}
 %{__automake}
 %{__autoheader}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       --disable-silent-rules \
+       --enable-freetype \
+       %{?with_apidocs:--enable-gtk-doc} \
+       --enable-pdf \
+       --enable-png \
+       --enable-ps \
+       %{?with_xcb:--enable-xcb} \
+       --with-html-dir=%{_gtkdocdir}
 %{__make}
 %{__make}
+%{?with_tests:%{__make} check}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -113,25 +201,78 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# LD_PRELOADable library
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/cairo/libcairo-trace.{la,a}
+
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/cairo}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
+%post  gobject -p /sbin/ldconfig
+%postun        gobject -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 # COPYING contains only notes, not LGPL/MPL texts
 %files
 %defattr(644,root,root,755)
 # COPYING contains only notes, not LGPL/MPL texts
-%doc AUTHORS COPYING ChangeLog NEWS README TODO
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%doc AUTHORS COPYING ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libcairo.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcairo.so.2
+%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcairo-script-interpreter.so.2
 
 %files devel
 %defattr(644,root,root,755)
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*
-%{_pkgconfigdir}/*.pc
+%attr(755,root,root) %{_libdir}/libcairo.so
+%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so
+%{_libdir}/libcairo.la
+%{_libdir}/libcairo-script-interpreter.la
+%{_includedir}/cairo
+%exclude %{_includedir}/cairo/cairo-gobject.h
+%{_pkgconfigdir}/cairo.pc
+%{_pkgconfigdir}/cairo-fc.pc
+%{_pkgconfigdir}/cairo-ft.pc
+%{_pkgconfigdir}/cairo-pdf.pc
+%{_pkgconfigdir}/cairo-png.pc
+%{_pkgconfigdir}/cairo-ps.pc
+%{_pkgconfigdir}/cairo-svg.pc
+%{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
+%{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
+%{_pkgconfigdir}/cairo-xlib.pc
+%{_pkgconfigdir}/cairo-xlib-xrender.pc
 
 %files static
 %defattr(644,root,root,755)
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libcairo.a
+%{_libdir}/libcairo-script-interpreter.a
+
+%files gobject
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcairo-gobject.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcairo-gobject.so.2
+
+%files gobject-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcairo-gobject.so
+%{_libdir}/libcairo-gobject.la
+%{_includedir}/cairo/cairo-gobject.h
+%{_pkgconfigdir}/cairo-gobject.pc
+
+%files gobject-static
+%defattr(644,root,root,755)
+%{_libdir}/libcairo-gobject.a
+
+%files trace
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/cairo-trace
+%dir %{_libdir}/cairo
+%attr(755,root,root) %{_libdir}/cairo/libcairo-trace.so*
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/cairo
+%endif
This page took 0.057105 seconds and 4 git commands to generate.