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