Name: jxrlib Version: 1.1 Release: 1 Summary: Open source implementation of jpegxr License: BSD URL: https://jxrlib.codeplex.com/ Source0: http://jxrlib.codeplex.com/downloads/get/685249#/jxrlib_%(echo %{version} | tr . _).tar.gz Source1: CMakeLists.txt Source2: JPEGXR_DPK_Spec_1.0.pdf # Fix various warnings, upstreamable # See https://jxrlib.codeplex.com/workitem/13 Patch0: jxrlib_warnings.patch BuildRequires: cmake gcc make %description This is an open source implementation of the jpegxr image format standard. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{name} # Sanitize charset and line endings for file in `find . -type f -name '*.c' -or -name '*.h' -or -name '*.txt'`; do iconv --from=ISO-8859-15 --to=UTF-8 $file > $file.new && \ sed -i 's|\r||g' $file.new && \ touch -r $file $file.new && mv $file.new $file done %patch0 -p1 # Remove shipped binaries rm -rf bin cp -a %{SOURCE1} . cp -a %{SOURCE2} doc %build %cmake . %make_build %install %make_install %ldconfig_scriptlets %files %doc doc/readme.txt doc/JPEGXR_DPK_Spec_1.0.pdf %{_bindir}/JxrEncApp %{_bindir}/JxrDecApp %{_libdir}/libjpegxr.so.* %{_libdir}/libjxrglue.so.* %files devel %{_includedir}/jxrlib/ %{_libdir}/libjpegxr.so %{_libdir}/libjxrglue.so %changelog * Fri Aug 7 2020 weidong - 1.1-1 - Initial release for OpenEuler