]> git.pld-linux.org Git - packages/cairo.git/blame - cairo.spec
- up to 1.4.2
[packages/cairo.git] / cairo.spec
CommitLineData
79fcc918
JB
1#
2# Conditional build:
9f933f96 3%bcond_without apidocs # disable gtk-doc
dd4d1358 4%bcond_with glitz # build with glitz backend
b2aa6d0c 5%bcond_without xcb # XCB backend
d71997d7 6%bcond_with tests # perform tests (can fail due to out of memory)
6e13550b 7%bcond_without lcd # use own LCD filtering instead of freetype's
79fcc918 8#
b7ccdbe1 9Summary: Cairo - multi-platform 2D graphics library
beb0026f 10Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
8c7ef450 11Name: cairo
8000abd0
RT
12Version: 1.4.2
13Release: 1
9b33cbb5 14License: LGPL v2.1 or MPL v1.1
b7ccdbe1 15Group: Libraries
0b5be3e0 16Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
8000abd0 17# Source0-md5: b254633046eafe603776d0bee791b751
c9185d93 18Patch0: %{name}-link.patch
6e13550b 19Patch1: http://david.freetype.org/lcd/cairo-1.2.4-lcd-filter-1.patch
8c7ef450 20URL: http://cairographics.org/
79fcc918 21BuildRequires: autoconf >= 2.54
c9185d93 22BuildRequires: automake >= 1:1.7
9bc5a16c 23BuildRequires: fontconfig-devel
6e13550b 24%{?with_lcd:BuildRequires: freetype-devel >= 1:2.3.0}
25%{!?with_lcd:BuildRequires: freetype-devel >= 1:2.1.10}
2e75f7d0 26%{?with_glitz:BuildRequires: glitz-devel >= 0.5.1}
9f933f96 27%{?with_apidocs:BuildRequires: gtk-doc >= 1.3}
9bc5a16c 28BuildRequires: libpng-devel
b7ccdbe1
JB
29BuildRequires: libtool
30BuildRequires: pkgconfig
b2aa6d0c 31%if %{with xcb}
fe1a27be
JB
32BuildRequires: libxcb-devel >= 0.9.92
33BuildRequires: xcb-util-devel >= 0.2
b2aa6d0c 34%endif
ddb9a7c6 35BuildRequires: xorg-lib-libXrender-devel >= 0.6
9bc5a16c 36BuildRequires: zlib-devel
89b0db42
JB
37%{!?with_lcd:Requires: freetype >= 1:2.1.10}
38%{?with_lcd:Requires: freetype >= 1:2.3.0}
2e75f7d0 39%{?with_glitz:Requires: glitz >= 0.5.1}
b7ccdbe1 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8c7ef450 41
42%description
b7ccdbe1
JB
43Cairo provides anti-aliased vector-based rendering for X. Paths
44consist of line segments and cubic splines and can be rendered at any
45width with various join and cap styles. All colors may be specified
46with optional translucence (opacity/alpha) and combined using the
47extended Porter/Duff compositing algebra as found in the X Render
48Extension.
49
50Cairo exports a stateful rendering API similar in spirit to the path
51construction, text, and painting operators of PostScript, (with the
52significant addition of translucence in the imaging model). When
53complete, the API is intended to support the complete imaging model of
54PDF 1.4.
55
65aac246
JR
56%description -l pl.UTF-8
57Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
58Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
59mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
60Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
61(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
62przy użyciu rozszerzonego algorytmu mieszania Portera-Duffa, który
63można znaleźć w rozszerzeniu X Render.
64
65Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
66konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
67dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
68ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
69
8c7ef450 70%package devel
b7ccdbe1 71Summary: Development files for Cairo library
beb0026f 72Summary(pl.UTF-8): Pliki programistyczne biblioteki Cairo
4233927e 73Group: Development/Libraries
b7ccdbe1 74Requires: %{name} = %{version}-%{release}
9bc5a16c 75Requires: fontconfig-devel
df2e7d34 76Requires: freetype-devel >= 1:2.1.10
2e75f7d0 77%{?with_glitz:Requires: glitz-devel >= 0.5.1}
9bc5a16c 78Requires: libpng-devel
fe1a27be
JB
79%{?with_xcb:Requires: libxcb-devel >= 0.9.92}
80%{?with_xcb:Requires: xcb-util-devel >= 0.2}
ddb9a7c6 81Requires: xorg-lib-libXrender-devel >= 0.6
8c7ef450 82
83%description devel
b7ccdbe1
JB
84Development files for Cairo library.
85
65aac246 86%description devel -l pl.UTF-8
b7ccdbe1 87Pliki programistyczne biblioteki Cairo.
8c7ef450 88
89%package static
b7ccdbe1 90Summary: Static Cairo library
beb0026f 91Summary(pl.UTF-8): Statyczna biblioteka Cairo
4233927e 92Group: Development/Libraries
b7ccdbe1 93Requires: %{name}-devel = %{version}-%{release}
8c7ef450 94
95%description static
b7ccdbe1
JB
96Static Cairo library.
97
65aac246 98%description static -l pl.UTF-8
b7ccdbe1 99Statyczna biblioteka Cairo.
8c7ef450 100
ecad233f 101%package apidocs
102Summary: Cairo API documentation
beb0026f 103Summary(pl.UTF-8): Dokumentacja API Cairo
ecad233f 104Group: Documentation
105Requires: gtk-doc-common
106
107%description apidocs
108Cairo API documentation.
109
65aac246 110%description apidocs -l pl.UTF-8
ecad233f 111Dokumentacja API Cairo.
112
8c7ef450 113%prep
56de7934 114%setup -q
c9185d93 115%patch0 -p1
6e13550b 116%{?with_lcd:%patch1 -p1}
8c7ef450 117
118%build
2e75f7d0 119%{?with_apidocs:%{__gtkdocize}}
b7ccdbe1 120%{__libtoolize}
8c7ef450 121%{__aclocal}
122%{__autoheader}
8c7ef450 123%{__autoconf}
b7ccdbe1 124%{__automake}
7fdf57cf 125%configure \
9f933f96 126 %{?with_apidocs:--enable-gtk-doc} \
79fcc918 127 %{?with_xcb:--enable-xcb} \
dd4d1358 128 %{?with_glitz:--enable-glitz} \
0b5be3e0 129 --enable-ps \
130 --enable-pdf \
7fdf57cf 131 --with-html-dir=%{_gtkdocdir}
8c7ef450 132%{__make}
d71997d7 133%{?with_tests:%{__make} check}
8c7ef450 134
135%install
136rm -rf $RPM_BUILD_ROOT
8c7ef450 137
138%{__make} install \
139 DESTDIR=$RPM_BUILD_ROOT
140
141%clean
142rm -rf $RPM_BUILD_ROOT
143
b7ccdbe1
JB
144%post -p /sbin/ldconfig
145%postun -p /sbin/ldconfig
8c7ef450 146
b7ccdbe1
JB
147%files
148%defattr(644,root,root,755)
9b33cbb5 149# COPYING contains only notes, not LGPL/MPL texts
f5c18fd7 150%doc AUTHORS COPYING ChangeLog NEWS README TODO
b7ccdbe1 151%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
8c7ef450 152
153%files devel
154%defattr(644,root,root,755)
b7ccdbe1
JB
155%attr(755,root,root) %{_libdir}/lib*.so
156%{_libdir}/lib*.la
8c7ef450 157%{_includedir}/*
b7ccdbe1
JB
158%{_pkgconfigdir}/*.pc
159
160%files static
161%defattr(644,root,root,755)
162%{_libdir}/lib*.a
ecad233f 163
164%files apidocs
165%defattr(644,root,root,755)
166%{_gtkdocdir}/cairo
This page took 0.067588 seconds and 4 git commands to generate.