7f5f50c
Name:		CharLS
7f5f50c
Version:	1.0
8793ce4
Release:	12%{?dist}
7f5f50c
Summary:	An optimized implementation of the JPEG-LS standard
7f5f50c
Group:		Development/Libraries
7f5f50c
License:	BSD
f7cebc8
URL:		https://github.com/team-charls/charls
7f5f50c
# CharLS uses an interactive download link that asks you to accept the
7f5f50c
# (BSD-like) license before obtaining the source code.
7f5f50c
# You can find the download link at http://charls.codeplex.com/
1c2c33d
Source0:	CharLS-source-1.0.zip
1c2c33d
Patch0:		charls_add_cmake_install_target.patch
1c2c33d
Patch1:		charls_add_sharedlib_soname.patch
3adde9f
Patch2:		charls_fix_tests.patch
7f5f50c
7f5f50c
BuildRequires:	cmake >= 2.6.0
7f5f50c
BuildRequires:	dos2unix
7f5f50c
7f5f50c
%description
f7cebc8
An optimized implementation of the JPEG-LS standard for loss less and
7f5f50c
near loss less image compression. JPEG-LS is a low-complexity standard that
7f5f50c
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
7f5f50c
open source and commercial JPEG LS implementations.
7f5f50c
7f5f50c
JPEG-LS (ISO-14495-1/ITU-T.87) is a standard derived from the Hewlett Packard
7f5f50c
LOCO algorithm. JPEG LS has low complexity (meaning fast compression) and high
7f5f50c
compression ratios, similar to JPEG 2000. JPEG-LS is more similar to the old
7f5f50c
loss less JPEG than to JPEG 2000, but interestingly the two different techniques
7f5f50c
result in vastly different performance characteristics.
7f5f50c
7f5f50c
%prep
7f5f50c
%setup -c -q
7f5f50c
7f5f50c
rm CharLS.vcproj
7f5f50c
rm CharLS.sln
7f5f50c
7f5f50c
dos2unix *.h
7f5f50c
dos2unix *.c*
7f5f50c
dos2unix *.txt
7f5f50c
1c2c33d
%patch0 -p1
1c2c33d
%patch1 -p1
3adde9f
%patch2 -p1
7f5f50c
7f5f50c
%build
7f5f50c
%cmake -DBUILD_SHARED_LIBS:BOOL=ON\
7f5f50c
	-Dcharls_BUILD_SHARED_LIBS:BOOL=ON\
7f5f50c
       -DCMAKE_BUILD_TYPE:STRING="Release"\
7f5f50c
       -DCMAKE_VERBOSE_MAKEFILE=ON\
7f5f50c
       -DBUILD_TESTING=ON .
7f5f50c
7f5f50c
make %{?_smp_mflags}
7f5f50c
7f5f50c
7f5f50c
%install
7f5f50c
make install DESTDIR=$RPM_BUILD_ROOT
7f5f50c
7f5f50c
7f5f50c
%check
7f5f50c
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
7f5f50c
ctest .
7f5f50c
f7cebc8
7f5f50c
%post -p /sbin/ldconfig
7f5f50c
f7cebc8
7f5f50c
%postun -p /sbin/ldconfig
7f5f50c
7f5f50c
7f5f50c
%files
f7cebc8
%license License.txt
7f5f50c
%{_libdir}/*.so.*
7f5f50c
7f5f50c
7f5f50c
%package        devel
7f5f50c
Summary:	Libraries and headers for CharLS
7f5f50c
Group:		Development/Libraries
f7cebc8
Requires:	%{name}%{?_isa} = %{version}-%{release}
7f5f50c
7f5f50c
%description devel
f7cebc8
CharLS Library Header Files and Link Libraries.
7f5f50c
7f5f50c
%files devel
7f5f50c
%dir %{_includedir}/%{name}/
7f5f50c
%{_includedir}/%{name}/*
7f5f50c
%{_libdir}/*.so
7f5f50c
7f5f50c
%changelog
8793ce4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-12
8793ce4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8793ce4
f7cebc8
* Tue Jan 26 2016 Peter Lemenkov <lemenkov@gmail.com> - 1.0-11
f7cebc8
- Spec-file cleanups
f7cebc8
23645b5
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
23645b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
23645b5
c1c28be
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0-9
c1c28be
- Rebuilt for GCC 5 C++11 ABI change
c1c28be
89f2941
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
89f2941
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
89f2941
1eb7b8f
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
1eb7b8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1eb7b8f
9ec3cec
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
9ec3cec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9ec3cec
fd55f83
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
fd55f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fd55f83
ac41b42
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
ac41b42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ac41b42
80703e4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
80703e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
80703e4
32bc99b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
32bc99b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
32bc99b
1c2c33d
* Thu Feb 3 2011 Mario Ceresa mrceresa@gmail.com CharLS 1.0-1
1c2c33d
- Update to new version
3adde9f
- Applied patch to fix bug http://charls.codeplex.com/workitem/7823
1c2c33d
7f5f50c
* Wed Feb 17 2010 Mario Ceresa mrceresa@gmail.com CharLS 1.0-0.1.b
7f5f50c
- Changed name schema to comply with pre-release packages
1c2c33d
7f5f50c
* Wed Feb 17 2010 Mario Ceresa mrceresa@gmail.com CharLS 1.0b-1
7f5f50c
- Initial RPM Release