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