jasper/jasper.spec
2021-09-08 15:26:51 +08:00

119 lines
3.0 KiB
RPMSpec

Name: jasper
Version: 2.0.14
Release: 10
Summary: Reference implementation of the codec specified in the JPEG-2000 standard, Part 1
License: JasPer
URL: http://www.ece.uvic.ca/~frodo/jasper/
Source0: http://www.ece.uvic.ca/~frodo/jasper/software/jasper-%{version}.tar.gz
Patch0001: jasper-2.0.14-CVE-2016-9396.patch
Patch0002: jasper-2.0.14-rpath.patch
Patch0003: CVE-2018-9055.patch
Patch0004: CVE-2018-9154.patch
Patch0005: CVE-2018-9252.patch
Patch0006: CVE-2018-18873.patch
Patch0007: CVE-2018-19139.patch
Patch0008: CVE-2018-19539.patch
Patch0009: CVE-2018-19540.patch
Patch0010: CVE-2018-19541.patch
Patch0011: CVE-2018-20570.patch
Patch0012: CVE-2018-20622.patch
Patch0013: CVE-2021-27845.patch
BuildRequires: cmake freeglut-devel libGLU-devel libjpeg-devel libXmu-devel libXi-devel
BuildRequires: pkgconfig doxygen mesa-libGL-devel
Provides: jasper-libs = %{version}-%{release}
Obsoletes: jasper-libs < %{version}-%{release}
Conflicts: jasper < 1.900.1-4
%description
The JasPer Project is an open-source initiative to provide a free software-based reference
implementation of the codec specified in the JPEG-2000 Part-1 standard.
%package devel
Summary: Development files for jasper
Provides: libjasper-devel = %{version}-%{release}
Requires: %{name} = %{version}-%{release} libjpeg-devel pkgconfig
%description devel
Development files for jasper.
%package utils
Summary: Nonessential utilities of jasper
Requires: %{name} = %{version}-%{release}
%description utils
Nonessential utilities of jasper, including jiv and tmrdemo.
%package help
Summary: Help documents for jasper
%description help
Help documents for jasper.
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
install -d builder
cd builder
%cmake .. -DJAS_ENABLE_DOC:BOOL=OFF
cd -
%make_build -C builder
%install
make install/fast DESTDIR=%{buildroot} -C builder
%delete_la
%check
make test -C builder
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc COPYRIGHT LICENSE
%{_bindir}/imgcmp
%{_bindir}/imginfo
%{_bindir}/jasper
%{_docdir}/JasPer/*
%{_libdir}/libjasper.so.4*
%files devel
%doc doc/*
%{_includedir}/jasper/
%{_libdir}/pkgconfig/jasper.pc
%{_libdir}/libjasper.so
%exclude %{_docdir}/README
%files utils
%{_bindir}/jiv
%files help
%{_mandir}/man1/*
%doc README
%changelog
* Wed Sep 8 2021 liwu <liwu13@huawei.com> - 2.0.14-10
- fix CVE-2021-27845
* Wed Sep 16 2020 wutao <wutao61@huawei.com> - 2.0.14-9
- fix folllowing CVE in this revision
CVE-2018-18873
CVE-2018-19541
CVE-2018-9055
CVE-2018-9154
CVE-2018-19539
CVE-2018-20570
CVE-2018-9252
CVE-2018-19540
CVE-2018-20622
CVE-2018-19139
* Wed Apr 22 2020 leiju <leiju4@huawei.com> - 2.0.14-8
- Package init