|
|
4fe54c |
%global _hardened_build 1
|
|
|
4fe54c |
Name: libwebp
|
|
|
4fe54c |
Version: 0.3.0
|
|
|
4fe54c |
Release: 1%{?dist}
|
|
|
4fe54c |
Group: Development/Libraries
|
|
|
4fe54c |
URL: http://webmproject.org/
|
|
|
4fe54c |
Summary: Library and tools for the WebP graphics format
|
|
|
4fe54c |
# Additional IPR is licensed as well. See PATENTS file for details
|
|
|
4fe54c |
License: BSD
|
|
|
4fe54c |
Source0: http://webp.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
4fe54c |
Source1: libwebp_jni_example.java
|
|
|
4fe54c |
BuildRequires: libjpeg-devel libpng-devel libtool swig
|
|
|
4fe54c |
BuildRequires: giflib-devel
|
|
|
4fe54c |
BuildRequires: libtiff-devel
|
|
|
4fe54c |
BuildRequires: java-devel
|
|
|
4fe54c |
BuildRequires: jpackage-utils
|
|
|
4fe54c |
|
|
|
4fe54c |
%description
|
|
|
4fe54c |
WebP is an image format that does lossy compression of digital
|
|
|
4fe54c |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
4fe54c |
container based on RIFF. Webmasters, web developers and browser
|
|
|
4fe54c |
developers can use WebP to compress, archive and distribute digital
|
|
|
4fe54c |
images more efficiently.
|
|
|
4fe54c |
|
|
|
4fe54c |
%package tools
|
|
|
4fe54c |
Group: Development/Tools
|
|
|
4fe54c |
Summary: The WebP command line tools
|
|
|
4fe54c |
|
|
|
4fe54c |
%description tools
|
|
|
4fe54c |
WebP is an image format that does lossy compression of digital
|
|
|
4fe54c |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
4fe54c |
container based on RIFF. Webmasters, web developers and browser
|
|
|
4fe54c |
developers can use WebP to compress, archive and distribute digital
|
|
|
4fe54c |
images more efficiently.
|
|
|
4fe54c |
|
|
|
4fe54c |
%package devel
|
|
|
4fe54c |
Group: Development/Libraries
|
|
|
4fe54c |
Summary: Development files for libwebp, a library for the WebP format
|
|
|
4fe54c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4fe54c |
|
|
|
4fe54c |
%description devel
|
|
|
4fe54c |
WebP is an image format that does lossy compression of digital
|
|
|
4fe54c |
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
4fe54c |
container based on RIFF. Webmasters, web developers and browser
|
|
|
4fe54c |
developers can use WebP to compress, archive and distribute digital
|
|
|
4fe54c |
images more efficiently.
|
|
|
4fe54c |
|
|
|
4fe54c |
%package java
|
|
|
4fe54c |
Group: Development/Libraries
|
|
|
4fe54c |
Summary: Java bindings for libwebp, a library for the WebP format
|
|
|
4fe54c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4fe54c |
Requires: java
|
|
|
4fe54c |
Requires: jpackage-utils
|
|
|
4fe54c |
|
|
|
4fe54c |
%description java
|
|
|
4fe54c |
Java bindings for libwebp.
|
|
|
4fe54c |
|
|
|
4fe54c |
%prep
|
|
|
4fe54c |
%setup -q
|
|
|
4fe54c |
|
|
|
4fe54c |
%build
|
|
|
4fe54c |
mkdir -p m4
|
|
|
4fe54c |
./autogen.sh
|
|
|
4fe54c |
# enable libwebpmux since gif2webp depends on it
|
|
|
4fe54c |
%configure --disable-static --enable-libwebpmux
|
|
|
4fe54c |
make %{?_smp_mflags}
|
|
|
4fe54c |
|
|
|
4fe54c |
# swig generated Java bindings
|
|
|
4fe54c |
cp %{SOURCE1} .
|
|
|
4fe54c |
cd swig
|
|
|
4fe54c |
rm -rf libwebp.jar libwebp_java_wrap.c
|
|
|
4fe54c |
mkdir -p java/com/google/webp
|
|
|
4fe54c |
swig -ignoremissing -I../src -java \
|
|
|
4fe54c |
-package com.google.webp \
|
|
|
4fe54c |
-outdir java/com/google/webp \
|
|
|
4fe54c |
-o libwebp_java_wrap.c libwebp.i
|
|
|
4fe54c |
|
|
|
4fe54c |
gcc %{optflags} -shared \
|
|
|
4fe54c |
-I/usr/lib/jvm/java/include \
|
|
|
4fe54c |
-I/usr/lib/jvm/java/include/linux \
|
|
|
4fe54c |
-I../src \
|
|
|
4fe54c |
-L../src/.libs -lwebp libwebp_java_wrap.c \
|
|
|
4fe54c |
-o libwebp_jni.so
|
|
|
4fe54c |
|
|
|
4fe54c |
cd java
|
|
|
4fe54c |
javac com/google/webp/libwebp.java
|
|
|
4fe54c |
jar cvf ../libwebp.jar com/google/webp/*.class
|
|
|
4fe54c |
|
|
|
4fe54c |
%install
|
|
|
4fe54c |
%make_install
|
|
|
4fe54c |
find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
|
|
|
4fe54c |
|
|
|
4fe54c |
# swig generated Java bindings
|
|
|
4fe54c |
mkdir -p %{buildroot}/%{_libdir}/%{name}-java
|
|
|
4fe54c |
cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|
|
4fe54c |
|
|
|
4fe54c |
%post -n %{name} -p /sbin/ldconfig
|
|
|
4fe54c |
|
|
|
4fe54c |
%postun -n %{name} -p /sbin/ldconfig
|
|
|
4fe54c |
|
|
|
4fe54c |
%files tools
|
|
|
4fe54c |
%{_bindir}/cwebp
|
|
|
4fe54c |
%{_bindir}/dwebp
|
|
|
4fe54c |
%{_bindir}/gif2webp
|
|
|
4fe54c |
%{_bindir}/webpmux
|
|
|
4fe54c |
%{_mandir}/man*/*
|
|
|
4fe54c |
|
|
|
4fe54c |
%files -n %{name}
|
|
|
4fe54c |
%doc README PATENTS COPYING NEWS AUTHORS
|
|
|
4fe54c |
%{_libdir}/%{name}*.so.*
|
|
|
4fe54c |
|
|
|
4fe54c |
%files devel
|
|
|
4fe54c |
%{_libdir}/%{name}*.so
|
|
|
4fe54c |
%{_includedir}/*
|
|
|
4fe54c |
%{_libdir}/pkgconfig/*
|
|
|
4fe54c |
|
|
|
4fe54c |
%files java
|
|
|
4fe54c |
%doc libwebp_jni_example.java
|
|
|
4fe54c |
%{_libdir}/%{name}-java/
|
|
|
4fe54c |
|
|
|
4fe54c |
%changelog
|
|
|
4fe54c |
* Mon May 13 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 0.3.0-1
|
|
|
4fe54c |
- upstream release 0.3.0
|
|
|
4fe54c |
- enable gif2webp
|
|
|
4fe54c |
- add build requires on giflib-devel and libtiff-devel
|
|
|
4fe54c |
- use make_install and hardened macros
|
|
|
4fe54c |
- list binaries explicitly
|
|
|
4fe54c |
|
|
|
4fe54c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
|
|
|
4fe54c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4fe54c |
|
|
|
4fe54c |
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.1-2
|
|
|
4fe54c |
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
4fe54c |
|
|
|
4fe54c |
* Thu Dec 27 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.2.1-1
|
|
|
4fe54c |
- new upstream release 0.2.1
|
|
|
4fe54c |
|
|
|
4fe54c |
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.1.3-3
|
|
|
4fe54c |
- rebuild against new libjpeg
|
|
|
4fe54c |
|
|
|
4fe54c |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
|
|
|
4fe54c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4fe54c |
|
|
|
4fe54c |
* Thu Feb 02 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.3-1
|
|
|
4fe54c |
- Several spec improvements by Scott Tsai <scottt.tw@gmail.com>
|
|
|
4fe54c |
|
|
|
4fe54c |
* Wed May 25 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.2-1
|
|
|
4fe54c |
- Initial spec. Based on openSUSE one
|
|
|
4fe54c |
|