2011-02-02 10:43:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package openjpeg2
|
|
|
|
#
|
Accepting request 523789 from home:hpjansson:openjpeg2-cve-factory
Add security fixes:
openjpeg2-CVE-2016-10504.patch (CVE-2016-10504, bsc#1056351),
openjpeg2-CVE-2016-10505.patch (CVE-2016-10505, bsc#1056363),
openjpeg2-CVE-2016-10506.patch (CVE-2016-10506, bsc#1056396),
openjpeg2-CVE-2017-12982.patch (CVE-2017-12982, bsc#1054696),
openjpeg2-CVE-2017-14039.patch (CVE-2017-14039, CVE-2017-14164,
bsc#1056622, bsc#1057511),
openjpeg2-CVE-2017-14040.patch (CVE-2017-14040, bsc#1056621),
openjpeg2-CVE-2017-14041.patch (CVE-2017-14041, bsc#1056562),
openjpeg2-CVE-2017-14151.patch (CVE-2017-14151, bsc#1057336),
openjpeg2-CVE-2017-14152.patch (CVE-2017-14152, bsc#1057335),
most of which are critical, including heap and stack overwrites,
over-reads and division by zero errors.
OBS-URL: https://build.opensuse.org/request/show/523789
OBS-URL: https://build.opensuse.org/package/show/graphics/openjpeg2?expand=0&rev=28
2017-09-13 14:11:10 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-11-25 19:08:32 +00: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
|
2013-11-12 20:38:35 +00:00
|
|
|
# license for the pristine package is not an Open Source License, in which
|
2012-11-25 19:08:32 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-11-12 20:38:35 +00:00
|
|
|
#
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2014-02-18 07:24:25 +00:00
|
|
|
|
2014-05-09 14:20:36 +00:00
|
|
|
%define library_name libopenjp2-7
|
2017-10-25 09:02:18 +00:00
|
|
|
%define base_version 2.3
|
|
|
|
|
2015-09-04 13:50:53 +00:00
|
|
|
Name: openjpeg2
|
2017-10-25 09:02:18 +00:00
|
|
|
Version: 2.3.0
|
2013-11-12 20:38:35 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Opensource JPEG 2000 Codec Implementation
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
Url: http://www.openjpeg.org/
|
2016-12-19 10:02:49 +00:00
|
|
|
Source0: https://github.com/uclouvain/openjpeg/archive/v%{version}.tar.gz#/openjpeg-%{version}.tar.gz
|
2015-10-19 09:40:27 +00:00
|
|
|
Source1: baselibs.conf
|
2017-10-25 09:02:18 +00:00
|
|
|
Patch1: install-fix.patch
|
2014-05-25 18:09:51 +00:00
|
|
|
BuildRequires: cmake > 2.8.2
|
2014-02-18 07:24:25 +00:00
|
|
|
BuildRequires: doxygen
|
2011-02-02 10:43:52 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-25 09:02:18 +00:00
|
|
|
BuildRequires: gcc-c++
|
2015-12-08 15:23:02 +00:00
|
|
|
BuildRequires: pkg-config
|
2013-11-27 22:00:01 +00:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
2014-02-18 07:24:25 +00:00
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2013-11-12 20:38:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%description
|
2013-11-12 20:38:35 +00:00
|
|
|
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
|
|
|
|
It has been developed in order to promote the use of JPEG 2000, the new
|
|
|
|
still-image compression standard from the Joint Photographic Experts Group
|
|
|
|
(JPEG).
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
This package provides the codec executables.
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
%package -n %{library_name}
|
|
|
|
Summary: Opensource JPEG 2000 Codec Implementation
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{library_name}
|
|
|
|
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
|
|
|
|
It has been developed in order to promote the use of JPEG 2000, the new
|
|
|
|
still-image compression standard from the Joint Photographic Experts Group
|
|
|
|
(JPEG).
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
2013-11-12 20:38:35 +00:00
|
|
|
Requires: %{library_name} = %{version}
|
2013-11-27 22:00:01 +00:00
|
|
|
Recommends: %{name} = %{version}
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%description devel
|
2013-11-12 20:38:35 +00:00
|
|
|
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
|
|
|
|
It has been developed in order to promote the use of JPEG 2000, the new
|
|
|
|
still-image compression standard from the Joint Photographic Experts Group
|
|
|
|
(JPEG).
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
This package provides the development files for %{name}.
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%prep
|
2012-11-25 19:08:32 +00:00
|
|
|
%setup -q -n openjpeg-%{version}
|
2013-11-12 20:38:35 +00:00
|
|
|
# do not embed timestamps into html documentation
|
|
|
|
sed -i 's|^HTML_TIMESTAMP[ =].*$|HTML_TIMESTAMP = NO|' doc/Doxyfile.dox.cmake.in
|
2017-10-25 09:02:18 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
2013-11-14 07:50:44 +00:00
|
|
|
# ensure no bundled libraries are used
|
|
|
|
for d in thirdparty/*; do
|
|
|
|
[ -d "$d" ] && rm -rf "$d"
|
|
|
|
done
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%build
|
2015-09-04 13:50:53 +00:00
|
|
|
%cmake \
|
2017-10-25 09:02:18 +00:00
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_CODEC=ON \
|
|
|
|
-DBUILD_JPIP=OFF \
|
|
|
|
-DBUILD_JPWL=OFF \
|
|
|
|
-DBUILD_MJ2=OFF \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DBUILD_DOC=ON \
|
|
|
|
-DBUILD_THIRDPARTY=OFF \
|
|
|
|
-DOPENJPEG_INSTALL_LIB_DIR=%{_lib}
|
|
|
|
|
|
|
|
make %{?_smp_mflags} VERBOSE=1 all doc
|
2015-09-04 13:50:53 +00:00
|
|
|
|
|
|
|
cat << END > libopenjp2.pc
|
|
|
|
|
|
|
|
Name: openjpeg
|
|
|
|
Version: %{version}
|
|
|
|
Url: %{url}
|
2014-02-18 07:24:25 +00:00
|
|
|
Description: Opensource JPEG 2000 Codec Implementation
|
|
|
|
Libs: -L%{_libdir} -lopenjp2
|
|
|
|
Libs.private: -lm
|
2014-05-27 15:14:19 +00:00
|
|
|
Cflags: -I%{_includedir}/openjpeg-%{base_version}
|
2014-02-18 07:24:25 +00:00
|
|
|
END
|
2013-11-12 20:38:35 +00:00
|
|
|
%fdupes -s doc/html/
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%install
|
2015-09-04 13:50:53 +00:00
|
|
|
%cmake_install
|
2017-10-25 09:02:18 +00:00
|
|
|
|
2014-02-18 07:24:25 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
install -m 644 build/libopenjp2.pc %{buildroot}%{_libdir}/pkgconfig/
|
2013-11-12 20:38:35 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2016-12-19 09:58:53 +00:00
|
|
|
%doc AUTHORS.md CHANGELOG.md NEWS.md LICENSE README.md THANKS.md
|
2013-11-12 20:38:35 +00:00
|
|
|
%{_bindir}/opj_*
|
|
|
|
%{_mandir}/man1/opj_*.1%{ext_man}
|
2011-02-02 10:43:52 +00:00
|
|
|
|
2013-11-12 20:38:35 +00:00
|
|
|
%files -n %{library_name}
|
2011-02-02 10:43:52 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-11-12 20:38:35 +00:00
|
|
|
%{_libdir}/libopenjp2.so.*
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2013-11-12 20:38:35 +00:00
|
|
|
%doc build/doc/html/
|
2014-05-27 15:14:19 +00:00
|
|
|
%{_includedir}/openjpeg-%{base_version}/
|
2013-11-12 20:38:35 +00:00
|
|
|
%{_libdir}/libopenjp2.so
|
2014-02-18 07:24:25 +00:00
|
|
|
%{_libdir}/pkgconfig/libopenjp2.pc
|
2014-05-27 15:14:19 +00:00
|
|
|
%{_libdir}/openjpeg-%{base_version}/
|
2013-11-12 20:38:35 +00:00
|
|
|
%{_mandir}/man3/libopenjp2.3%{ext_man}
|
2011-02-02 10:43:52 +00:00
|
|
|
|
|
|
|
%changelog
|