]>
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 |
c923d111 | 4 | Version: 0.28.2 |
c8b13a35 | 5 | Release: 2 |
b0f59df1 JB |
6 | License: MIT |
7 | Group: Development/Libraries | |
8 | Source0: http://xorg.freedesktop.org/archive/individual/lib/pixman-%{version}.tar.bz2 | |
c923d111 | 9 | # Source0-md5: f6e3294c4edb7b6bca8459e604286348 |
b0f59df1 JB |
10 | URL: http://xorg.freedesktop.org/ |
11 | BuildRequires: autoconf >= 2.57 | |
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 | |
21 | ||
22 | %define target i386-mingw32 | |
23 | %define target_platform i386-pc-mingw32 | |
24 | ||
25 | %define _sysprefix /usr | |
26 | %define _prefix %{_sysprefix}/%{target} | |
27 | %define _libdir %{_prefix}/lib | |
28 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
29 | %define _dlldir /usr/share/wine/windows/system | |
30 | %define __cc %{target}-gcc | |
31 | %define __cxx %{target}-g++ | |
c8b13a35 | 32 | %define __pkgconfig_provides %{nil} |
b0f59df1 | 33 | |
6f3319a2 JB |
34 | %ifnarch %{ix86} |
35 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
36 | %define optflags -O2 | |
37 | %endif | |
ad0a31e5 | 38 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
6f3319a2 | 39 | %define filterout_ld -Wl,-z,.* |
ad0a31e5 | 40 | %define filterout_c -f[-a-z0-9=]* |
6f3319a2 | 41 | |
b0f59df1 JB |
42 | %description |
43 | pixman is a pixel manipulation library. | |
44 | ||
45 | This package contains the cross version for Win32. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | pixman to biblioteka do operacji na pikselach. | |
49 | ||
50 | Ten pakiet zawiera wersję skrośną dla Win32. | |
51 | ||
52 | %package static | |
474fa36b JB |
53 | Summary: Static pixman library (cross MinGW32 version) |
54 | Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna MinGW32) | |
b0f59df1 JB |
55 | Group: Development/Libraries |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description static | |
474fa36b | 59 | Static pixman library (cross MinGW32 version). |
b0f59df1 JB |
60 | |
61 | %description static -l pl.UTF-8 | |
474fa36b | 62 | Statyczna biblioteka pixman (wersja skrośna MinGW32). |
b0f59df1 JB |
63 | |
64 | %package dll | |
65 | Summary: DLL pixman library for Windows | |
66 | Summary(pl.UTF-8): Biblioteka DLL pixman dla Windows | |
67 | Group: Applications/Emulators | |
68 | Requires: wine | |
69 | ||
70 | %description dll | |
71 | DLL pixman library for Windows. | |
72 | ||
73 | %description dll -l pl.UTF-8 | |
74 | Biblioteka DLL pixman dla Windows. | |
75 | ||
76 | %prep | |
77 | %setup -q -n pixman-%{version} | |
b0f59df1 JB |
78 | |
79 | %build | |
80 | %{__libtoolize} | |
81 | %{__aclocal} | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
85 | %configure \ | |
86 | --target=%{target} \ | |
ffd42c07 | 87 | --host=%{target} \ |
f33c3462 | 88 | --disable-gtk \ |
ffd42c07 | 89 | --disable-silent-rules |
b0f59df1 JB |
90 | |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
7921815b JB |
99 | sed -i -e 's#<pixman-version.h>#<pixman-1/pixman-version.h>#g' $RPM_BUILD_ROOT%{_includedir}/pixman-1/pixman.h |
100 | ||
b0f59df1 JB |
101 | install -d $RPM_BUILD_ROOT%{_dlldir} |
102 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
103 | ||
104 | %if 0%{!?debug:1} | |
105 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
106 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
107 | %endif | |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
7d4f9a9e | 114 | %doc COPYING README |
b0f59df1 JB |
115 | %{_libdir}/libpixman-1.dll.a |
116 | %{_libdir}/libpixman-1.la | |
117 | %{_includedir}/pixman-1 | |
118 | %{_pkgconfigdir}/pixman-1.pc | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libpixman-1.a | |
123 | ||
124 | %files dll | |
125 | %defattr(644,root,root,755) | |
126 | %{_dlldir}/libpixman-1-*.dll |