]> git.pld-linux.org Git - packages/crossmingw32-cairo.git/blame - crossmingw32-cairo.spec
- don't disable svg
[packages/crossmingw32-cairo.git] / crossmingw32-cairo.spec
CommitLineData
c00b5b7c 1#
2# Conditional build:
3%bcond_with glitz # build with glitz backend
4#
5Summary: Cairo - multi-platform 2D graphics library - cross Mingw32 version
ed706dfc 6Summary(pl.UTF-8): Cairo - wieloplatformowa biblioteka graficzna 2D - skrośna wersja Mingw32
8401d423
JB
7%define realname cairo
8Name: crossmingw32-%{realname}
b517cf70 9Version: 1.4.10
c00b5b7c 10Release: 1
11License: LGPL v2.1 or MPL v1.1
ed706dfc 12Group: Development/Libraries
8401d423 13Source0: http://cairographics.org/releases/%{realname}-%{version}.tar.gz
b517cf70 14# Source0-md5: 5598a5e500ad922e37b159dee72fc993
c00b5b7c 15URL: http://cairographics.org/
16BuildRequires: autoconf >= 2.54
17BuildRequires: automake >= 1:1.7
18BuildRequires: crossmingw32-fontconfig
19BuildRequires: crossmingw32-freetype >= 2.1.10
20%{?with_glitz:BuildRequires: crossmingw32-glitz >= 0.5.1}
21BuildRequires: crossmingw32-libpng
c00b5b7c 22BuildRequires: crossmingw32-zlib
23BuildRequires: libtool
36f07f62 24BuildRequires: pkgconfig >= 1:0.15
ed706dfc 25Requires: crossmingw32-fontconfig
c00b5b7c 26Requires: crossmingw32-freetype >= 2.1.10
ed706dfc
JB
27%{?with_glitz:Requires: crossmingw32-glitz >= 0.5.1}
28Requires: crossmingw32-libpng
c00b5b7c 29BuildRoot: %{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
c00b5b7c 35
36%define _sysprefix /usr
37%define _prefix %{_sysprefix}/%{target}
38%define _pkgconfigdir %{_prefix}/lib/pkgconfig
ed706dfc 39%define _dlldir /usr/share/wine/windows/system
c00b5b7c 40%define __cc %{target}-gcc
41%define __cxx %{target}-g++
42
43%description
44Cairo provides anti-aliased vector-based rendering for X. Paths
45consist of line segments and cubic splines and can be rendered at any
46width with various join and cap styles. All colors may be specified
47with optional translucence (opacity/alpha) and combined using the
48extended Porter/Duff compositing algebra as found in the X Render
49Extension.
50
51Cairo exports a stateful rendering API similar in spirit to the path
52construction, text, and painting operators of PostScript, (with the
53significant addition of translucence in the imaging model). When
54complete, the API is intended to support the complete imaging model of
55PDF 1.4.
56
ed706dfc
JB
57This package contains the cross version for Win32.
58
59%description -l pl.UTF-8
60Cairo obsługuje oparty na wektorach rendering z antyaliasingiem dla X.
61Ścieżki składają się z odcinków i splajnów kubicznych, a renderowane
62mogą być z dowolną grubością i różnymi stylami połączeń i zakończeń.
63Wszystkie kolory mogą być podane z opcjonalną półprzezroczystością
64(podaną przez współczynnik nieprzezroczystości lub alpha) i łączone
65przy użyciu rozszerzonego algorytmu mieszania Portera-Duffa, który
66można znaleźć w rozszerzeniu X Render.
67
68Cairo eksportuje stanowe API renderujące w duchu podobne do operatorów
69konstruowania ścieżek, tekstu i rysowania z PostScriptu (ze znacznym
70dodatkiem półprzezroczystości w modelu obrazu). Kiedy API zostanie
71ukończone, ma obsługiwać pełny model obrazu z PDF w wersji 1.4.
72
73Ten pakiet zawiera wersję skrośną dla Win32.
74
75%package static
76Summary: Static cairo library (cross mingw32 version)
77Summary(pl.UTF-8): Statyczna biblioteka cairo (wersja skrośna mingw32)
78Group: Development/Libraries
79Requires: %{name} = %{version}-%{release}
80
81%description static
82Static cairo library (cross mingw32 version).
83
84%description static -l pl.UTF-8
85Statyczna biblioteka cairo (wersja skrośna mingw32).
86
87%package dll
88Summary: DLL cairo library for Windows
89Summary(pl.UTF-8): Biblioteka DLL cairo dla Windows
90Group: Applications/Emulators
91Requires: crossmingw32-fontconfig-dll
92Requires: crossmingw32-freetype-dll >= 2.1.10
93%{?with_glitz:Requires: crossmingw32-glitz-dll >= 0.5.1}
94Requires: crossmingw32-libpng-dll
95
96%description dll
97DLL cairo library for Windows.
98
99%description dll -l pl.UTF-8
100Biblioteka DLL cairo dla Windows.
c00b5b7c 101
102%prep
8401d423 103%setup -q -n %{realname}-%{version}
c00b5b7c 104
105%build
36f07f62 106export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
c00b5b7c 107%{__libtoolize}
108%{__aclocal}
109%{__autoheader}
110%{__autoconf}
111%{__automake}
112%configure \
ed706dfc 113 lt_cv_deplibs_check_method=pass_all \
c00b5b7c 114 --target=%{target} \
594215bd 115 --host=%{target} \
594215bd 116 --disable-gtk-doc \
c00b5b7c 117 --disable-xlib \
118 --disable-xlib-render \
594215bd 119 --enable-freetype \
ed706dfc 120 %{?with_glitz:--enable-glitz} \
594215bd 121 --enable-pdf \
122 --enable-png \
123 --enable-ps \
c00b5b7c 124 --enable-windows \
594215bd 125
c00b5b7c 126%{__make}
127
128%install
129rm -rf $RPM_BUILD_ROOT
130
131%{__make} install \
132 DESTDIR=$RPM_BUILD_ROOT
133
ed706dfc
JB
134install -d $RPM_BUILD_ROOT%{_dlldir}
135mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
136
137%if 0%{!?debug:1}
138%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
139%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
140%endif
141
142rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
143
c00b5b7c 144%clean
145rm -rf $RPM_BUILD_ROOT
146
147%files
148%defattr(644,root,root,755)
149# COPYING contains only notes, not LGPL/MPL texts
150%doc AUTHORS COPYING ChangeLog NEWS README TODO
ed706dfc
JB
151%{_libdir}/libcairo.dll.a
152%{_libdir}/libcairo.la
153%{_includedir}/cairo
c00b5b7c 154%{_pkgconfigdir}/*.pc
ed706dfc
JB
155
156%files static
157%defattr(644,root,root,755)
158%{_libdir}/libcairo.a
159
160%files dll
161%defattr(644,root,root,755)
162%{_dlldir}/libcairo-*.dll
This page took 0.087112 seconds and 4 git commands to generate.