CharLS/CharLS.spec

77 lines
1.9 KiB
RPMSpec
Raw Normal View History

2022-03-22 11:43:41 +08:00
Name: CharLS
2023-09-05 16:05:50 +08:00
Version: 2.4.2
2022-03-22 11:43:41 +08:00
Release: 1
Summary: An optimized implementation of the JPEG-LS standard
License: BSD
URL: https://github.com/team-charls/charls
2023-09-05 16:05:50 +08:00
Source0: https://github.com/team-charls/charls/archive/refs/tags/%{version}.tar.gz
2022-03-22 11:43:41 +08:00
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake >= 2.6.0
2020-09-15 18:52:42 +08:00
%description
An optimized implementation of the JPEG-LS standard for loss less and
near loss less 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.
2022-03-22 11:43:41 +08:00
2020-09-15 18:52:42 +08:00
JPEG-LS (ISO-14495-1/ITU-T.87) is a standard derived from the Hewlett Packard
LOCO algorithm. JPEG LS has low complexity (meaning fast compression) and high
compression ratios, similar to JPEG 2000. JPEG-LS is more similar to the old
loss less JPEG than to JPEG 2000, but interestingly the two different techniques
result in vastly different performance characteristics.
2022-03-22 11:43:41 +08:00
%package devel
Summary: Libraries and headers for CharLS
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
CharLS Library Header Files and Link Libraries.
2020-09-15 18:52:42 +08:00
%prep
2022-03-22 11:43:41 +08:00
%autosetup -n charls-%{version}
%{__rm} CharLS*.sln* -v
2020-09-15 18:52:42 +08:00
%build
2022-03-22 11:43:41 +08:00
%cmake -DBUILD_SHARED_LIBS:BOOL=ON\
-DCMAKE_BUILD_TYPE:STRING="Release"\
-DCMAKE_VERBOSE_MAKEFILE=ON\
-DBUILD_TESTING=ON
2020-09-15 18:52:42 +08:00
%install
make install DESTDIR=$RPM_BUILD_ROOT
2022-03-22 11:43:41 +08:00
2020-09-15 18:52:42 +08:00
%check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
ctest .
%ldconfig_scriptlets
2022-03-22 11:43:41 +08:00
2020-09-15 18:52:42 +08:00
%files
2023-09-05 16:05:50 +08:00
%license LICENSE.md
%{_libdir}/libcharls.so.2
%{_libdir}/libcharls.so.2.4.2
2020-09-15 18:52:42 +08:00
%files devel
2023-09-05 16:05:50 +08:00
%dir %{_includedir}/charls/
%{_includedir}/charls/*
%{_libdir}/libcharls.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/charls.pc
2020-09-15 18:52:42 +08:00
%changelog
2023-09-05 16:05:50 +08:00
* Tue Sep 05 2023 Ge Wang <wang__ge@126.com> - 2.4.2-1
- Upgrade to version 2.4.2
2022-03-22 11:43:41 +08:00
* Tue Mar 22 2022 tanyulong <tanyulong@kylinos.cn> - 2.0.0-1
- upgrade upstream version 2.0.0
2020-09-15 18:52:42 +08:00
* Thu Aug 27 2020 geyanan <geyanan2@huawei.com> - 1.0-1
- package init
2022-03-22 11:43:41 +08:00