]> git.pld-linux.org Git - packages/crossmingw32-libwebp.git/blobdiff - crossmingw32-libwebp.spec
- updated to 1.4.0
[packages/crossmingw32-libwebp.git] / crossmingw32-libwebp.spec
index ad25e267bb41969b000af2da5c17703b973743b9..b795be70c4bf34588652cd62422e3a71d245d76a 100644 (file)
@@ -1,23 +1,24 @@
-Summary:       WebP image codec library and tools - cross MinGW32 version
-Summary(pl.UTF-8):     Biblioteka i narzędzia do kodeka obrazów WebP - wersja skrośna MinGW32
+Summary:       WebP image codec libraries - cross MinGW32 version
+Summary(pl.UTF-8):     Biblioteki do kodeka obrazów WebP - wersja skrośna MinGW32
 Name:          crossmingw32-libwebp
-Version:       0.2.0
+Version:       1.4.0
 Release:       1
 License:       BSD
 Group:         Development/Libraries
-#Source0Download: http://code.google.com/p/webp/downloads/list
-Source0:       http://webp.googlecode.com/files/libwebp-%{version}.tar.gz
-# Source0-md5: 75f33cabe4af0dfb51d751c67ae1b3d0
+#Source0Download: http://downloads.webmproject.org/releases/webp/index.html
+Source0:       http://downloads.webmproject.org/releases/webp/libwebp-%{version}.tar.gz
+# Source0-md5: 07daaa13bef03b7be07f11977b159cb8
 URL:           https://developers.google.com/speed/webp/
-BuildRequires: autoconf >= 2.50
+BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: crossmingw32-gcc
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2.2
 BuildRequires: rpmbuild(macros) >= 1.197
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                no_install_post_strip   1
+%define                _enable_debug_packages  0
 
 %define                target                  i386-mingw32
 %define                target_platform         i386-pc-mingw32
@@ -29,47 +30,50 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _dlldir                 /usr/share/wine/windows/system
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
+%define                __pkgconfig_provides    %{nil}
+%define                __pkgconfig_requires    %{nil}
 
 %ifnarch %{ix86}
 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
 %define                optflags        -O2
 %endif
-# -z options are invalid for mingw linker
+# -z options are invalid for mingw linker, most of -f options are Linux-specific
 %define                filterout_ld    -Wl,-z,.*
+%define                filterout_c     -f[-a-z0-9=]*
 
 %description
-WebP image codec library.
+WebP image codec libraries.
 
 This package contains the cross version for Win32.
 
 %description -l pl.UTF-8
-Biblioteka kodeka obrazów WebP.
+Biblioteki kodeka obrazów WebP.
 
 Ten pakiet zawiera wersję skrośną dla Win32.
 
 %package static
-Summary:       Static WebP library (cross MinGW32 version)
-Summary(pl.UTF-8):     Statyczna biblioteka WebP (wersja skrośna MinGW32)
+Summary:       Static WebP libraries (cross MinGW32 version)
+Summary(pl.UTF-8):     Statyczne biblioteki WebP (wersja skrośna MinGW32)
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description static
-Static WebP library (cross MinGW32 version).
+Static WebP libraries (cross MinGW32 version).
 
 %description static -l pl.UTF-8
-Statyczna biblioteka WebP (wersja skrośna MinGW32).
+Statyczne biblioteki WebP (wersja skrośna MinGW32).
 
 %package dll
-Summary:       DLL WebP library for Windows
-Summary(pl.UTF-8):     Biblioteka DLL WebP dla Windows
+Summary:       DLL WebP libraries for Windows
+Summary(pl.UTF-8):     Biblioteki DLL WebP dla Windows
 Group:         Applications/Emulators
 Requires:      wine
 
 %description dll
-DLL WebP library for Windows.
+DLL WebP libraries for Windows.
 
 %description dll -l pl.UTF-8
-Biblioteka DLL WebP dla Windows.
+Biblioteki DLL WebP dla Windows.
 
 %prep
 %setup -q -n libwebp-%{version}
@@ -84,19 +88,26 @@ sed -i -e 's/libwebp_la_LDFLAGS.*/& -no-undefined/' src/Makefile.am
 %{__automake}
 %configure \
        --target=%{target} \
-       --host=%{target}
+       --host=%{target} \
+       --disable-silent-rules \
+       --enable-libwebpdemux \
+       --enable-libwebpmux
 
-# -C src to get just the library, no utils
+# only chosen dirs to get just the library, no utils
+%{__make} -C sharpyuv
 %{__make} -C src
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%{__make} -C sharpyuv install \
+       DESTDIR=$RPM_BUILD_ROOT
+
 %{__make} -C src install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_dlldir}
-mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
+%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
 
 %if 0%{!?debug:1}
 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
@@ -108,16 +119,31 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog NEWS PATENTS README
+%doc AUTHORS COPYING ChangeLog NEWS PATENTS README.md
+%{_libdir}/libsharpyuv.dll.a
+%{_libdir}/libsharpyuv.la
 %{_libdir}/libwebp.dll.a
 %{_libdir}/libwebp.la
+%{_libdir}/libwebpdemux.dll.a
+%{_libdir}/libwebpdemux.la
+%{_libdir}/libwebpmux.dll.a
+%{_libdir}/libwebpmux.la
 %{_includedir}/webp
+%{_pkgconfigdir}/libsharpyuv.pc
 %{_pkgconfigdir}/libwebp.pc
+%{_pkgconfigdir}/libwebpdemux.pc
+%{_pkgconfigdir}/libwebpmux.pc
 
 %files static
 %defattr(644,root,root,755)
+%{_libdir}/libsharpyuv.a
 %{_libdir}/libwebp.a
+%{_libdir}/libwebpdemux.a
+%{_libdir}/libwebpmux.a
 
 %files dll
 %defattr(644,root,root,755)
-%{_dlldir}/libwebp-4.dll
+%{_dlldir}/libsharpyuv-0.dll
+%{_dlldir}/libwebp-7.dll
+%{_dlldir}/libwebpmux-3.dll
+%{_dlldir}/libwebpdemux-2.dll
This page took 0.823083 seconds and 4 git commands to generate.