]> git.pld-linux.org Git - packages/cairo.git/blame - cairo.spec
- updated to 1.10.2
[packages/cairo.git] / cairo.spec
CommitLineData
79fcc918
JB
1#
2# Conditional build:
9f933f96 3%bcond_without apidocs # disable gtk-doc
68f80d0c 4%if "%{pld_release}" == "ac"
75cc31b6 5%bcond_with xcb # XCB backend
68f80d0c 6%else
75cc31b6 7%bcond_without xcb # XCB backend
68f80d0c 8%endif
75cc31b6
MB
9%bcond_with tests # perform tests (can fail due to out of memory)
10#
b7ccdbe1 11Summary: Cairo - multi-platform 2D graphics library
beb0026f 12Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D
8c7ef450 13Name: cairo
0dfe25d4
JB
14Version: 1.10.2
15Release: 1
9b33cbb5 16License: LGPL v2.1 or MPL v1.1
b7ccdbe1 17Group: Libraries
0b5be3e0 18Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
0dfe25d4 19# Source0-md5: f101a9e88b783337b20b2e26dfd26d5f
c9185d93 20Patch0: %{name}-link.patch
8c7ef450 21URL: http://cairographics.org/
3396a3ae
JB
22BuildRequires: autoconf >= 2.59
23BuildRequires: automake >= 1:1.9.6
24BuildRequires: fontconfig-devel >= 2.2.95
75cc31b6 25BuildRequires: freetype-devel >= 1:2.3.0
3396a3ae 26BuildRequires: glib2-devel >= 1:2.0
a14e3f3c 27%{?with_apidocs:BuildRequires: gtk-doc >= 1.6}
42ecc17e 28BuildRequires: libpng-devel >= 2:1.4.0
d6b6a3ee 29BuildRequires: librsvg-devel >= 2.15.0
3396a3ae
JB
30BuildRequires: libspectre-devel >= 0.2.0
31BuildRequires: libtool >= 1.4
32BuildRequires: pixman-devel >= 0.18.4
8f628762 33BuildRequires: pkgconfig >= 1:0.9
3396a3ae 34BuildRequires: poppler-glib-devel >= 0.13.3
68f80d0c 35BuildRequires: rpm >= 4.4.9-56
b2aa6d0c 36%if %{with xcb}
3396a3ae 37BuildRequires: libxcb-devel >= 1.4
b2aa6d0c 38%endif
68f80d0c
ER
39%if "%{pld_release}" == "ac"
40BuildRequires: xrender-devel >= 0.6
41%else
3396a3ae 42BuildRequires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 43BuildRequires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 44%endif
9bc5a16c 45BuildRequires: zlib-devel
75cc31b6 46Requires: freetype >= 1:2.3.0
3396a3ae 47Requires: pixman >= 0.18.4
b7ccdbe1 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8c7ef450 49
50%description
76666767 51Cairo provides anti-aliased vector-based rendering for X. Paths
b7ccdbe1
JB
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}
3396a3ae 83Requires: fontconfig-devel >= 2.2.95
75cc31b6 84Requires: freetype-devel >= 1:2.3.0
42ecc17e 85Requires: libpng-devel >= 2:1.4.0
3396a3ae
JB
86%{?with_xcb:Requires: libxcb-devel >= 1.4}
87Requires: pixman-devel >= 0.18.4
68f80d0c
ER
88%if "%{pld_release}" == "ac"
89Requires: xrender-devel >= 0.6
90%else
3396a3ae 91Requires: xorg-lib-libX11-devel%{?with_xcb: >= 1.1}
ddb9a7c6 92Requires: xorg-lib-libXrender-devel >= 0.6
68f80d0c 93%endif
8c7ef450 94
95%description devel
b7ccdbe1
JB
96Development files for Cairo library.
97
65aac246 98%description devel -l pl.UTF-8
b7ccdbe1 99Pliki programistyczne biblioteki Cairo.
8c7ef450 100
101%package static
b7ccdbe1 102Summary: Static Cairo library
beb0026f 103Summary(pl.UTF-8): Statyczna biblioteka Cairo
4233927e 104Group: Development/Libraries
b7ccdbe1 105Requires: %{name}-devel = %{version}-%{release}
8c7ef450 106
107%description static
b7ccdbe1
JB
108Static Cairo library.
109
65aac246 110%description static -l pl.UTF-8
b7ccdbe1 111Statyczna biblioteka Cairo.
8c7ef450 112
8f628762
JB
113%package gobject
114Summary: GObject functions library for Cairo graphics library
115Summary(pl.UTF-8): Biblioteka funkcji GObject dla biblioteki graficznej Cairo
116Group: Libraries
117Requires: %{name} = %{version}-%{release}
118
119%description gobject
120GObject functions library for Cairo graphics library.
121
122%description gobject -l pl.UTF-8
123Biblioteka funkcji GObject dla biblioteki graficznej Cairo.
124
125%package gobject-devel
126Summary: Header files for Cairo GObject library
127Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Cairo GObject
128Group: Development/Libraries
129Requires: %{name}-devel = %{version}-%{release}
130Requires: %{name}-gobject = %{version}-%{release}
131Requires: glib2-devel >= 1:2.0
132
133%description gobject-devel
134Header files for Cairo GObject library.
135
136%description gobject-devel -l pl.UTF-8
137Pliki nagłówkowe biblioteki Cairo GObject.
138
139%package gobject-static
140Summary: Static Cairo GObject library
141Summary(pl.UTF-8): Statyczna biblioteka Cairo GObject
142Group: Development/Libraries
143Requires: %{name}-gobject-devel = %{version}-%{release}
144
145%description gobject-static
146Static Cairo GObject library.
147
148%description gobject-static -l pl.UTF-8
149Statyczna biblioteka Cairo GObject.
150
151%package trace
152Summary: Cairo calls tracing utility
153Summary(pl.UTF-8): Narzędzie do śledzenia wywołań Cairo
154Group: Development/Tools
155Requires: %{name} = %{version}-%{release}
156
157%description trace
158Cairo calls tracing utility.
159
160%description trace -l pl.UTF-8
161Narzędzie do śledzenia wywołań Cairo.
162
ecad233f 163%package apidocs
164Summary: Cairo API documentation
beb0026f 165Summary(pl.UTF-8): Dokumentacja API Cairo
ecad233f 166Group: Documentation
167Requires: gtk-doc-common
168
169%description apidocs
170Cairo API documentation.
171
65aac246 172%description apidocs -l pl.UTF-8
d55df9d3 173Dokumentacja API Cairo.
ecad233f 174
8c7ef450 175%prep
56de7934 176%setup -q
c9185d93 177%patch0 -p1
8c7ef450 178
179%build
2e75f7d0 180%{?with_apidocs:%{__gtkdocize}}
b7ccdbe1 181%{__libtoolize}
75cc31b6 182%{__aclocal} -I build
8c7ef450 183%{__autoheader}
8c7ef450 184%{__autoconf}
b7ccdbe1 185%{__automake}
7fdf57cf 186%configure \
3396a3ae 187 --disable-silent-rules \
5cbde25f 188 --enable-freetype \
5cbde25f 189 %{?with_apidocs:--enable-gtk-doc} \
3396a3ae 190 --enable-pdf \
2d024fa9 191 --enable-png \
5cbde25f
JB
192 --enable-ps \
193 %{?with_xcb:--enable-xcb} \
7fdf57cf 194 --with-html-dir=%{_gtkdocdir}
8c7ef450 195%{__make}
d71997d7 196%{?with_tests:%{__make} check}
8c7ef450 197
198%install
199rm -rf $RPM_BUILD_ROOT
8c7ef450 200
201%{__make} install \
202 DESTDIR=$RPM_BUILD_ROOT
203
8f628762
JB
204# LD_PRELOADable library
205%{__rm} $RPM_BUILD_ROOT%{_libdir}/cairo/libcairo-trace.{la,a}
206
8452c411
ER
207%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/cairo}
208
8c7ef450 209%clean
210rm -rf $RPM_BUILD_ROOT
211
b7ccdbe1
JB
212%post -p /sbin/ldconfig
213%postun -p /sbin/ldconfig
8c7ef450 214
8f628762
JB
215%post gobject -p /sbin/ldconfig
216%postun gobject -p /sbin/ldconfig
217
b7ccdbe1
JB
218%files
219%defattr(644,root,root,755)
9b33cbb5 220# COPYING contains only notes, not LGPL/MPL texts
2d024fa9 221%doc AUTHORS COPYING ChangeLog NEWS README
daa7aa2f
JB
222%attr(755,root,root) %{_libdir}/libcairo.so.*.*.*
223%attr(755,root,root) %ghost %{_libdir}/libcairo.so.2
1fb61c53
PZ
224%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so.*.*.*
225%attr(755,root,root) %ghost %{_libdir}/libcairo-script-interpreter.so.2
8c7ef450 226
227%files devel
228%defattr(644,root,root,755)
daa7aa2f 229%attr(755,root,root) %{_libdir}/libcairo.so
1fb61c53 230%attr(755,root,root) %{_libdir}/libcairo-script-interpreter.so
daa7aa2f 231%{_libdir}/libcairo.la
1fb61c53 232%{_libdir}/libcairo-script-interpreter.la
daa7aa2f 233%{_includedir}/cairo
8f628762 234%exclude %{_includedir}/cairo/cairo-gobject.h
daa7aa2f 235%{_pkgconfigdir}/cairo.pc
1fb61c53 236%{_pkgconfigdir}/cairo-fc.pc
daa7aa2f 237%{_pkgconfigdir}/cairo-ft.pc
4d4ec739 238%{_pkgconfigdir}/cairo-pdf.pc
daa7aa2f
JB
239%{_pkgconfigdir}/cairo-png.pc
240%{_pkgconfigdir}/cairo-ps.pc
241%{_pkgconfigdir}/cairo-svg.pc
8452c411 242%{?with_xcb:%{_pkgconfigdir}/cairo-xcb.pc}
1fb61c53 243%{?with_xcb:%{_pkgconfigdir}/cairo-xcb-shm.pc}
daa7aa2f
JB
244%{_pkgconfigdir}/cairo-xlib.pc
245%{_pkgconfigdir}/cairo-xlib-xrender.pc
b7ccdbe1
JB
246
247%files static
248%defattr(644,root,root,755)
daa7aa2f 249%{_libdir}/libcairo.a
1fb61c53 250%{_libdir}/libcairo-script-interpreter.a
ecad233f 251
8f628762
JB
252%files gobject
253%defattr(644,root,root,755)
254%attr(755,root,root) %{_libdir}/libcairo-gobject.so.*.*.*
255%attr(755,root,root) %ghost %{_libdir}/libcairo-gobject.so.2
256
257%files gobject-devel
258%defattr(644,root,root,755)
259%attr(755,root,root) %{_libdir}/libcairo-gobject.so
260%{_libdir}/libcairo-gobject.la
261%{_includedir}/cairo/cairo-gobject.h
262%{_pkgconfigdir}/cairo-gobject.pc
263
264%files gobject-static
265%defattr(644,root,root,755)
266%{_libdir}/libcairo-gobject.a
267
268%files trace
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_bindir}/cairo-trace
271%dir %{_libdir}/cairo
272%attr(755,root,root) %{_libdir}/cairo/libcairo-trace.so*
273
8452c411 274%if %{with apidocs}
ecad233f 275%files apidocs
276%defattr(644,root,root,755)
277%{_gtkdocdir}/cairo
8452c411 278%endif
This page took 0.102209 seconds and 4 git commands to generate.