Summary: Cairo - multi-platform 2D graphics library Summary(pl): Cairo - wieloplatformowa biblioteka graficzna 2D Name: cairo Version: 0.1.23 Release: 1.1 License: BSD-like Group: Libraries Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.gz # Source0-md5: c36bcb2c5fe2b716620e68626a0da3a1 Patch0: %{name}-glitz.patch URL: http://cairographics.org/ BuildRequires: autoconf BuildRequires: automake BuildRequires: fontconfig-devel BuildRequires: freetype-devel >= 2.1.0 BuildRequires: glitz-devel >= 0.1.5 BuildRequires: libpixman-devel >= 0.1.1 BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: pkgconfig #BuildRequires: xcb-devel (http://freedesktop.org/software/xcb - CVS only, not released yet) BuildRequires: xrender-devel >= 0.6 BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Cairo provides anti-aliased vector-based rendering for X. Paths consist of line segments and cubic splines and can be rendered at any width with various join and cap styles. All colors may be specified with optional translucence (opacity/alpha) and combined using the extended Porter/Duff compositing algebra as found in the X Render Extension. Cairo exports a stateful rendering API similar in spirit to the path construction, text, and painting operators of PostScript, (with the significant addition of translucence in the imaging model). When 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. %package devel Summary: Development files for Cairo library 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.1.0 Requires: libpixman-devel >= 0.1.1 Requires: libpng-devel Requires: xrender-devel >= 0.6 %description devel Development files for Cairo library. %description devel -l pl Pliki programistyczne biblioteki Cairo. %package static Summary: Static Cairo library Summary(pl): Statyczna biblioteka Cairo Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static Cairo library. %description static -l pl Statyczna biblioteka Cairo. %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoheader} %{__autoconf} %{__automake} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS COPYING ChangeLog NEWS README TODO %attr(755,root,root) %{_libdir}/lib*.so.*.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/* %{_pkgconfigdir}/*.pc %files static %defattr(644,root,root,755) %{_libdir}/lib*.a