1 Summary: Evil - EFL Windows compatibility layer
2 Summary(pl.UTF-8): Evil - Warstwa kompatybilności EFL z Windows
3 Name: crossmingw32-evil
6 License: Free (see COPYING)
7 Group: Development/Libraries
8 Source0: http://download.enlightenment.org/releases/evil-%{version}.tar.bz2
9 # Source0-md5: bf3f25749657cf7171aa58debada3e13
10 URL: http://trac.enlightenment.org/e/wiki/EFL
11 BuildRequires: autoconf >= 2.52
12 BuildRequires: automake >= 1.6
13 BuildRequires: crossmingw32-gcc
14 BuildRequires: libtool >= 2:2.4
15 BuildRequires: rpmbuild(macros) >= 1.197
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define no_install_post_strip 1
20 %define target i386-mingw32
21 %define target_platform i386-pc-mingw32
23 %define _sysprefix /usr
24 %define _prefix %{_sysprefix}/%{target}
25 %define _libdir %{_prefix}/lib
26 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
27 %define _dlldir /usr/share/wine/windows/system
28 %define __cc %{target}-gcc
29 %define __cxx %{target}-g++
32 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 # -z options are invalid for mingw linker, most of -f options are Linux-specific
36 %define filterout_ld -Wl,-z,.*
37 %define filterout_c -f[-a-z0-9=]*
38 %define filterout_cxx -f[-a-z0-9=]*
41 The Evil library tried to port some convenient Unix functions to the
42 Windows (XP or CE) platform. They are used in the Enlightenment
43 Foundation Libraries (EFL).
45 This package contains the cross version for Win32.
47 %description -l pl.UTF-8
48 Biblioteka Evil jest próbą przeniesienia niektórych wygodnych funkcji
49 uniksowych na platformę Windows (XP lub CE). Jest wykorzystywana w
50 bibliotekach EFL (Enlightenment Foundation Libraries).
52 Ten pakiet zawiera wersję skrośną dla Win32.
55 Summary: Static Evil libraries (cross MinGW32 version)
56 Summary(pl.UTF-8): Statyczne biblioteki Evil (wersja skrośna MinGW32)
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Static Evil libraries (cross MinGW32 version).
63 %description static -l pl.UTF-8
64 Statyczne biblioteki Evil (wersja skrośna MinGW32).
67 Summary: DLL Evil libraries for Windows
68 Summary(pl.UTF-8): Biblioteki DLL Evil dla Windows
69 Group: Applications/Emulators
73 DLL Evil libraries for Windows.
75 %description dll -l pl.UTF-8
76 Biblioteki DLL Evil dla Windows.
79 %setup -q -n evil-%{version}
83 %{__aclocal} -I m4 -I m4/common -I m4/evil
90 --disable-silent-rules
95 rm -rf $RPM_BUILD_ROOT
97 %{__make} -j1 install \
98 DESTDIR=$RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT%{_dlldir}
101 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
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
109 rm -rf $RPM_BUILD_ROOT
112 %defattr(644,root,root,755)
113 %doc AUTHORS COPYING COPYING-PLAIN ChangeLog NEWS README
114 %{_libdir}/libdl.dll.a
116 %{_libdir}/libevil.dll.a
117 %{_libdir}/libevil.la
118 %{_includedir}/evil-1
119 %{_pkgconfigdir}/evil.pc
122 %defattr(644,root,root,755)
127 %defattr(644,root,root,755)
128 %{_dlldir}/libdl-1.dll
129 %{_dlldir}/libevil-1.dll