|
|
68bff2 |
%global _hardened_build 1
|
|
|
68bff2 |
|
|
|
68bff2 |
Name: libwebp
|
|
|
68bff2 |
Version: 1.0.0
|
|
|
68bff2 |
Release: 1%{?dist}
|
|
|
68bff2 |
URL: http://webmproject.org/
|
|
|
68bff2 |
Summary: Library and tools for the WebP graphics format
|
|
|
68bff2 |
# Additional IPR is licensed as well. See PATENTS file for details
|
|
|
68bff2 |
License: BSD
|
|
|
68bff2 |
Source0: http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
|
|
|
68bff2 |
Source1: libwebp_jni_example.java
|
|
|
68bff2 |
|
|
|
68bff2 |
BuildRequires: libjpeg-devel
|
|
|
68bff2 |
BuildRequires: libpng-devel
|
|
|
68bff2 |
BuildRequires: giflib-devel
|
|
|
68bff2 |
BuildRequires: libtiff-devel
|
|
|
68bff2 |
BuildRequires: java-devel
|
|
|
68bff2 |
BuildRequires: jpackage-utils
|
|
|
68bff2 |
BuildRequires: swig
|
|
|
68bff2 |
BuildRequires: autoconf automake libtool
|
|
|
68bff2 |
BuildRequires: freeglut-devel
|
|
|
68bff2 |
|
|
|
68bff2 |
%description
|
|
|
68bff2 |
WebP is an image format that does lossy compression of digital
|
|
|
68bff2 |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
68bff2 |
container based on RIFF. Webmasters, web developers and browser
|
|
|
68bff2 |
developers can use WebP to compress, archive and distribute digital
|
|
|
68bff2 |
images more efficiently.
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%package tools
|
|
|
68bff2 |
Summary: The WebP command line tools
|
|
|
68bff2 |
|
|
|
68bff2 |
%description tools
|
|
|
68bff2 |
WebP is an image format that does lossy compression of digital
|
|
|
68bff2 |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
68bff2 |
container based on RIFF. Webmasters, web developers and browser
|
|
|
68bff2 |
developers can use WebP to compress, archive and distribute digital
|
|
|
68bff2 |
images more efficiently.
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%package devel
|
|
|
68bff2 |
Summary: Development files for libwebp, a library for the WebP format
|
|
|
68bff2 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
68bff2 |
|
|
|
68bff2 |
%description devel
|
|
|
68bff2 |
WebP is an image format that does lossy compression of digital
|
|
|
68bff2 |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
68bff2 |
container based on RIFF. Webmasters, web developers and browser
|
|
|
68bff2 |
developers can use WebP to compress, archive and distribute digital
|
|
|
68bff2 |
images more efficiently.
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%package java
|
|
|
68bff2 |
Summary: Java bindings for libwebp, a library for the WebP format
|
|
|
68bff2 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
68bff2 |
Requires: java-headless
|
|
|
68bff2 |
Requires: jpackage-utils
|
|
|
68bff2 |
|
|
|
68bff2 |
%description java
|
|
|
68bff2 |
Java bindings for libwebp.
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%prep
|
|
|
68bff2 |
%autosetup -p1
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%build
|
|
|
68bff2 |
autoreconf -vif
|
|
|
68bff2 |
%ifarch aarch64
|
|
|
68bff2 |
export CFLAGS="%{optflags} -frename-registers"
|
|
|
68bff2 |
%endif
|
|
|
68bff2 |
# Neon disabled due to resulting CFLAGS conflict resulting in
|
|
|
68bff2 |
# inlining failed in call to always_inline '[...]': target specific option mismatch
|
|
|
68bff2 |
%configure --disable-static --enable-libwebpmux \
|
|
|
68bff2 |
--enable-libwebpdemux --enable-libwebpdecoder \
|
|
|
68bff2 |
--disable-neon
|
|
|
68bff2 |
%make_build V=1
|
|
|
68bff2 |
|
|
|
68bff2 |
# swig generated Java bindings
|
|
|
68bff2 |
cp %{SOURCE1} .
|
|
|
68bff2 |
cd swig
|
|
|
68bff2 |
rm -rf libwebp.jar libwebp_java_wrap.c
|
|
|
68bff2 |
mkdir -p java/com/google/webp
|
|
|
68bff2 |
swig -ignoremissing -I../src -java \
|
|
|
68bff2 |
-package com.google.webp \
|
|
|
68bff2 |
-outdir java/com/google/webp \
|
|
|
68bff2 |
-o libwebp_java_wrap.c libwebp.swig
|
|
|
68bff2 |
|
|
|
68bff2 |
gcc %{__global_ldflags} %{optflags} -shared \
|
|
|
68bff2 |
-I/usr/lib/jvm/java/include \
|
|
|
68bff2 |
-I/usr/lib/jvm/java/include/linux \
|
|
|
68bff2 |
-I../src \
|
|
|
68bff2 |
-L../src/.libs -lwebp libwebp_java_wrap.c \
|
|
|
68bff2 |
-o libwebp_jni.so
|
|
|
68bff2 |
|
|
|
68bff2 |
cd java
|
|
|
68bff2 |
javac com/google/webp/libwebp.java
|
|
|
68bff2 |
jar cvf ../libwebp.jar com/google/webp/*.class
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%install
|
|
|
68bff2 |
%make_install
|
|
|
68bff2 |
find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
|
|
|
68bff2 |
|
|
|
68bff2 |
# swig generated Java bindings
|
|
|
68bff2 |
mkdir -p %{buildroot}/%{_libdir}/%{name}-java
|
|
|
68bff2 |
cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%ldconfig_scriptlets
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%files tools
|
|
|
68bff2 |
%{_bindir}/cwebp
|
|
|
68bff2 |
%{_bindir}/dwebp
|
|
|
68bff2 |
%{_bindir}/gif2webp
|
|
|
68bff2 |
%{_bindir}/img2webp
|
|
|
68bff2 |
%{_bindir}/webpinfo
|
|
|
68bff2 |
%{_bindir}/webpmux
|
|
|
68bff2 |
%{_bindir}/vwebp
|
|
|
68bff2 |
%{_mandir}/man*/*
|
|
|
68bff2 |
|
|
|
68bff2 |
%files -n %{name}
|
|
|
68bff2 |
%doc README PATENTS NEWS AUTHORS
|
|
|
68bff2 |
%license COPYING
|
|
|
68bff2 |
%{_libdir}/%{name}.so.7*
|
|
|
68bff2 |
%{_libdir}/%{name}decoder.so.3*
|
|
|
68bff2 |
%{_libdir}/%{name}demux.so.2*
|
|
|
68bff2 |
%{_libdir}/%{name}mux.so.3*
|
|
|
68bff2 |
|
|
|
68bff2 |
%files devel
|
|
|
68bff2 |
%{_libdir}/%{name}*.so
|
|
|
68bff2 |
%{_includedir}/*
|
|
|
68bff2 |
%{_libdir}/pkgconfig/*
|
|
|
68bff2 |
|
|
|
68bff2 |
%files java
|
|
|
68bff2 |
%doc libwebp_jni_example.java
|
|
|
68bff2 |
%{_libdir}/%{name}-java/
|
|
|
68bff2 |
|
|
|
68bff2 |
|
|
|
68bff2 |
%changelog
|
|
|
68bff2 |
* Thu Apr 26 2018 Sandro Mani <manisandro@gmail.com> - 1.0.0-1
|
|
|
68bff2 |
- Update to 1.0.0
|
|
|
68bff2 |
|
|
|
68bff2 |
* Tue Feb 27 2018 Sandro Mani <manisandro@gmail.com> - 0.6.1-8
|
|
|
68bff2 |
- Fix LDFLAGS not passed when building libwebp_jni.so (#1548718)
|
|
|
68bff2 |
|
|
|
68bff2 |
* Mon Feb 26 2018 Sandro Mani <manisandro@gmail.com> - 0.6.1-7
|
|
|
68bff2 |
- More big-endian fixes
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Feb 16 2018 Sandro Mani <manisandro@gmail.com> - 0.6.1-6
|
|
|
68bff2 |
- Backport another big-endian fix
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Feb 16 2018 Sandro Mani <manisandro@gmail.com> - 0.6.1-5
|
|
|
68bff2 |
- Backport upstream big-endian fix
|
|
|
68bff2 |
|
|
|
68bff2 |
* Tue Feb 13 2018 Sandro Mani <manisandro@gmail.com> - 0.6.1-4
|
|
|
68bff2 |
- Rebuild (giflib)
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-2
|
|
|
68bff2 |
- Switch to %%ldconfig_scriptlets
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Nov 30 2017 Sandro Mani <manisandro@gmail.com> - 0.6.1-1
|
|
|
68bff2 |
- Update to 0.6.1
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Feb 01 2017 Sandro Mani <manisandro@gmail.com> - 0.6.0-1
|
|
|
68bff2 |
- Update to 0.6.0
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Dec 22 2016 Sandro Mani <manisandro@gmail.com> - 0.5.2-1
|
|
|
68bff2 |
- Update to 0.5.2
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sat Oct 29 2016 Sandro Mani <manisandro@gmail.com> - 0.5.1-2
|
|
|
68bff2 |
- Backport e2affacc35f1df6cc3b1a9fa0ceff5ce2d0cce83 (CVE-2016-9085, rhbz#1389338)
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Aug 12 2016 Sandro Mani <manisandro@gmail.com> - 0.5.1-1
|
|
|
68bff2 |
- upstream release 0.5.1
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Mon Dec 28 2015 Sandro Mani <manisandro@gmail.com> - 0.5.0-1
|
|
|
68bff2 |
- upstream release 0.5.0
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Oct 30 2015 Sandro Mani <manisandro@gmail.com> - 0.4.4-1
|
|
|
68bff2 |
- upstream release 0.4.4
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-3
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Mar 27 2015 Sandro Mani <manisandro@gmail.com> - 0.4.3-2
|
|
|
68bff2 |
- Add BuildRequires: freeglut-devel to build vwebp
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Mar 12 2015 Sandro Mani <manisandro@gmail.com> - 0.4.3-1
|
|
|
68bff2 |
- upstream release 0.4.3
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Oct 17 2014 Sandro Mani <manisandro@gmail.com> - 0.4.2-1
|
|
|
68bff2 |
- upstream release 0.4.2
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Aug 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.4.1-2
|
|
|
68bff2 |
- Use frename-registers cflag to fix FTBFS on aarch64
|
|
|
68bff2 |
|
|
|
68bff2 |
* Tue Aug 05 2014 Sandro Mani <manisandro@gmail.com> - 0.4.1-1
|
|
|
68bff2 |
- upstream release 0.4.1
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Tue Apr 08 2014 Jaromir Capik <jcapik@redhat.com> - 0.4.0-3
|
|
|
68bff2 |
- Fixing endian checks (#962091)
|
|
|
68bff2 |
- Fixing FTPBS caused by rpath presence
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 0.4.0-2
|
|
|
68bff2 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Jan 02 2014 Sandro Mani <manisandro@gmail.com> - 0.4.0-1
|
|
|
68bff2 |
- upstream release 0.4.0
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed Oct 02 2013 Sandro Mani <manisandro@gmail.com> - 0.3.1-2
|
|
|
68bff2 |
- enable webpdemux
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sun Aug 04 2013 Sandro Mani <manisandro@gmail.com> - 0.3.1-1
|
|
|
68bff2 |
- upstream release 0.3.1
|
|
|
68bff2 |
|
|
|
68bff2 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Mon May 13 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 0.3.0-1
|
|
|
68bff2 |
- upstream release 0.3.0
|
|
|
68bff2 |
- enable gif2webp
|
|
|
68bff2 |
- add build requires on giflib-devel and libtiff-devel
|
|
|
68bff2 |
- use make_install and hardened macros
|
|
|
68bff2 |
- list binaries explicitly
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.1-2
|
|
|
68bff2 |
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Dec 27 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.2.1-1
|
|
|
68bff2 |
- new upstream release 0.2.1
|
|
|
68bff2 |
|
|
|
68bff2 |
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.1.3-3
|
|
|
68bff2 |
- rebuild against new libjpeg
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
|
68bff2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
68bff2 |
|
|
|
68bff2 |
* Thu Feb 02 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.3-1
|
|
|
68bff2 |
- Several spec improvements by Scott Tsai <scottt.tw@gmail.com>
|
|
|
68bff2 |
|
|
|
68bff2 |
* Wed May 25 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.2-1
|
|
|
68bff2 |
- Initial spec. Based on openSUSE one
|