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