]> git.pld-linux.org Git - packages/cairo.git/blame - cairo.spec
- release 8
[packages/cairo.git] / cairo.spec
CommitLineData
79fcc918
JB
1#
2# Conditional build:
9f933f96 3%bcond_without apidocs # disable gtk-doc
0ecd672c 4%bcond_without svg # disable SVG support (to boostrap librsvg)
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
0dfe25d4 15Version: 1.10.2
c13406bb 16Release: 8
9b33cbb5 17License: LGPL v2.1 or MPL v1.1
b7ccdbe1 18Group: Libraries
0b5be3e0 19Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
0dfe25d4 20# Source0-md5: f101a9e88b783337b20b2e26dfd26d5f
c9185d93 21Patch0: %{name}-link.patch
8c7ef450 22URL: http://cairographics.org/
3396a3ae
JB
23BuildRequires: autoconf >= 2.59
24BuildRequires: automake >= 1:1.9.6
25BuildRequires: fontconfig-devel >= 2.2.95
75cc31b6 26BuildRequires: freetype-devel >= 1:2.3.0
3396a3ae 27BuildRequires: glib2-devel >= 1:2.0
a14e3f3c 28%{?with_apidocs:BuildRequires: gtk-doc >= 1.6}
42ecc17e 29BuildRequires: libpng-devel >= 2:1.4.0
0ecd672c 30%{?with_svg:BuildRequires: librsvg-devel >= 2.15.0}
3396a3ae
JB
31BuildRequires: libspectre-devel >= 0.2.0
32BuildRequires: libtool >= 1.4
33BuildRequires: pixman-devel >= 0.18.4
8f628762 34BuildRequires: pkgconfig >= 1:0.9
afbe183c 35%{?with_tests:BuildRequires: poppler-glib-devel >= 0.13.3}
68f80d0c 36BuildRequires: rpm >= 4.4.9-56
0c4a4f34 37BuildRequires: sed >= 4.0
b2aa6d0c 38%if %{with xcb}
3396a3ae 39BuildRequires: libxcb-devel >= 1.4
b2aa6d0c 40%endif
68f80d0c
ER
41%if "%{pld_release}" == "ac"
42BuildRequires: xrender-devel >= 0.6
43%else
3396a3ae 44BuildRequires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 45BuildRequires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 46%endif
9bc5a16c 47BuildRequires: zlib-devel
75cc31b6 48Requires: freetype >= 1:2.3.0
3396a3ae 49Requires: pixman >= 0.18.4
b7ccdbe1 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8c7ef450 51
52%description
76666767 53Cairo provides anti-aliased vector-based rendering for X. Paths
b7ccdbe1
JB
54consist of line segments and cubic splines and can be rendered at any
55width with various join and cap styles. All colors may be specified
56with optional translucence (opacity/alpha) and combined using the
57extended Porter/Duff compositing algebra as found in the X Render
58Extension.
59
60Cairo exports a stateful rendering API similar in spirit to the path
61construction, text, and painting operators of PostScript, (with the
62significant addition of translucence in the imaging model). When
63complete, the API is intended to support the complete imaging model of
64PDF 1.4.
65
65aac246
JR
66%description -l pl.UTF-8
67Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
68Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
69mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
70Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
71(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
9c95588d 72przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
65aac246
JR
73można znaleźć w rozszerzeniu X Render.
74
75Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
76konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
77dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
78ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
79
8c7ef450 80%package devel
b7ccdbe1 81Summary: Development files for Cairo library
beb0026f 82Summary(pl.UTF-8): Pliki programistyczne biblioteki Cairo
4233927e 83Group: Development/Libraries
b7ccdbe1 84Requires: %{name} = %{version}-%{release}
3396a3ae 85Requires: fontconfig-devel >= 2.2.95
75cc31b6 86Requires: freetype-devel >= 1:2.3.0
42ecc17e 87Requires: libpng-devel >= 2:1.4.0
3396a3ae
JB
88%{?with_xcb:Requires: libxcb-devel >= 1.4}
89Requires: pixman-devel >= 0.18.4
68f80d0c
ER
90%if "%{pld_release}" == "ac"
91Requires: xrender-devel >= 0.6
92%else
3396a3ae 93Requires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 94Requires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 95%endif
8c7ef450 96
97%description devel
b7ccdbe1
JB
98Development files for Cairo library.
99
65aac246 100%description devel -l pl.UTF-8
b7ccdbe1 101Pliki programistyczne biblioteki Cairo.
8c7ef450 102
103%package static
b7ccdbe1 104Summary: Static Cairo library
beb0026f 105Summary(pl.UTF-8): Statyczna biblioteka Cairo
4233927e 106Group: Development/Libraries
b7ccdbe1 107Requires: %{name}-devel = %{version}-%{release}
8c7ef450 108
109%description static
b7ccdbe1
JB
110Static Cairo library.
111
65aac246 112%description static -l pl.UTF-8
b7ccdbe1 113Statyczna biblioteka Cairo.
8c7ef450 114
8f628762
JB
115%package gobject
116Summary: GObject functions library for Cairo graphics library
117Summary(pl.UTF-8): Biblioteka funkcji GObject dla biblioteki graficznej Cairo
118Group: Libraries
119Requires: %{name} = %{version}-%{release}
120
121%description gobject
122GObject functions library for Cairo graphics library.
123
124%description gobject -l pl.UTF-8
125Biblioteka funkcji GObject dla biblioteki graficznej Cairo.
126
127%package gobject-devel
128Summary: Header files for Cairo GObject library
129Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cairo GObject
130Group: Development/Libraries
131Requires: %{name}-devel = %{version}-%{release}
132Requires: %{name}-gobject = %{version}-%{release}
133Requires: glib2-devel >= 1:2.0
134
135%description gobject-devel
136Header files for Cairo GObject library.
137
138%description gobject-devel -l pl.UTF-8
139Pliki nagłówkowe biblioteki Cairo GObject.
140
141%package gobject-static
142Summary: Static Cairo GObject library
143Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject
144Group: Development/Libraries
145Requires: %{name}-gobject-devel = %{version}-%{release}
146
147%description gobject-static
148Static Cairo GObject library.
149
150%description gobject-static -l pl.UTF-8
151Statyczna biblioteka Cairo GObject.
152
153%package trace
154Summary: Cairo calls tracing utility
155Summary(pl.UTF-8): Narzędzie do śledzenia wywołań Cairo
156Group: Development/Tools
157Requires: %{name} = %{version}-%{release}
158
159%description trace
160Cairo calls tracing utility.
161
162%description trace -l pl.UTF-8
163Narzędzie do śledzenia wywołań Cairo.
164
ecad233f 165%package apidocs
166Summary: Cairo API documentation
beb0026f 167Summary(pl.UTF-8): Dokumentacja API Cairo
ecad233f 168Group: Documentation
169Requires: gtk-doc-common
170
171%description apidocs
172Cairo API documentation.
173
65aac246 174%description apidocs -l pl.UTF-8
d55df9d3 175Dokumentacja API Cairo.
ecad233f 176
8c7ef450 177%prep
56de7934 178%setup -q
c9185d93 179%patch0 -p1
8c7ef450 180
181%build
2e75f7d0 182%{?with_apidocs:%{__gtkdocize}}
b7ccdbe1 183%{__libtoolize}
75cc31b6 184%{__aclocal} -I build
8c7ef450 185%{__autoheader}
8c7ef450 186%{__autoconf}
b7ccdbe1 187%{__automake}
7fdf57cf 188%configure \
3396a3ae 189 --disable-silent-rules \
5cbde25f 190 --enable-freetype \
5cbde25f 191 %{?with_apidocs:--enable-gtk-doc} \
3396a3ae 192 --enable-pdf \
2d024fa9 193 --enable-png \
5cbde25f 194 --enable-ps \
0ecd672c 195 %{!?with_svg:--disable-svg} \
e9726ad7 196 --enable-tee \
5cbde25f 197 %{?with_xcb:--enable-xcb} \
7fdf57cf 198 --with-html-dir=%{_gtkdocdir}
0c4a4f34 199
200%{__sed} -i 's/gobject-2.0 glib-2.0//' src/cairo.pc
201
8c7ef450 202%{__make}
d71997d7 203%{?with_tests:%{__make} check}
8c7ef450 204
205%install
206rm -rf $RPM_BUILD_ROOT
8c7ef450 207
208%{__make} install \
209 DESTDIR=$RPM_BUILD_ROOT
210
8f628762
JB
211# LD_PRELOADable library
212%{__rm} $RPM_BUILD_ROOT%{_libdir}/cairo/libcairo-trace.{la,a}
213
8452c411
ER
214%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/cairo}
215
8c7ef450 216%clean
217rm -rf $RPM_BUILD_ROOT
218
b7ccdbe1
JB
219%post -p /sbin/ldconfig
220%postun -p /sbin/ldconfig
8c7ef450 221
8f628762
JB
222%post gobject -p /sbin/ldconfig
223%postun gobject -p /sbin/ldconfig
224
b7ccdbe1
JB
225%files
226%defattr(644,root,root,755)
9b33cbb5 227# COPYING contains only notes, not LGPL/MPL texts
2d024fa9 228%doc AUTHORS COPYING ChangeLog NEWS README
daa7aa2f
JB
229%attr(755,root,root) %{_libdir}/libcairo.so.*.*.*
230%attr(755,root,root) %ghost %{_libdir}/libcairo.so.2
1fb61c53
PZ
231%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so.*.*.*
232%attr(755,root,root) %ghost %{_libdir}/libcairo-script-interpreter.so.2
8c7ef450 233
234%files devel
235%defattr(644,root,root,755)
daa7aa2f 236%attr(755,root,root) %{_libdir}/libcairo.so
1fb61c53 237%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so
daa7aa2f 238%{_libdir}/libcairo.la
1fb61c53 239%{_libdir}/libcairo-script-interpreter.la
daa7aa2f 240%{_includedir}/cairo
8f628762 241%exclude %{_includedir}/cairo/cairo-gobject.h
daa7aa2f 242%{_pkgconfigdir}/cairo.pc
1fb61c53 243%{_pkgconfigdir}/cairo-fc.pc
daa7aa2f 244%{_pkgconfigdir}/cairo-ft.pc
4d4ec739 245%{_pkgconfigdir}/cairo-pdf.pc
daa7aa2f
JB
246%{_pkgconfigdir}/cairo-png.pc
247%{_pkgconfigdir}/cairo-ps.pc
0ecd672c 248%{?with_svg:%{_pkgconfigdir}/cairo-svg.pc}
e9726ad7 249%{_pkgconfigdir}/cairo-tee.pc
8452c411 250%{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
1fb61c53 251%{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
daa7aa2f
JB
252%{_pkgconfigdir}/cairo-xlib.pc
253%{_pkgconfigdir}/cairo-xlib-xrender.pc
b7ccdbe1
JB
254
255%files static
256%defattr(644,root,root,755)
daa7aa2f 257%{_libdir}/libcairo.a
1fb61c53 258%{_libdir}/libcairo-script-interpreter.a
ecad233f 259
8f628762
JB
260%files gobject
261%defattr(644,root,root,755)
262%attr(755,root,root) %{_libdir}/libcairo-gobject.so.*.*.*
263%attr(755,root,root) %ghost %{_libdir}/libcairo-gobject.so.2
264
265%files gobject-devel
266%defattr(644,root,root,755)
267%attr(755,root,root) %{_libdir}/libcairo-gobject.so
268%{_libdir}/libcairo-gobject.la
269%{_includedir}/cairo/cairo-gobject.h
270%{_pkgconfigdir}/cairo-gobject.pc
271
272%files gobject-static
273%defattr(644,root,root,755)
274%{_libdir}/libcairo-gobject.a
275
276%files trace
277%defattr(644,root,root,755)
278%attr(755,root,root) %{_bindir}/cairo-trace
279%dir %{_libdir}/cairo
280%attr(755,root,root) %{_libdir}/cairo/libcairo-trace.so*
281
8452c411 282%if %{with apidocs}
ecad233f 283%files apidocs
284%defattr(644,root,root,755)
285%{_gtkdocdir}/cairo
8452c411 286%endif
This page took 1.532608 seconds and 4 git commands to generate.