Files
CharLS/CharLS.spec

87 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package CharLS
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define so_ver 2
Name: CharLS
Version: 2.4.2
Release: 0
Summary: A JPEG-LS library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
URL: https://github.com/team-charls/charls/
Source0: https://github.com/team-charls/charls/archive/refs/tags/%{version}.tar.gz#/charls-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
An optimized implementation of the JPEG-LS standard for lossless and
near-lossless image compression. JPEG-LS is a low-complexity standard that
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
open source and commercial JPEG LS implementations.
%package devel
Summary: Libraries and headers for CharLS
Group: Development/Libraries/C and C++
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
Requires: libcharls%{so_ver} = %{version}
%description devel
This package contains libraries and headers for CharLS.
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%package -n libcharls%{so_ver}
Summary: A JPEG-LS library
Group: System/Libraries
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%description -n libcharls%{so_ver}
An optimized implementation of the JPEG-LS standard for lossless and
near-lossless image compression. JPEG-LS is a low-complexity standard that
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
open source and commercial JPEG LS implementations.
%prep
%setup -q -n charls-%{version}
%build
%cmake \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%make_build
%install
%cmake_install
%check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
ctest .
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%post -n libcharls%{so_ver} -p /sbin/ldconfig
%postun -n libcharls%{so_ver} -p /sbin/ldconfig
%files devel
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%license LICENSE.md
%doc CHANGELOG.md README.md
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%{_includedir}/charls/
%{_libdir}/*.so
%{_libdir}/cmake/charls/
%{_libdir}/pkgconfig/*.pc
Accepting request 825040 from home:andythe_great:branches:graphics - Update to version 2.1.0. * Added * Two new C++ classes (jpegls_encoder \ jpegls_decoder) have been added to make it much easier to use CharLS from C++ * A new C API (charls_xxx functions) was added to provide a more stable ABI for future updates. The old API calls are internally forwarded to the new API. * CharLS can now read and write JPEG-LS standard SPIFF headers * Support has been added to detect the unsupported JPEG-LS extension (ISO/IEC 14495-2) SOF_57 marker and IDs in LSE marker * Support has been added to encode\decode 4 component images in all interleave modes * Deprecated * The legacy 1.x\2.0 C API has been marked as deprecated. This legacy API will be maintained until the next major upgrade. * Future 2.x updates will start to mark the legacy types and functions with the C++ [[deprecated]] attribute. * Changed * charls_error has been replaced by a C++11 compatible jpegls_errc error code enum design * The included C and C++ sample have been updated to use the new C\C++ API * Improved the validation of the JPEG-LS stream during decoding * The referenced NuGet packages of the .NET wrapper assembly are updated to their latest versions * Removed * Support to write JFIF headers during encoding has been removed. JFIF headers were already skipped when present during decoding. * SPIFF headers should be used when creating standalone .jls files * Support for .NET Code Contracts has been removed as this technology is being phased out by Microsoft * Fixed * Fixed #7, How to compile CharLS with Xcode has been documented in the Wiki * Fixed #44, Only the API functions should be exported from a Linux shared library * Fixes #35, Encoding will fail if the bit per sample is greater than 8, and a custom RESET value is used * Fixes #51, The default threshold values are not corrected computed for 6 bit images or less * Fixed the ASSERT in the ModuloRange function, which would trigger false assertions in debug builds OBS-URL: https://build.opensuse.org/request/show/825040 OBS-URL: https://build.opensuse.org/package/show/graphics/CharLS?expand=0&rev=14
2020-08-17 00:04:32 +00:00
%files -n libcharls%{so_ver}
%{_libdir}/libcharls.so.%{so_ver}*
%changelog