|
|
@ -38,18 +38,21 @@ CharLS Library Header Files and Link Libraries.
|
|
|
|
%cmake -DBUILD_SHARED_LIBS:BOOL=ON\
|
|
|
|
%cmake -DBUILD_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_build
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
pushd %{_vpath_builddir}
|
|
|
|
# Enter a key + enter to finish
|
|
|
|
# Enter a key + enter to finish
|
|
|
|
echo "a" | ./charlstest
|
|
|
|
echo "a" | ./charlstest
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license License.txt
|
|
|
|
%license License.txt
|
|
|
|