Hello community,

here is the log from the commit of package CharLS for openSUSE:Factory checked 
in at 2017-07-07 10:18:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/CharLS (Old)
 and      /work/SRC/openSUSE:Factory/.CharLS.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "CharLS"

Fri Jul  7 10:18:02 2017 rev:8 rq:508661 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/CharLS/CharLS.changes    2012-11-21 
15:06:43.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.CharLS.new/CharLS.changes       2017-07-07 
10:18:06.736859354 +0200
@@ -1,0 +2,22 @@
+Thu Jul  6 22:21:26 UTC 2017 - [email protected]
+
+- Update to version 2.0.0:
+  Bug fixes
+   * #10 - Fixed the problem that "output buffer to small" was not
+     detected when writting encoded bytes to a fixed output buffer.
+     This could cause memory corruption problems.
+   * #11 - Update charlstest to return EXIT_SUCCESS/FAILURE
+   * Fixed the issue that DecodeToPnm would set
+     params.colorTransform = ColorTransformation::BigEndian but the
+     library didn’t support this option during decoding.
+  Misc
+   * Updated the source code to C++ v14.
+   * Refactored several API's to make usage of the library easier.
+- Removed unzip build requirement (not needed anymore).
+- Require gcc >= 5.0 (for C++ v14).
+- Removed the following patches (not needed anymore):
+  charls_add_cmake_install_target.patch
+  charls_add_sharedlib_soname.patch
+  charls_fix_tests.patch
+
+-------------------------------------------------------------------

Old:
----
  CharLS-source-1.0.zip
  charls_add_cmake_install_target.patch
  charls_add_sharedlib_soname.patch
  charls_fix_tests.patch

New:
----
  CharLS-2.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ CharLS.spec ++++++
--- /var/tmp/diff_new_pack.UKCFBM/_old  2017-07-07 10:18:08.052673176 +0200
+++ /var/tmp/diff_new_pack.UKCFBM/_new  2017-07-07 10:18:08.052673176 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package CharLS
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# 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
@@ -16,23 +16,18 @@
 #
 
 
+%define so_ver 2
+
 Name:           CharLS
-Version:        1.0
+Version:        2.0.0
 Release:        0
 Summary:        A JPEG-LS library
 License:        BSD-3-Clause
 Group:          System/Libraries
-Url:            http://charls.codeplex.com/
-Source0:        %{name}-source-%{version}.zip
-# PATCH-FIX-OPENSUSE charls_add_cmake_install_target.patch 
[email protected] -- Add a cmake install target for CharLS header files
-Patch0:         charls_add_cmake_install_target.patch
-# PATCH-FIX-OPENSUSE charls_add_sharedlib_soname.patch 
[email protected] -- Add soname to generated shared lib and install 
libCharLS.so
-Patch1:         charls_add_sharedlib_soname.patch
-# PATCH-FIX-OPENSUSE charls_fix_tests.patch [email protected] -- Fix 
tests
-Patch2:         charls_fix_tests.patch
+Url:            https://github.com/team-charls/charls/
+Source0:        
https://github.com/team-charls/charls/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  cmake
-BuildRequires:  gcc-c++
-BuildRequires:  unzip
+BuildRequires:  gcc-c++ >= 5.0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -44,69 +39,51 @@
 %package devel
 Summary:        Libraries and headers for CharLS
 Group:          Development/Libraries/C and C++
-Requires:       libCharLS1 = %{version}
+Requires:       libCharLS%{so_ver} = %{version}
 
 %description devel
 This package contains libraries and headers for CharLS.
 
-%package -n libCharLS1
+%package -n libCharLS%{so_ver}
 Summary:        A JPEG-LS library
 Group:          System/Libraries
 
-%description -n libCharLS1
+%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 -c -q
-# Fix wrong end of line encoding
-perl -i -pe 's/\r\n/\n/gs' *.h
-perl -i -pe 's/\r\n/\n/gs' *.c*
-perl -i -pe 's/\r\n/\n/gs' *.txt
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q -n charls-%{version}
+# Fix rpmlint warning "wrong-file-end-of-line-encoding"
+sed -i 's/\r$//' License.txt
 
 %build
-mkdir build
-cd build
-export CFLAGS="%{optflags}"
-export CXXFLAGS="%{optflags}"
-cmake \
- -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%cmake \
  -DBUILD_SHARED_LIBS=ON \
- -Dcharls_BUILD_SHARED_LIBS=ON \
- %if "%{_lib}" == "lib64"
-  -DLIB_SUFFIX=64 \
- %endif
- --DBUILD_TESTING=ON \
- -DCMAKE_BUILD_TYPE=release ..
+ -DBUILD_TESTING=ON
 make %{?_smp_mflags} VERBOSE=1
-cd ..
 
 %install
-cd build
-make DESTDIR=%{buildroot} install
-cd ..
+%cmake_install
 
 %check
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
 ctest .
 
-%post -n libCharLS1 -p /sbin/ldconfig
+%post -n libCharLS%{so_ver} -p /sbin/ldconfig
 
-%postun -n libCharLS1 -p /sbin/ldconfig
+%postun -n libCharLS%{so_ver} -p /sbin/ldconfig
 
 %files devel
 %defattr(-,root,root,-)
-%doc License.txt
+%doc License.txt README.md
 %{_includedir}/CharLS/
 %{_libdir}/*.so
 
-%files -n libCharLS1
+%files -n libCharLS%{so_ver}
 %defattr(-,root,root,-)
-%{_libdir}/libCharLS.so.1*
+%{_libdir}/libCharLS.so.%{so_ver}*
 
 %changelog


Reply via email to