1 Summary: WebP image codec libraries - cross MinGW32 version
2 Summary(pl.UTF-8): Biblioteki do kodeka obrazów WebP - wersja skrośna MinGW32
3 Name: crossmingw32-libwebp
7 Group: Development/Libraries
8 #Source0Download: http://downloads.webmproject.org/releases/webp/index.html
9 Source0: http://downloads.webmproject.org/releases/webp/libwebp-%{version}.tar.gz
10 # Source0-md5: 906ad85daaaa2eac97c8aa2dec9e8b77
11 URL: https://developers.google.com/speed/webp/
12 BuildRequires: autoconf >= 2.60
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc
15 BuildRequires: libtool >= 2:2.2
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++
32 %define __pkgconfig_provides %{nil}
33 %define __pkgconfig_requires %{nil}
36 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
39 # -z options are invalid for mingw linker, most of -f options are Linux-specific
40 %define filterout_ld -Wl,-z,.*
41 %define filterout_c -f[-a-z0-9=]*
44 WebP image codec libraries.
46 This package contains the cross version for Win32.
48 %description -l pl.UTF-8
49 Biblioteki kodeka obrazów WebP.
51 Ten pakiet zawiera wersję skrośną dla Win32.
54 Summary: Static WebP libraries (cross MinGW32 version)
55 Summary(pl.UTF-8): Statyczne biblioteki WebP (wersja skrośna MinGW32)
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 Static WebP libraries (cross MinGW32 version).
62 %description static -l pl.UTF-8
63 Statyczne biblioteki WebP (wersja skrośna MinGW32).
66 Summary: DLL WebP libraries for Windows
67 Summary(pl.UTF-8): Biblioteki DLL WebP dla Windows
68 Group: Applications/Emulators
72 DLL WebP libraries for Windows.
74 %description dll -l pl.UTF-8
75 Biblioteki DLL WebP dla Windows.
78 %setup -q -n libwebp-%{version}
80 sed -i -e 's/libwebp_la_LDFLAGS.*/& -no-undefined/' src/Makefile.am
91 --disable-silent-rules \
92 --enable-libwebpdemux \
95 # -C src to get just the library, no utils
99 rm -rf $RPM_BUILD_ROOT
101 %{__make} -C src install \
102 DESTDIR=$RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_dlldir}
105 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
108 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
109 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %doc AUTHORS COPYING ChangeLog NEWS PATENTS README
118 %{_libdir}/libwebp.dll.a
119 %{_libdir}/libwebp.la
120 %{_libdir}/libwebpdemux.dll.a
121 %{_libdir}/libwebpdemux.la
122 %{_libdir}/libwebpmux.dll.a
123 %{_libdir}/libwebpmux.la
125 %{_pkgconfigdir}/libwebp.pc
126 %{_pkgconfigdir}/libwebpdemux.pc
127 %{_pkgconfigdir}/libwebpmux.pc
130 %defattr(644,root,root,755)
132 %{_libdir}/libwebpdemux.a
133 %{_libdir}/libwebpmux.a
136 %defattr(644,root,root,755)
137 %{_dlldir}/libwebp-7.dll
138 %{_dlldir}/libwebpmux-3.dll
139 %{_dlldir}/libwebpdemux-2.dll