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