2011-08-11 12:12:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package libwebp
|
|
|
|
#
|
2023-06-21 12:55:23 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-08-11 12:12:12 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-10-13 22:55:08 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-11 12:12:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libwebp
|
2023-05-03 09:57:40 +02:00
|
|
|
Version: 1.3.0
|
2012-02-10 17:17:40 +01:00
|
|
|
Release: 0
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: Library and tools for the WebP graphics format
|
2012-02-10 17:17:40 +01:00
|
|
|
License: BSD-3-Clause
|
2013-06-28 16:04:21 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-01-30 12:35:11 +01:00
|
|
|
URL: https://developers.google.com/speed/webp/
|
|
|
|
#Git-Clone: https://chromium.googlesource.com/webm/libwebp/
|
2021-10-13 22:58:26 +02:00
|
|
|
Source: https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-%version.tar.gz
|
|
|
|
Source2: https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-%version.tar.gz.asc
|
|
|
|
Source3: %name.keyring
|
2015-03-29 14:57:03 +02:00
|
|
|
Source4: baselibs.conf
|
2023-06-21 12:55:23 +02:00
|
|
|
|
|
|
|
# PATCH-FIX-UPSTREAM libwebp-double-free.patch bsc#1210212 CVE-2023-1999 xwang@suse.com -- Avoid a double free
|
|
|
|
Patch0: libwebp-double-free.patch
|
|
|
|
|
2013-06-28 16:04:21 +02:00
|
|
|
BuildRequires: giflib-devel
|
2021-10-13 22:55:08 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(glut)
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently.
|
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%package tools
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: The WebP command line tools
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
#O/P added in 12.2
|
2021-10-13 22:58:26 +02:00
|
|
|
Obsoletes: webp-tools < %version-%release
|
|
|
|
Provides: webp-tools = %version-%release
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%description tools
|
2011-08-11 12:11:59 +02:00
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently.
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%package -n libwebp7
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: Library for the WebP graphics format
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: System/Libraries
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%description -n libwebp7
|
2011-08-11 12:11:59 +02:00
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently.
|
|
|
|
|
2016-02-11 17:01:17 +01:00
|
|
|
%package -n libwebpdemux2
|
2013-06-28 16:04:21 +02:00
|
|
|
Summary: Library for extraction of data and images from WebP container files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-02-11 17:01:17 +01:00
|
|
|
%description -n libwebpdemux2
|
2013-06-28 16:04:21 +02:00
|
|
|
The WebP Demux API enables extraction of images and extended format
|
|
|
|
data from WebP files. This API currently supports reading of XMP/EXIF
|
|
|
|
metadata, ICC profile and animated images.
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%package -n libwebpmux3
|
2013-06-28 16:04:21 +02:00
|
|
|
Summary: Library for reading/adding data to WebP container files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%description -n libwebpmux3
|
2013-06-28 16:04:21 +02:00
|
|
|
The WebP Mux API contains methods for adding data to and reading data
|
|
|
|
from WebP files. This API currently supports XMP/EXIF metadata, ICC
|
|
|
|
profile and animation.
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%package -n libwebpdecoder3
|
2014-10-28 10:32:15 +01:00
|
|
|
Summary: Library for decoding WebP graphics format
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%description -n libwebpdecoder3
|
2014-10-28 10:32:15 +01:00
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently.
|
|
|
|
|
2023-05-03 09:57:40 +02:00
|
|
|
%package -n libsharpyuv0
|
|
|
|
Summary: Library for sharpening YUV option in WebP
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libsharpyuv0
|
|
|
|
Library that provides the sharpening YUV option for better WebP images.
|
|
|
|
|
2016-02-11 17:01:17 +01:00
|
|
|
%package -n libwebpextras0
|
|
|
|
Summary: Library for decoding WebP graphics format
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libwebpextras0
|
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently. This package contains shared libraries for less
|
|
|
|
common imports - WebPImportGray/WebPImportRGB565/WebPImportRGB4444.
|
|
|
|
|
2011-08-11 12:11:59 +02:00
|
|
|
%package devel
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: Development files for libwebp, a library for the WebP format
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-06-21 12:55:23 +02:00
|
|
|
Requires: libsharpyuv0 = %version
|
2021-10-13 22:58:26 +02:00
|
|
|
Requires: libwebp7 = %version
|
|
|
|
Requires: libwebpdecoder3 = %version
|
|
|
|
Requires: libwebpdemux2 = %version
|
|
|
|
Requires: libwebpmux3 = %version
|
2018-04-28 11:43:45 +02:00
|
|
|
%if %{with extras}
|
2021-10-13 22:58:26 +02:00
|
|
|
Requires: libwebpextras0 = %version
|
2018-04-28 11:43:45 +02:00
|
|
|
%endif
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
WebP is an image format that does lossy compression of digital
|
|
|
|
photographic images. WebP consists of a codec based on VP8, and a
|
|
|
|
container based on RIFF. Webmasters, web developers and browser
|
|
|
|
developers can use WebP to compress, archive and distribute digital
|
|
|
|
images more efficiently.
|
|
|
|
|
|
|
|
%prep
|
2019-08-24 15:50:45 +02:00
|
|
|
%autosetup -p1
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%build
|
2016-02-11 17:02:34 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
--enable-libwebpmux --enable-libwebpdemux \
|
|
|
|
--enable-libwebpdecoder --enable-libwebpextras
|
2021-01-30 12:35:11 +01:00
|
|
|
%make_build
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%install
|
2015-03-29 14:57:03 +02:00
|
|
|
%make_install
|
2021-10-13 22:58:26 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%post -n libwebp7 -p /sbin/ldconfig
|
|
|
|
%postun -n libwebp7 -p /sbin/ldconfig
|
2016-02-11 17:01:17 +01:00
|
|
|
%post -n libwebpdemux2 -p /sbin/ldconfig
|
|
|
|
%postun -n libwebpdemux2 -p /sbin/ldconfig
|
2018-04-28 11:43:45 +02:00
|
|
|
%post -n libwebpmux3 -p /sbin/ldconfig
|
|
|
|
%postun -n libwebpmux3 -p /sbin/ldconfig
|
|
|
|
%post -n libwebpdecoder3 -p /sbin/ldconfig
|
|
|
|
%postun -n libwebpdecoder3 -p /sbin/ldconfig
|
2023-05-03 09:57:40 +02:00
|
|
|
%post -n libsharpyuv0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsharpyuv0 -p /sbin/ldconfig
|
2016-02-11 17:01:17 +01:00
|
|
|
%post -n libwebpextras0 -p /sbin/ldconfig
|
|
|
|
%postun -n libwebpextras0 -p /sbin/ldconfig
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%files -n libwebp-tools
|
2021-10-13 22:58:26 +02:00
|
|
|
%_bindir/*
|
|
|
|
%_mandir/man*/*
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%files -n libwebp7
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebp.so.*
|
2016-02-11 17:01:17 +01:00
|
|
|
|
|
|
|
%files -n libwebpdemux2
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebpdemux.so.*
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%files -n libwebpmux3
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebpmux.so.*
|
2013-06-28 16:04:21 +02:00
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%files -n libwebpdecoder3
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebpdecoder.so.*
|
2013-06-28 16:04:21 +02:00
|
|
|
|
2023-05-03 09:57:40 +02:00
|
|
|
%files -n libsharpyuv0
|
|
|
|
%_libdir/libsharpyuv.so.*
|
|
|
|
|
2018-04-28 11:43:45 +02:00
|
|
|
%if %{with extras}
|
2016-02-11 17:01:17 +01:00
|
|
|
%files -n libwebpextras0
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebpextras.so.*
|
2018-04-28 11:43:45 +02:00
|
|
|
%endif
|
2014-10-28 10:32:15 +01:00
|
|
|
|
2011-08-11 12:11:59 +02:00
|
|
|
%files devel
|
2021-10-13 22:58:26 +02:00
|
|
|
%_libdir/libwebp*.so
|
2023-05-03 09:57:40 +02:00
|
|
|
%_libdir/libsharpyuv.so
|
2021-10-13 22:58:26 +02:00
|
|
|
%_includedir/webp/
|
|
|
|
%_libdir/pkgconfig/libwebp*.pc
|
2023-05-03 09:57:40 +02:00
|
|
|
%_libdir/pkgconfig/libsharpyuv.pc
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%changelog
|