[7397] | 1 | Name: libwebp |
---|
[12380] | 2 | Summary: Library and tools for the WebP graphics format |
---|
| 3 | Summary(ja): WebP 画像フォーマットのためのライブラリとツール |
---|
| 4 | Version: 1.1.0 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[9006] | 6 | Group: System Environment/Libraries |
---|
[12005] | 7 | Vendor: Project Vine |
---|
| 8 | Distribution: Vine Linux |
---|
[12380] | 9 | Packager: iwaim |
---|
[12005] | 10 | |
---|
[7397] | 11 | # Additional IPR is licensed as well. See PATENTS file for details |
---|
| 12 | License: BSD |
---|
[12380] | 13 | URL: https://developers.google.com/speed/webp |
---|
| 14 | Source0: https://github.com/webmproject/libwebp/archive/v%{version}.tar.gz#/libwebp-%{version}.tar.gz |
---|
[12005] | 15 | Source1: libwebp_jni_example.java |
---|
[9006] | 16 | |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: libjpeg-devel |
---|
| 19 | BuildRequires: libpng-devel |
---|
| 20 | BuildRequires: libtool |
---|
[12005] | 21 | BuildRequires: java-1.8.0-openjdk-devel |
---|
| 22 | BuildRequires: jpackage-utils |
---|
[9006] | 23 | BuildRequires: swig |
---|
[12005] | 24 | BuildRequires: freeglut-devel |
---|
[7397] | 25 | |
---|
| 26 | %description |
---|
| 27 | WebP is an image format that does lossy compression of digital |
---|
| 28 | photographic images. WebP consists of a codec based on VP8, and a |
---|
| 29 | container based on RIFF. Webmasters, web developers and browser |
---|
| 30 | developers can use WebP to compress, archive and distribute digital |
---|
| 31 | images more efficiently. |
---|
| 32 | |
---|
| 33 | %package tools |
---|
| 34 | Summary: The WebP command line tools |
---|
[7398] | 35 | Summary(ja): WebP コマンドラインツール |
---|
[9006] | 36 | Group: Development/Tools |
---|
[7397] | 37 | |
---|
| 38 | %description tools |
---|
| 39 | WebP is an image format that does lossy compression of digital |
---|
| 40 | photographic images. WebP consists of a codec based on VP8, and a |
---|
| 41 | container based on RIFF. Webmasters, web developers and browser |
---|
| 42 | developers can use WebP to compress, archive and distribute digital |
---|
| 43 | images more efficiently. |
---|
| 44 | |
---|
| 45 | %package devel |
---|
| 46 | Summary: Development files for libwebp, a library for the WebP format |
---|
[7398] | 47 | Summary(ja): WebP フォーマットのためのライブラリ libwebp の開発ファイル |
---|
[9006] | 48 | Group: Development/Libraries |
---|
[7398] | 49 | Requires: %{name} = %{version}-%{release} |
---|
[7397] | 50 | |
---|
| 51 | %description devel |
---|
| 52 | WebP is an image format that does lossy compression of digital |
---|
| 53 | photographic images. WebP consists of a codec based on VP8, and a |
---|
| 54 | container based on RIFF. Webmasters, web developers and browser |
---|
| 55 | developers can use WebP to compress, archive and distribute digital |
---|
| 56 | images more efficiently. |
---|
| 57 | |
---|
| 58 | %package java |
---|
| 59 | Summary: Java bindings for libwebp, a library for the WebP format |
---|
[7398] | 60 | Summary(ja): WebP フォーマットのためのライブラリ libwebp の Java バインディング |
---|
[9006] | 61 | Group: Development/Libraries |
---|
[7398] | 62 | Requires: %{name} = %{version}-%{release} |
---|
[7397] | 63 | Requires: java |
---|
| 64 | Requires: jpackage-utils |
---|
| 65 | |
---|
| 66 | %description java |
---|
| 67 | Java bindings for libwebp. |
---|
| 68 | |
---|
[7398] | 69 | |
---|
[7397] | 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | |
---|
| 73 | %build |
---|
[12005] | 74 | %global optflags %{optflags} -fPIC |
---|
| 75 | |
---|
[7397] | 76 | mkdir -p m4 |
---|
| 77 | ./autogen.sh |
---|
[12005] | 78 | %configure --disable-static --enable-libwebpmux \ |
---|
| 79 | --enable-libwebpdemux --enable-libwebpdecoder \ |
---|
| 80 | --disable-neon |
---|
[7397] | 81 | make %{?_smp_mflags} |
---|
| 82 | |
---|
| 83 | # swig generated Java bindings |
---|
| 84 | cp %{SOURCE1} . |
---|
| 85 | cd swig |
---|
| 86 | rm -rf libwebp.jar libwebp_java_wrap.c |
---|
| 87 | mkdir -p java/com/google/webp |
---|
| 88 | swig -ignoremissing -I../src -java \ |
---|
[12005] | 89 | -package com.google.webp \ |
---|
| 90 | -outdir java/com/google/webp \ |
---|
| 91 | -o libwebp_java_wrap.c libwebp.swig |
---|
[7397] | 92 | |
---|
[12005] | 93 | gcc %{optflags} -shared \ |
---|
| 94 | -I/usr/lib/jvm/java/include \ |
---|
| 95 | -I/usr/lib/jvm/java/include/linux \ |
---|
| 96 | -I../src \ |
---|
| 97 | -L../src/.libs -lwebp libwebp_java_wrap.c \ |
---|
| 98 | -o libwebp_jni.so |
---|
[7397] | 99 | |
---|
| 100 | cd java |
---|
| 101 | javac com/google/webp/libwebp.java |
---|
| 102 | jar cvf ../libwebp.jar com/google/webp/*.class |
---|
| 103 | |
---|
| 104 | %install |
---|
| 105 | make install DESTDIR=%{buildroot} |
---|
| 106 | find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete |
---|
| 107 | |
---|
| 108 | # swig generated Java bindings |
---|
| 109 | mkdir -p %{buildroot}/%{_libdir}/%{name}-java |
---|
| 110 | cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/ |
---|
| 111 | |
---|
| 112 | %post -n %{name} -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %postun -n %{name} -p /sbin/ldconfig |
---|
| 115 | |
---|
| 116 | %files tools |
---|
| 117 | %{_bindir}/* |
---|
| 118 | %{_mandir}/man*/* |
---|
| 119 | |
---|
| 120 | %files -n %{name} |
---|
[12380] | 121 | %license COPYING PATENTS |
---|
| 122 | %doc README* NEWS AUTHORS |
---|
[7397] | 123 | %{_libdir}/%{name}*.so.* |
---|
| 124 | |
---|
| 125 | %files devel |
---|
| 126 | %{_libdir}/%{name}*.so |
---|
| 127 | %{_includedir}/* |
---|
| 128 | %{_libdir}/pkgconfig/* |
---|
| 129 | |
---|
| 130 | %files java |
---|
| 131 | %doc libwebp_jni_example.java |
---|
| 132 | %{_libdir}/%{name}-java/ |
---|
| 133 | |
---|
| 134 | %changelog |
---|
[12380] | 135 | * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1 |
---|
| 136 | - new upstream release. |
---|
| 137 | |
---|
[12005] | 138 | * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.1-1 |
---|
| 139 | - new upstream release. |
---|
| 140 | |
---|
[9006] | 141 | * Sun Oct 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.1-3 |
---|
| 142 | - moved libwebp to System Environment/Libraries Group |
---|
| 143 | |
---|
[8835] | 144 | * Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.1-2 |
---|
| 145 | - rebuild with libpng-1.6.12 |
---|
| 146 | |
---|
[7891] | 147 | * Sat Oct 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.1-1 |
---|
| 148 | - new upstream release |
---|
| 149 | |
---|
[7398] | 150 | * Sat Jan 12 2013 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1 |
---|
| 151 | - initial build for Vine Linux |
---|
| 152 | |
---|
[7397] | 153 | * Thu Dec 27 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.2.1-1 |
---|
| 154 | - new upstream release 0.2.1 |
---|
| 155 | |
---|
| 156 | * Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.1.3-3 |
---|
| 157 | - rebuild against new libjpeg |
---|
| 158 | |
---|
| 159 | * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2 |
---|
| 160 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 161 | |
---|
| 162 | * Thu Feb 02 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.3-1 |
---|
| 163 | - Several spec improvements by Scott Tsai <scottt.tw@gmail.com> |
---|
| 164 | |
---|
| 165 | * Wed May 25 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.1.2-1 |
---|
| 166 | - Initial spec. Based on openSUSE one |
---|
| 167 | |
---|