]>
Commit | Line | Data |
---|---|---|
474fa36b JB |
1 | Summary: Pixel manipulation library - cross MinGW32 |
2 | Summary(pl.UTF-8): Biblioteka operacji na pikselach - wersja skrośna MinGW32 | |
b0f59df1 | 3 | Name: crossmingw32-pixman |
050bfdb5 | 4 | Version: 0.42.2 |
0f0a0b04 | 5 | Release: 1 |
b0f59df1 JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
fa310d22 | 8 | Source0: https://www.cairographics.org/releases/pixman-%{version}.tar.gz |
050bfdb5 | 9 | # Source0-md5: a0f6ab8a1d8e0e2cd80e935525e2a864 |
5319b181 | 10 | URL: http://pixman.org/ |
97f810d6 | 11 | BuildRequires: autoconf >= 2.62 |
b0f59df1 JB |
12 | BuildRequires: automake |
13 | BuildRequires: crossmingw32-gcc | |
b0f59df1 | 14 | BuildRequires: libtool |
f33c3462 | 15 | BuildRequires: pkgconfig |
b0f59df1 JB |
16 | BuildRequires: sed >= 4.0 |
17 | Requires: crossmingw32-runtime | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define no_install_post_strip 1 | |
79cf1ceb | 21 | %define _enable_debug_packages 0 |
b0f59df1 JB |
22 | |
23 | %define target i386-mingw32 | |
24 | %define target_platform i386-pc-mingw32 | |
25 | ||
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++ | |
c8b13a35 | 33 | %define __pkgconfig_provides %{nil} |
4203a4b3 | 34 | %define __pkgconfig_requires %{nil} |
b0f59df1 | 35 | |
6f3319a2 JB |
36 | %ifnarch %{ix86} |
37 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
38 | %define optflags -O2 | |
39 | %endif | |
ad0a31e5 | 40 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
6f3319a2 | 41 | %define filterout_ld -Wl,-z,.* |
ad0a31e5 | 42 | %define filterout_c -f[-a-z0-9=]* |
6f3319a2 | 43 | |
b0f59df1 JB |
44 | %description |
45 | pixman is a pixel manipulation library. | |
46 | ||
47 | This package contains the cross version for Win32. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | pixman to biblioteka do operacji na pikselach. | |
51 | ||
52 | Ten pakiet zawiera wersję skrośną dla Win32. | |
53 | ||
54 | %package static | |
474fa36b JB |
55 | Summary: Static pixman library (cross MinGW32 version) |
56 | Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna MinGW32) | |
b0f59df1 JB |
57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
59 | ||
60 | %description static | |
474fa36b | 61 | Static pixman library (cross MinGW32 version). |
b0f59df1 JB |
62 | |
63 | %description static -l pl.UTF-8 | |
474fa36b | 64 | Statyczna biblioteka pixman (wersja skrośna MinGW32). |
b0f59df1 JB |
65 | |
66 | %package dll | |
67 | Summary: DLL pixman library for Windows | |
68 | Summary(pl.UTF-8): Biblioteka DLL pixman dla Windows | |
69 | Group: Applications/Emulators | |
70 | Requires: wine | |
71 | ||
72 | %description dll | |
73 | DLL pixman library for Windows. | |
74 | ||
75 | %description dll -l pl.UTF-8 | |
76 | Biblioteka DLL pixman dla Windows. | |
77 | ||
78 | %prep | |
79 | %setup -q -n pixman-%{version} | |
b7d9e3a1 | 80 | |
97f810d6 JB |
81 | %{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h |
82 | ||
b0f59df1 JB |
83 | %build |
84 | %{__libtoolize} | |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --target=%{target} \ | |
ffd42c07 | 91 | --host=%{target} \ |
f33c3462 | 92 | --disable-gtk \ |
79cf1ceb | 93 | --disable-openmp \ |
ffd42c07 | 94 | --disable-silent-rules |
b0f59df1 JB |
95 | |
96 | %{__make} | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
104 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
97f810d6 | 105 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
b0f59df1 JB |
106 | |
107 | %if 0%{!?debug:1} | |
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 | |
110 | %endif | |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
7d4f9a9e | 117 | %doc COPYING README |
b0f59df1 JB |
118 | %{_libdir}/libpixman-1.dll.a |
119 | %{_libdir}/libpixman-1.la | |
120 | %{_includedir}/pixman-1 | |
121 | %{_pkgconfigdir}/pixman-1.pc | |
122 | ||
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libpixman-1.a | |
126 | ||
127 | %files dll | |
128 | %defattr(644,root,root,755) | |
129 | %{_dlldir}/libpixman-1-*.dll |