]>
Commit | Line | Data |
---|---|---|
b0f59df1 JB |
1 | Summary: Pixel manipulation library - cross Mingw32 |
2 | Summary(pl.UTF-8): Biblioteka operacji na pikselach - wersja skrośna Mingw32 | |
3 | Name: crossmingw32-pixman | |
6f3319a2 | 4 | Version: 0.11.10 |
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 | |
6f3319a2 | 9 | # Source0-md5: 5db471bffc5caeebb6a07be674d65373 |
b0f59df1 JB |
10 | URL: http://xorg.freedesktop.org/ |
11 | BuildRequires: autoconf >= 2.57 | |
12 | BuildRequires: automake | |
13 | BuildRequires: crossmingw32-gcc | |
14 | BuildRequires: crossmingw32-zlib | |
15 | BuildRequires: libtool | |
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 | |
51 | Summary: Static pixman library (cross mingw32 version) | |
52 | Summary(pl.UTF-8): Statyczna biblioteka pixman (wersja skrośna mingw32) | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static pixman library (cross mingw32 version). | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka pixman (wersja skrośna mingw32). | |
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} | |
76 | ||
77 | # disable gtk-based test | |
78 | :> test/Makefile.am | |
79 | # needed to build dll | |
80 | sed -i -e 's/^libpixman_1_la_LDFLAGS =/& -no-undefined/' pixman/Makefile.am | |
81 | ||
82 | %build | |
83 | %{__libtoolize} | |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %configure \ | |
89 | --target=%{target} \ | |
90 | --host=%{target} | |
91 | ||
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
101 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
102 | ||
103 | %if 0%{!?debug:1} | |
104 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
105 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
106 | %endif | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc README TODO | |
114 | %{_libdir}/libpixman-1.dll.a | |
115 | %{_libdir}/libpixman-1.la | |
116 | %{_includedir}/pixman-1 | |
117 | %{_pkgconfigdir}/pixman-1.pc | |
118 | ||
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libpixman-1.a | |
122 | ||
123 | %files dll | |
124 | %defattr(644,root,root,755) | |
125 | %{_dlldir}/libpixman-1-*.dll |