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