1 Summary: WebP image codec library and tools - cross MinGW32 version
2 Summary(pl.UTF-8): Biblioteka i narzędzia do kodeka obrazów WebP - wersja skrośna MinGW32
3 Name: crossmingw32-libwebp
7 Group: Development/Libraries
8 #Source0Download: http://code.google.com/p/webp/downloads/list
9 Source0: http://webp.googlecode.com/files/libwebp-%{version}.tar.gz
10 # Source0-md5: 75f33cabe4af0dfb51d751c67ae1b3d0
11 URL: https://developers.google.com/speed/webp/
12 BuildRequires: autoconf >= 2.50
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc
15 BuildRequires: libtool
16 BuildRequires: rpmbuild(macros) >= 1.197
17 BuildRequires: sed >= 4.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
22 %define target i386-mingw32
23 %define target_platform i386-pc-mingw32
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++
34 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
37 # -z options are invalid for mingw linker, most of -f options are Linux-specific
38 %define filterout_ld -Wl,-z,.*
39 %define filterout_c -f[-a-z0-9=]*
42 WebP image codec library.
44 This package contains the cross version for Win32.
46 %description -l pl.UTF-8
47 Biblioteka kodeka obrazów WebP.
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static WebP library (cross MinGW32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka WebP (wersja skrośna MinGW32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static WebP library (cross MinGW32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka WebP (wersja skrośna MinGW32).
64 Summary: DLL WebP library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL WebP dla Windows
66 Group: Applications/Emulators
70 DLL WebP library for Windows.
72 %description dll -l pl.UTF-8
73 Biblioteka DLL WebP dla Windows.
76 %setup -q -n libwebp-%{version}
78 sed -i -e 's/libwebp_la_LDFLAGS.*/& -no-undefined/' src/Makefile.am
90 # -C src to get just the library, no utils
94 rm -rf $RPM_BUILD_ROOT
96 %{__make} -C src install \
97 DESTDIR=$RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT%{_dlldir}
100 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
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
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING ChangeLog NEWS PATENTS README
113 %{_libdir}/libwebp.dll.a
114 %{_libdir}/libwebp.la
116 %{_pkgconfigdir}/libwebp.pc
119 %defattr(644,root,root,755)
123 %defattr(644,root,root,755)
124 %{_dlldir}/libwebp-4.dll