%define cvs_release 20030906
-Summary: Cairo graphics API
+Summary: Cairo - multi-platform 2D graphics library
+Summary(pl): Cairo - wieloplatformowa biblioteka graficzna 2D
Name: cairo
Version: 0.1.2
Release: 0.%{cvs_release}.1
License: BSD-like
-Group: Development/Libraries
+Group: Libraries
Source0: %{name}-cvs-%{cvs_release}.tar.gz
# Source0-md5: ef3595b37c2f70e5e072224c0037406b
URL: http://cairographics.org/
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: libic-devel >= 0.1.1
-BuildRequires: libpixregion-devel >= 0.1.0
+BuildRequires: libtool
+BuildRequires: pkgconfig
BuildRequires: xft-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-cairo
+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: Devel files for cairo
+Summary: Development files for Cairo library
+Summary(pl): Pliki programistyczne biblioteki Cairo
Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libic-devel >= 0.1.1
+Requires: xft-devel
%description devel
-Devel files for cairo
+Development files for Cairo library.
+
+%description devel -l pl
+Pliki programistyczne biblioteki Cairo.
%package static
-Summary: Static libraries for cairo
+Summary: Static Cairo library
+Summary(pl): Statyczna biblioteka Cairo
Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
%description static
-Static libraries for cairo
+Static Cairo library.
+
+%description static -l pl
+Statyczna biblioteka Cairo.
%prep
-%setup -n %{name}
+%setup -q -n %{name}
%build
-%{__libtoolize} --force --copy
+%{__libtoolize}
%{__aclocal}
%{__autoheader}
-%{__automake} --add-missing
%{__autoconf}
+%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-# create directories if necessary
-#install -d $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%files
-%{_libdir}/*.so.*
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%files static
-%{_libdir}/*.a
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog README TODO
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%files devel
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
%{_includedir}/*
-%{_libdir}/pkgconfig/*
-%{_libdir}/*.so
-%{_libdir}/*.la
+%{_pkgconfigdir}/*.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a