|
@@ -1,9 +1,11 @@
|
|
|
+%bcond_with java
|
|
|
+
|
|
|
Name: libwebp
|
|
|
Summary: Library and tools for the WebP graphics format
|
|
|
Summary(ja): WebP 画像フォーマットのためのライブラリとツール
|
|
|
-Version: 1.1.0
|
|
|
+Version: 1.2.4
|
|
|
Release: 1%{?_dist_release}
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
Packager: iwaim
|
|
@@ -18,10 +20,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: libjpeg-devel
|
|
|
BuildRequires: libpng-devel
|
|
|
BuildRequires: libtool
|
|
|
+BuildRequires: freeglut-devel
|
|
|
+%if %{with java}
|
|
|
+BuildRequires: swig
|
|
|
BuildRequires: java-1.8.0-openjdk-devel
|
|
|
BuildRequires: jpackage-utils
|
|
|
-BuildRequires: swig
|
|
|
-BuildRequires: freeglut-devel
|
|
|
+%endif
|
|
|
|
|
|
%description
|
|
|
WebP is an image format that does lossy compression of digital
|
|
@@ -30,10 +34,11 @@ container based on RIFF. Webmasters, web developers and browser
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
images more efficiently.
|
|
|
|
|
|
+
|
|
|
%package tools
|
|
|
Summary: The WebP command line tools
|
|
|
Summary(ja): WebP コマンドラインツール
|
|
|
-Group: Development/Tools
|
|
|
+Group: graphics
|
|
|
|
|
|
%description tools
|
|
|
WebP is an image format that does lossy compression of digital
|
|
@@ -42,10 +47,11 @@ container based on RIFF. Webmasters, web developers and browser
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
images more efficiently.
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Development files for libwebp, a library for the WebP format
|
|
|
Summary(ja): WebP フォーマットのためのライブラリ libwebp の開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
@@ -55,21 +61,25 @@ container based on RIFF. Webmasters, web developers and browser
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
images more efficiently.
|
|
|
|
|
|
+
|
|
|
+%if %{with java}
|
|
|
%package java
|
|
|
Summary: Java bindings for libwebp, a library for the WebP format
|
|
|
Summary(ja): WebP フォーマットのためのライブラリ libwebp の Java バインディング
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: java
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
%description java
|
|
|
Java bindings for libwebp.
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
%global optflags %{optflags} -fPIC
|
|
|
|
|
@@ -80,6 +90,7 @@ mkdir -p m4
|
|
|
--disable-neon
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+%if %{with java}
|
|
|
# swig generated Java bindings
|
|
|
cp %{SOURCE1} .
|
|
|
cd swig
|
|
@@ -100,18 +111,19 @@ gcc %{optflags} -shared \
|
|
|
cd java
|
|
|
javac com/google/webp/libwebp.java
|
|
|
jar cvf ../libwebp.jar com/google/webp/*.class
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%install
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
|
|
|
|
|
|
+%if %{with java}
|
|
|
# swig generated Java bindings
|
|
|
mkdir -p %{buildroot}/%{_libdir}/%{name}-java
|
|
|
cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|
|
+%endif
|
|
|
|
|
|
-%post -n %{name} -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -n %{name} -p /sbin/ldconfig
|
|
|
|
|
|
%files tools
|
|
|
%{_bindir}/*
|
|
@@ -127,11 +139,17 @@ cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|
|
%{_includedir}/*
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
+%if %{with java}
|
|
|
%files java
|
|
|
%doc libwebp_jni_example.java
|
|
|
%{_libdir}/%{name}-java/
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Sep 23 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.4-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.0-1
|
|
|
- new upstream release.
|
|
|
|