1 Summary: Pixel manipulation library - cross Mingw32
2 Summary(pl.UTF-8): Biblioteka operacji na pikselach - wersja skrośna Mingw32
3 Name: crossmingw32-pixman
7 Group: Development/Libraries
8 Source0: http://xorg.freedesktop.org/archive/individual/lib/pixman-%{version}.tar.bz2
9 # Source0-md5: 8f0c47bbb12a0d9c0d14242596bf6bf9
10 Patch0: pixman-no_pkgconfig.patch
11 Patch1: pixman-notls.patch
12 URL: http://xorg.freedesktop.org/
13 BuildRequires: autoconf >= 2.57
14 BuildRequires: automake
15 BuildRequires: crossmingw32-gcc
16 BuildRequires: libtool
17 BuildRequires: sed >= 4.0
18 Requires: crossmingw32-runtime
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define no_install_post_strip 1
23 %define target i386-mingw32
24 %define target_platform i386-pc-mingw32
26 %define _sysprefix /usr
27 %define _prefix %{_sysprefix}/%{target}
28 %define _libdir %{_prefix}/lib
29 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
30 %define _dlldir /usr/share/wine/windows/system
31 %define __cc %{target}-gcc
32 %define __cxx %{target}-g++
35 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38 # -z options are invalid for mingw linker
39 %define filterout_ld -Wl,-z,.*
42 pixman is a pixel manipulation library.
44 This package contains the cross version for Win32.
46 %description -l pl.UTF-8
47 pixman to biblioteka do operacji na pikselach.
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static pixman library (cross mingw32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna mingw32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static pixman library (cross mingw32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka pixman (wersja skrośna mingw32).
64 Summary: DLL pixman library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL pixman dla Windows
66 Group: Applications/Emulators
70 DLL pixman library for Windows.
72 %description dll -l pl.UTF-8
73 Biblioteka DLL pixman dla Windows.
76 %setup -q -n pixman-%{version}
80 # disable gtk-based test
83 sed -i -e 's/^libpixman_1_la_LDFLAGS =/& -no-undefined/' pixman/Makefile.am
92 CPPFLAGS="%{rpmcppflags} -DPIXMAN_NO_TLS" \
95 --disable-silent-rules
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h
107 install -d $RPM_BUILD_ROOT%{_dlldir}
108 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
111 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
112 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
116 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
121 %{_libdir}/libpixman-1.dll.a
122 %{_libdir}/libpixman-1.la
123 %{_includedir}/pixman-1
124 %{_pkgconfigdir}/pixman-1.pc
127 %defattr(644,root,root,755)
128 %{_libdir}/libpixman-1.a
131 %defattr(644,root,root,755)
132 %{_dlldir}/libpixman-1-*.dll