Browse Source

libwebp-1.2.4-1

Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
9c38f5e7d6
1 changed files with 28 additions and 10 deletions
  1. 28 10
      lib/libw/libwebp/libwebp-vl.spec

+ 28 - 10
lib/libw/libwebp/libwebp-vl.spec

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