|
|
@ -1,21 +1,14 @@
|
|
|
|
Name: CharLS
|
|
|
|
Name: CharLS
|
|
|
|
Version: 1.0
|
|
|
|
Version: 2.0.0
|
|
|
|
Release: 19%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: An optimized implementation of the JPEG-LS standard
|
|
|
|
Summary: An optimized implementation of the JPEG-LS standard
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/team-charls/charls
|
|
|
|
URL: https://github.com/team-charls/charls
|
|
|
|
# CharLS uses an interactive download link that asks you to accept the
|
|
|
|
Source0: https://github.com/team-charls/charls/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
# (BSD-like) license before obtaining the source code.
|
|
|
|
|
|
|
|
# You can find the download link at http://charls.codeplex.com/
|
|
|
|
|
|
|
|
Source0: CharLS-source-1.0.zip
|
|
|
|
|
|
|
|
Patch0: charls_add_cmake_install_target.patch
|
|
|
|
|
|
|
|
Patch1: charls_add_sharedlib_soname.patch
|
|
|
|
|
|
|
|
Patch2: charls_fix_tests.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
BuildRequires: cmake >= 2.6.0
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
An optimized implementation of the JPEG-LS standard for loss less and
|
|
|
|
An optimized implementation of the JPEG-LS standard for loss less and
|
|
|
@ -29,60 +22,52 @@ 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
|
|
|
|
loss less JPEG than to JPEG 2000, but interestingly the two different techniques
|
|
|
|
result in vastly different performance characteristics.
|
|
|
|
result in vastly different performance characteristics.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%package devel
|
|
|
|
%setup -c -q
|
|
|
|
Summary: Libraries and headers for CharLS
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
rm CharLS.vcproj
|
|
|
|
%description devel
|
|
|
|
rm CharLS.sln
|
|
|
|
CharLS Library Header Files and Link Libraries.
|
|
|
|
|
|
|
|
|
|
|
|
dos2unix *.h
|
|
|
|
|
|
|
|
dos2unix *.c*
|
|
|
|
|
|
|
|
dos2unix *.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%prep
|
|
|
|
%patch1 -p1
|
|
|
|
%autosetup -n charls-%{version}
|
|
|
|
%patch2 -p1
|
|
|
|
rm CharLS*.sln* -v
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cmake -DBUILD_SHARED_LIBS:BOOL=ON\
|
|
|
|
%cmake -DBUILD_SHARED_LIBS:BOOL=ON\
|
|
|
|
-Dcharls_BUILD_SHARED_LIBS:BOOL=ON\
|
|
|
|
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING="Release"\
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING="Release"\
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON\
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON\
|
|
|
|
-DBUILD_TESTING=ON .
|
|
|
|
-DBUILD_TESTING=ON .
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
|
|
|
|
# Enter a key + enter to finish
|
|
|
|
ctest .
|
|
|
|
echo "a" | ./charlstest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license License.txt
|
|
|
|
%license License.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/lib%{name}.so.2
|
|
|
|
|
|
|
|
%{_libdir}/lib%{name}.so.2.0
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Libraries and headers for CharLS
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
CharLS Library Header Files and Link Libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/%{name}/
|
|
|
|
%dir %{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jul 28 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.0.0-1
|
|
|
|
|
|
|
|
- Update to version 2.0.0
|
|
|
|
|
|
|
|
- Remove unneded patches
|
|
|
|
|
|
|
|
- Note: soname changes here
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-19
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|