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