libwebp/libwebp.spec

163 lines
4.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:59:03 -04:00
Name: libwebp
2023-09-15 22:42:22 +08:00
Version: 1.3.2
Release: 3
2023-09-15 22:42:22 +08:00
URL: https://www.webmproject.org
2019-09-30 10:59:03 -04:00
Summary: Library and tools for the WebP graphics format
License: BSD
2020-09-10 14:38:05 +08:00
Source0: http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
2019-09-30 10:59:03 -04:00
2020-05-11 22:40:30 +08:00
Patch6000: libwebp-freeglut.patch
2023-09-26 14:00:03 +08:00
Patch6001: backport-0001-CVE-2023-4863.patch
2020-03-13 22:25:17 +08:00
2019-09-30 10:59:03 -04:00
BuildRequires: libjpeg-devel libpng-devel giflib-devel libtiff-devel
BuildRequires: java-devel jpackage-utils swig freeglut-devel
BuildRequires: autoconf automake libtool
%description
This 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.
%package tools
Summary: The WebP command line tools
%description tools
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.
%package devel
Summary: Development files for libwebp
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for libwebp, a library for the WebP format
%package java
Summary: Java bindings for libwebp, a library for the WebP format
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: java-headless jpackage-utils
%description java
Java bindings for libwebp.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2020-01-11 21:20:03 +08:00
2019-09-30 10:59:03 -04:00
%build
autoreconf -vif
%ifarch aarch64
export CFLAGS="%{optflags} -frename-registers"
%endif
%configure --enable-libwebpmux --enable-libwebpdemux \
--enable-libwebpdecoder --disable-neon
%make_build
cd swig
rm -rf libwebp.jar libwebp_java_wrap.c
install -d java/com/google/webp
swig -ignoremissing -I../src -java \
-package com.google.webp \
-outdir java/com/google/webp \
-o libwebp_java_wrap.c libwebp.swig
%{__cc} %{__global_ldflags} %{optflags} -shared \
2019-09-30 10:59:03 -04:00
-I/usr/lib/jvm/java/include \
-I/usr/lib/jvm/java/include/linux \
-I../src \
-L../src/.libs -lwebp libwebp_java_wrap.c \
-o libwebp_jni.so
cd java
javac com/google/webp/libwebp.java
jar cvf ../libwebp.jar com/google/webp/*.class
%install
%make_install
install -d %{buildroot}/%{_libdir}/%{name}-java
cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
%delete_la
%ldconfig_scriptlets
%files tools
%defattr(-,root,root)
%{_bindir}/*
%files -n %{name}
%defattr(-,root,root)
2023-02-03 03:31:20 +00:00
%doc README.md AUTHORS
2019-09-30 10:59:03 -04:00
%license COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/%{name}*.so
2023-02-03 03:31:20 +00:00
%{_libdir}/libsharpyuv.so
2019-09-30 10:59:03 -04:00
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%files java
%defattr(-,root,root)
%{_libdir}/%{name}-java/
%files help
%defattr(-,root,root)
%doc NEWS PATENTS
%{_mandir}/man*/*
%changelog
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> - 1.3.2-3
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
2023-09-26 14:00:03 +08:00
* Tue Sep 26 2023 liweigang <liweiganga@uniontech.com> - 1.3.2-2
- backport CVE-2023-4863
2023-09-15 22:42:22 +08:00
* Fri Sep 15 2023 Funda Wang <fundawang@yeah.net> - 1.3.2-1
- update to 1.3.2
2023-07-21 10:58:01 +08:00
* Fri Jul 21 2023 zhangpan <zhangpan103@h-partners.com> - 1.3.1-1
- update to 1.3.1
2023-05-26 01:40:03 +00:00
* Fri May 26 2023 zhangpan <zhangpan103@h-partners.com> - 1.3.0-2
- fix CVE-2023-1999
2023-02-03 03:31:20 +00:00
* Fri Feb 03 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 1.3.0-1
- update to 1.3.0
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.2.1-2
- Rebuild for next release
2021-12-01 10:14:19 +08:00
* Wed Dec 01 2021 wangkerong <wangkerong@huawei.com> - 1.2.1-1
- update to 1.2.1
2020-12-16 16:54:03 +08:00
* Wed Dec 16 2020 hanhui <hanhui15@huawei.com> - 1.1.0-3
- modify url
2020-09-10 14:38:05 +08:00
* Thu Sep 10 2020 zhanzhimin <zhanzhimin@huawei.com> - 1.1.0-2
- update Source
2020-05-11 22:40:30 +08:00
* Wed Apr 15 2020 fengtao<fengtao40@huawei.com> - 1.1.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 1.1.0
2020-03-13 22:25:17 +08:00
* Fri Mar 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0.0-5
- fix fuzz
2020-01-11 21:20:03 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0.0-4
- delete unused patch
2019-09-30 10:59:03 -04:00
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.0-3
- Package init