source: projects/specs/trunk/lib/libw/libwebp/libwebp-vl.spec @ 12380

Revision 12380, 4.9 KB checked in by tomop, 4 years ago (diff)

updated 12 packages

alsa-firmware-1.2.1-1

alsa-lib-1.2.2-1

alsa-tools-1.2.2-1

alsa-utils-1.2.2-1

gstreamer1-1.16.2-1

linux-firmware-20200316-1

libsrtp-2.3.0-1

libvpx-1.8.2-1

libwebp-1.1.0-1

opus-1.3.1-1

pulseaudio-13.0-1

speex-1.2.0-2

Line 
1Name:           libwebp
2Summary:        Library and tools for the WebP graphics format
3Summary(ja):    WebP 画像フォーマットのためのライブラリとツール
4Version:        1.1.0
5Release:        1%{?_dist_release}
6Group:          System Environment/Libraries
7Vendor:         Project Vine
8Distribution:   Vine Linux
9Packager:       iwaim
10
11# Additional IPR is licensed as well. See PATENTS file for details
12License:        BSD
13URL:            https://developers.google.com/speed/webp
14Source0:        https://github.com/webmproject/libwebp/archive/v%{version}.tar.gz#/libwebp-%{version}.tar.gz
15Source1:        libwebp_jni_example.java
16
17BuildRoot:      %{_tmppath}/%{name}-%{version}-root
18BuildRequires:  libjpeg-devel
19BuildRequires:  libpng-devel
20BuildRequires:  libtool
21BuildRequires:  java-1.8.0-openjdk-devel
22BuildRequires:  jpackage-utils
23BuildRequires:  swig
24BuildRequires:  freeglut-devel
25
26%description
27WebP is an image format that does lossy compression of digital
28photographic images. WebP consists of a codec based on VP8, and a
29container based on RIFF. Webmasters, web developers and browser
30developers can use WebP to compress, archive and distribute digital
31images more efficiently.
32
33%package tools
34Summary:        The WebP command line tools
35Summary(ja):    WebP コマンドラインツール
36Group:          Development/Tools
37
38%description tools
39WebP is an image format that does lossy compression of digital
40photographic images. WebP consists of a codec based on VP8, and a
41container based on RIFF. Webmasters, web developers and browser
42developers can use WebP to compress, archive and distribute digital
43images more efficiently.
44
45%package devel
46Summary:        Development files for libwebp, a library for the WebP format
47Summary(ja):    WebP フォーマットのためのライブラリ libwebp の開発ファイル
48Group:          Development/Libraries
49Requires:       %{name} = %{version}-%{release}
50
51%description devel
52WebP is an image format that does lossy compression of digital
53photographic images. WebP consists of a codec based on VP8, and a
54container based on RIFF. Webmasters, web developers and browser
55developers can use WebP to compress, archive and distribute digital
56images more efficiently.
57
58%package java
59Summary:        Java bindings for libwebp, a library for the WebP format
60Summary(ja):    WebP フォーマットのためのライブラリ libwebp の Java バインディング
61Group:          Development/Libraries
62Requires:       %{name} = %{version}-%{release}
63Requires:       java
64Requires:       jpackage-utils
65
66%description java
67Java bindings for libwebp.
68
69
70%prep
71%setup -q
72
73%build
74%global optflags %{optflags} -fPIC
75
76mkdir -p m4
77./autogen.sh
78%configure --disable-static --enable-libwebpmux \
79           --enable-libwebpdemux --enable-libwebpdecoder \
80           --disable-neon
81make %{?_smp_mflags}
82
83# swig generated Java bindings
84cp %{SOURCE1} .
85cd swig
86rm -rf libwebp.jar libwebp_java_wrap.c
87mkdir -p java/com/google/webp
88swig -ignoremissing -I../src -java \
89    -package com.google.webp  \
90    -outdir java/com/google/webp \
91    -o libwebp_java_wrap.c libwebp.swig
92
93gcc %{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
99
100cd java
101javac com/google/webp/libwebp.java
102jar cvf ../libwebp.jar com/google/webp/*.class
103
104%install
105make install DESTDIR=%{buildroot}
106find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
107
108# swig generated Java bindings
109mkdir -p %{buildroot}/%{_libdir}/%{name}-java
110cp 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}
121%license COPYING PATENTS
122%doc README* NEWS AUTHORS
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
135* Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1
136- new upstream release.
137
138* Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.1-1
139- new upstream release.
140
141* Sun Oct 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.1-3
142- moved libwebp to System Environment/Libraries Group
143
144* Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.1-2
145- rebuild with libpng-1.6.12
146
147* Sat Oct 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.3.1-1
148- new upstream release
149
150* Sat Jan 12 2013 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1
151- initial build for Vine Linux
152
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
Note: See TracBrowser for help on using the repository browser.