Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
openjpeg2
openjpeg2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openjpeg2.spec of Package openjpeg2
# # spec file for package openjpeg2 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define library_name libopenjp2-7 %define base_version 2.3 Name: openjpeg2 Version: 2.3.0 Release: 0 Summary: Opensource JPEG 2000 Codec Implementation License: BSD-2-Clause Group: Productivity/Graphics/Other Url: http://www.openjpeg.org/ Source0: https://github.com/uclouvain/openjpeg/archive/v%{version}.tar.gz#/openjpeg-%{version}.tar.gz Source1: baselibs.conf Patch1: install-fix.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2022-1122.patch bsc#1197738 hpj@suse.com Patch2: openjpeg2-CVE-2022-1122.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-14423.patch bsc#1102016 hpj@suse.com Patch3: openjpeg2-CVE-2018-14423.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-6851.patch bsc#1160782 hpj@suse.com Patch4: openjpeg2-CVE-2020-6851.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-16375.patch bsc#1106882 hpj@suse.com Patch5: openjpeg2-CVE-2018-16375.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-16376.patch bsc#1106881 hpj@suse.com Patch6: openjpeg2-CVE-2018-16376.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-8112.patch bsc#1162090 hpj@suse.com Patch7: openjpeg2-CVE-2020-8112.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2021-29338.patch bsc#1184774 hpj@suse.com Patch8: openjpeg2-CVE-2021-29338.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27823.patch bsc#1180457 hpj@suse.com Patch9: openjpeg2-CVE-2020-27823.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-15389.patch bsc#1173578 hpj@suse.com Patch10: openjpeg2-CVE-2020-15389.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-5785.patch bsc#1076967 hpj@suse.com Patch11: openjpeg2-CVE-2018-5785.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-5727.patch bsc#1076314 hpj@suse.com Patch12: openjpeg2-CVE-2018-5727.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-20845.patch bsc#1140130 hpj@suse.com Patch13: openjpeg2-CVE-2018-20845.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-6616.patch bsc#1079845 hpj@suse.com Patch14: openjpeg2-CVE-2018-6616.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27814.patch bsc#1179594 hpj@suse.com Patch15: openjpeg2-CVE-2020-27814.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-21010.patch bsc#1149789 hpj@suse.com Patch16: openjpeg2-CVE-2018-21010.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2018-20846.patch bsc#1140205 hpj@suse.com Patch17: openjpeg2-CVE-2018-20846.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27841.patch bsc#1180042 hpj@suse.com Patch18: openjpeg2-CVE-2020-27841.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27843.patch bsc#1180044 hpj@suse.com Patch19: openjpeg2-CVE-2020-27843.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27845.patch bsc#1180046 hpj@suse.com Patch20: openjpeg2-CVE-2020-27845.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27824.patch bsc#1179821 hpj@suse.com Patch21: openjpeg2-CVE-2020-27824.patch # PATCH-FIX-UPSTREAM openjpeg2-CVE-2020-27842.patch bsc#1180043 hpj@suse.com Patch22: openjpeg2-CVE-2020-27842.patch BuildRequires: cmake > 2.8.2 BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRequires: pkgconfig(lcms2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libtiff-4) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 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). This package provides the codec executables. %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). %package devel Summary: Development files for %{name} Group: Development/Libraries/Other Requires: %{library_name} = %{version} Requires: %{name} = %{version} %description devel 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). This package provides the development files for %{name}. %prep %setup -q -n openjpeg-%{version} # do not embed timestamps into html documentation sed -i 's|^HTML_TIMESTAMP[ =].*$|HTML_TIMESTAMP = NO|' doc/Doxyfile.dox.cmake.in %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 # ensure no bundled libraries are used for d in thirdparty/*; do [ -d "$d" ] && rm -rf "$d" done %build %cmake \ -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 cat << END > libopenjp2.pc Name: openjpeg Version: %{version} Url: %{url} Description: Opensource JPEG 2000 Codec Implementation Libs: -L%{_libdir} -lopenjp2 Libs.private: -lm Cflags: -I%{_includedir}/openjpeg-%{base_version} END %fdupes -s doc/html/ %install %cmake_install mkdir -p %{buildroot}%{_libdir}/pkgconfig/ install -m 644 build/libopenjp2.pc %{buildroot}%{_libdir}/pkgconfig/ rm -rf %{buildroot}%{_datadir}/doc %post -n %{library_name} -p /sbin/ldconfig %postun -n %{library_name} -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS.md CHANGELOG.md NEWS.md LICENSE README.md THANKS.md %{_bindir}/opj_* %{_mandir}/man1/opj_*.1%{ext_man} %files -n %{library_name} %defattr(-,root,root,-) %{_libdir}/libopenjp2.so.* %files devel %defattr(-,root,root,-) %doc build/doc/html/ %{_includedir}/openjpeg-%{base_version}/ %{_libdir}/libopenjp2.so %{_libdir}/pkgconfig/libopenjp2.pc %{_libdir}/openjpeg-%{base_version}/ %{_mandir}/man3/libopenjp2.3%{ext_man} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor