jasper/jasper.spec

119 lines
2.9 KiB
RPMSpec
Raw Normal View History

2020-06-18 09:18:04 +08:00
Name: jasper
2024-02-07 16:36:15 +08:00
Version: 4.1.0
Release: 3
2020-06-18 09:18:04 +08:00
Summary: Reference implementation of the codec specified in the JPEG-2000 standard, Part 1
2024-02-05 08:44:34 +08:00
License: JasPer-2.0
2020-06-18 09:18:04 +08:00
URL: http://www.ece.uvic.ca/~frodo/jasper/
2024-02-07 16:36:15 +08:00
Source0: https://github.com/jasper-software/%{name}/archive/refs/tags/version-%{version}.tar.gz
Patch0001: jasper-4.1.0-rpath.patch
2024-03-25 16:42:33 +08:00
Patch0002: backport_CVE-2023-51257.patch
2020-06-18 09:18:04 +08:00
BuildRequires: cmake freeglut-devel libGLU-devel libjpeg-devel libXmu-devel libXi-devel
BuildRequires: pkgconfig doxygen mesa-libGL-devel git
2020-06-18 09:18:04 +08:00
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
2024-03-25 16:42:33 +08:00
%autosetup -n %{name}-version-%{version} -p1 -S git
2020-06-18 09:18:04 +08:00
%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
2024-02-07 16:36:15 +08:00
%doc COPYRIGHT.txt LICENSE.txt
2020-06-18 09:18:04 +08:00
%{_bindir}/imgcmp
%{_bindir}/imginfo
%{_bindir}/jasper
%{_docdir}/JasPer/*
2024-02-07 16:36:15 +08:00
%{_libdir}/libjasper.so.7*
2020-06-18 09:18:04 +08:00
%files devel
%doc doc/*
%{_includedir}/jasper/
%{_libdir}/pkgconfig/jasper.pc
%{_libdir}/libjasper.so
%files utils
%{_bindir}/jiv
%files help
%{_mandir}/man1/*
2024-02-07 16:36:15 +08:00
%doc README.md
2020-06-18 09:18:04 +08:00
%changelog
* Wed Mar 27 2024 panchenbo <panchenbo@kylinsec.com.cn> - 4.1.0-3
- fix rpmbuild build error : add BuildRequires: git
2024-03-25 16:42:33 +08:00
* Mon Mar 25 2024 licihua <licihua@huawei.com> - 4.1.0-2
- Fix CVE-2023-51257
2024-02-07 16:36:15 +08:00
* Wed Feb 7 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.1.0-1
- Upgrade to version 4.1.0
2024-02-05 08:44:34 +08:00
* Mon Feb 5 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2.0.14-11
- Fix obs compile failure
2021-09-08 15:26:51 +08:00
* Wed Sep 8 2021 liwu <liwu13@huawei.com> - 2.0.14-10
- fix CVE-2021-27845
2020-09-17 11:02:01 +08:00
* 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
2020-06-18 09:18:04 +08:00
* Wed Apr 22 2020 leiju <leiju4@huawei.com> - 2.0.14-8
- Package init