]> git.pld-linux.org Git - packages/crossmingw32-cairo.git/blob - crossmingw32-cairo.spec
- disable debug packages
[packages/crossmingw32-cairo.git] / crossmingw32-cairo.spec
1 Summary:        Cairo - multi-platform 2D graphics library - cross MinGW32 version
2 Summary(pl.UTF-8):      Cairo - wieloplatformowa biblioteka graficzna 2D - skrośna wersja MinGW32
3 %define         realname   cairo
4 Name:           crossmingw32-%{realname}
5 Version:        1.14.12
6 Release:        1
7 License:        LGPL v2.1 or MPL v1.1
8 Group:          Development/Libraries
9 Source0:        https://www.cairographics.org/releases/%{realname}-%{version}.tar.xz
10 # Source0-md5:  9f0db9dbfca0966be8acd682e636d165
11 Patch0:         cairo-link.patch
12 Patch1:         cairo-mingw32.patch
13 Patch2:         cairo-add-cairo-API-to-setup-Win32-surface-for-HDC.patch
14 URL:            https://www.cairographics.org/
15 BuildRequires:  autoconf >= 2.63
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  crossmingw32-fontconfig >= 2.2.95
18 BuildRequires:  crossmingw32-freetype >= 2.3.0
19 BuildRequires:  crossmingw32-glib2 >= 2.14
20 BuildRequires:  crossmingw32-libpng
21 BuildRequires:  crossmingw32-pixman >= 0.30.0
22 BuildRequires:  crossmingw32-zlib
23 BuildRequires:  libtool >= 2:2.2
24 BuildRequires:  pkgconfig >= 1:0.18
25 Requires:       crossmingw32-fontconfig >= 2.2.95
26 Requires:       crossmingw32-freetype >= 2.3.0
27 Requires:       crossmingw32-libpng
28 Requires:       crossmingw32-pixman >= 0.30.0
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %define         no_install_post_strip   1
32
33 %define         target                  i386-mingw32
34 %define         target_platform         i386-pc-mingw32
35
36 %define         _sysprefix              /usr
37 %define         _prefix                 %{_sysprefix}/%{target}
38 %define         _libdir                 %{_prefix}/lib
39 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
40 %define         _dlldir                 /usr/share/wine/windows/system
41 %define         __cc                    %{target}-gcc
42 %define         __cxx                   %{target}-g++
43 %define         __pkgconfig_provides    %{nil}
44 %define         __pkgconfig_requires    %{nil}
45
46 %ifnarch %{ix86}
47 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
48 %define         optflags        -O2
49 %endif
50 # -z options are invalid for mingw linker, most of -f options are Linux-specific
51 # note: although C++ code is not used, failing configure check disables DLL building
52 %define         filterout_ld    -Wl,-z,.*
53 %define         filterout_c     -f[-a-z0-9=]*
54 %define         filterout_cxx   -f[-a-z0-9=]*
55
56 %description
57 Cairo provides anti-aliased vector-based rendering for X. Paths
58 consist of line segments and cubic splines and can be rendered at any
59 width with various join and cap styles. All colors may be specified
60 with optional translucence (opacity/alpha) and combined using the
61 extended Porter/Duff compositing algebra as found in the X Render
62 Extension.
63
64 Cairo exports a stateful rendering API similar in spirit to the path
65 construction, text, and painting operators of PostScript, (with the
66 significant addition of translucence in the imaging model). When
67 complete, the API is intended to support the complete imaging model of
68 PDF 1.4.
69
70 This package contains the cross version for Win32.
71
72 %description -l pl.UTF-8
73 Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
74 Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
75 mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
76 Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
77 (podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
78 przy użyciu rozszerzonego algorytmu składania Portera-Duffa, który
79 można znaleźć w rozszerzeniu X Render.
80
81 Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
82 konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
83 dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
84 ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
85
86 Ten pakiet zawiera wersję skrośną dla Win32.
87
88 %package static
89 Summary:        Static Cairo library (cross MinGW32 version)
90 Summary(pl.UTF-8):      Statyczna biblioteka Cairo (wersja skrośna MinGW32)
91 Group:          Development/Libraries
92 Requires:       %{name} = %{version}-%{release}
93
94 %description static
95 Static Cairo library (cross MinGW32 version).
96
97 %description static -l pl.UTF-8
98 Statyczna biblioteka Cairo (wersja skrośna MinGW32).
99
100 %package dll
101 Summary:        DLL Cairo library for Windows
102 Summary(pl.UTF-8):      Biblioteka DLL Cairo dla Windows
103 Group:          Applications/Emulators
104 Requires:       crossmingw32-fontconfig-dll >= 2.2.95
105 Requires:       crossmingw32-freetype-dll >= 2.3.0
106 Requires:       crossmingw32-libpng-dll
107 Requires:       crossmingw32-pixman-dll >= 0.30.0
108
109 %description dll
110 DLL Cairo library for Windows.
111
112 %description dll -l pl.UTF-8
113 Biblioteka DLL Cairo dla Windows.
114
115 %package gobject
116 Summary:        Cairo GObject functions library - cross MinGW32 version
117 Summary(pl.UTF-8):      Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32 
118 Group:          Development/Libraries
119 Requires:       %{name} = %{version}-%{release}
120 Requires:       crossmingw32-glib2 >= 2.14
121
122 %description gobject
123 Cairo GObject functions library - cross MinGW32 version.
124
125 %description gobject -l pl.UTF-8
126 Biblioteka funkcji Cairo GObject - wersja skrośna MinGW32.
127
128 %package gobject-static
129 Summary:        Static Cairo GObject library (cross MinGW32 version)
130 Summary(pl.UTF-8):      Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32)
131 Group:          Development/Libraries
132 Requires:       %{name}-gobject = %{version}-%{release}
133
134 %description gobject-static
135 Static Cairo GObject library (cross MinGW32 version).
136
137 %description gobject-static -l pl.UTF-8
138 Statyczna biblioteka Cairo GObject (wersja skrośna MinGW32).
139
140 %package gobject-dll
141 Summary:        DLL Cairo GObject library for Windows
142 Summary(pl.UTF-8):      Biblioteka DLL Cairo GObject dla Windows
143 Group:          Applications/Emulators
144 Requires:       %{name}-dll = %{version}-%{release}
145 Requires:       crossmingw32-glib2-dll >= 2.14
146
147 %description gobject-dll
148 DLL Cairo GObject library for Windows.
149
150 %description gobject-dll -l pl.UTF-8
151 Biblioteka DLL Cairo GObject dla Windows.
152
153 %prep
154 %setup -q -n %{realname}-%{version}
155 %patch0 -p1
156 %patch1 -p1
157 %patch2 -p1
158
159 %build
160 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
161 %{__libtoolize}
162 %{__aclocal} -I build
163 %{__autoheader}
164 %{__autoconf}
165 %{__automake}
166 %configure \
167         CPPFLAGS="%{rpmcppflags} -Dffs=__builtin_ffs" \
168         lt_cv_deplibs_check_method=pass_all \
169         --target=%{target} \
170         --host=%{target} \
171         --disable-gtk-doc \
172         --disable-silent-rules \
173         --disable-xlib \
174         --disable-xlib-render \
175         --enable-freetype \
176         --enable-pdf \
177         --enable-png \
178         --enable-ps \
179         --enable-tee \
180         --enable-windows \
181         --enable-xml
182
183 %{__make}
184
185 %install
186 rm -rf $RPM_BUILD_ROOT
187
188 %{__make} install \
189         DESTDIR=$RPM_BUILD_ROOT
190
191 install -d $RPM_BUILD_ROOT%{_dlldir}
192 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
193
194 %if 0%{!?debug:1}
195 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
196 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
197 %endif
198
199 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %files
205 %defattr(644,root,root,755)
206 # COPYING contains only notes, not LGPL/MPL texts
207 %doc AUTHORS COPYING ChangeLog NEWS README
208 %{_libdir}/libcairo.dll.a
209 %{_libdir}/libcairo.la
210 %{_libdir}/libcairo-script-interpreter.dll.a
211 %{_libdir}/libcairo-script-interpreter.la
212 %{_includedir}/cairo
213 %exclude %{_includedir}/cairo/cairo-gobject.h
214 %{_pkgconfigdir}/cairo.pc
215 %{_pkgconfigdir}/cairo-fc.pc
216 %{_pkgconfigdir}/cairo-ft.pc
217 %{_pkgconfigdir}/cairo-pdf.pc
218 %{_pkgconfigdir}/cairo-png.pc
219 %{_pkgconfigdir}/cairo-ps.pc
220 %{_pkgconfigdir}/cairo-script.pc
221 %{_pkgconfigdir}/cairo-svg.pc
222 %{_pkgconfigdir}/cairo-tee.pc
223 %{_pkgconfigdir}/cairo-win32.pc
224 %{_pkgconfigdir}/cairo-win32-font.pc
225 %{_pkgconfigdir}/cairo-xml.pc
226
227 %files static
228 %defattr(644,root,root,755)
229 %{_libdir}/libcairo.a
230 %{_libdir}/libcairo-script-interpreter.a
231
232 %files dll
233 %defattr(644,root,root,755)
234 %{_dlldir}/libcairo-2.dll
235 %{_dlldir}/libcairo-script-interpreter-2.dll
236
237 %files gobject
238 %defattr(644,root,root,755)
239 %{_libdir}/libcairo-gobject.dll.a
240 %{_libdir}/libcairo-gobject.la
241 %{_includedir}/cairo/cairo-gobject.h
242 %{_pkgconfigdir}/cairo-gobject.pc
243
244 %files gobject-static
245 %defattr(644,root,root,755)
246 %{_libdir}/libcairo-gobject.a
247
248 %files gobject-dll
249 %defattr(644,root,root,755)
250 %{_dlldir}/libcairo-gobject-2.dll
This page took 0.052524 seconds and 3 git commands to generate.