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: https://www.cairographics.org/releases/pixman-%{version}.tar.gz
9 # Source0-md5: d925aa9e9ed9d419b6c2e02a61a11d29
10 URL: http://pixman.org/
11 BuildRequires: autoconf >= 2.62
12 BuildRequires: automake
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: libtool
15 BuildRequires: pkgconfig
16 BuildRequires: sed >= 4.0
17 Requires: crossmingw32-runtime
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
21 %define _enable_debug_packages 0
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++
33 %define __pkgconfig_provides %{nil}
34 %define __pkgconfig_requires %{nil}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40 # -z options are invalid for mingw linker, most of -f options are Linux-specific
41 %define filterout_ld -Wl,-z,.*
42 %define filterout_c -f[-a-z0-9=]*
45 pixman is a pixel manipulation library.
47 This package contains the cross version for Win32.
49 %description -l pl.UTF-8
50 pixman to biblioteka do operacji na pikselach.
52 Ten pakiet zawiera wersję skrośną dla Win32.
55 Summary: Static pixman library (cross MinGW32 version)
56 Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna MinGW32)
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Static pixman library (cross MinGW32 version).
63 %description static -l pl.UTF-8
64 Statyczna biblioteka pixman (wersja skrośna MinGW32).
67 Summary: DLL pixman library for Windows
68 Summary(pl.UTF-8): Biblioteka DLL pixman dla Windows
69 Group: Applications/Emulators
73 DLL pixman library for Windows.
75 %description dll -l pl.UTF-8
76 Biblioteka DLL pixman dla Windows.
79 %setup -q -n pixman-%{version}
81 %{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h
94 --disable-silent-rules
99 rm -rf $RPM_BUILD_ROOT
102 DESTDIR=$RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_dlldir}
105 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
108 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
109 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
118 %{_libdir}/libpixman-1.dll.a
119 %{_libdir}/libpixman-1.la
120 %{_includedir}/pixman-1
121 %{_pkgconfigdir}/pixman-1.pc
124 %defattr(644,root,root,755)
125 %{_libdir}/libpixman-1.a
128 %defattr(644,root,root,755)
129 %{_dlldir}/libpixman-1-*.dll