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