88 lines
2.0 KiB
RPMSpec
88 lines
2.0 KiB
RPMSpec
|
|
Name: jxrlib
|
||
|
|
Version: 1.1
|
||
|
|
Release: 1
|
||
|
|
Summary: Open source implementation of jpegxr
|
||
|
|
|
||
|
|
# See JPEGXR_DPK_Spec_1.0.doc. Upstream request for plain text license file at
|
||
|
|
# https://jxrlib.codeplex.com/workitem/13
|
||
|
|
License: BSD
|
||
|
|
URL: https://jxrlib.codeplex.com/
|
||
|
|
Source0: http://jxrlib.codeplex.com/downloads/get/685249#/jxrlib_%(echo %{version} | tr . _).tar.gz
|
||
|
|
# Use CMake to build to facilitate creation of shared libraries
|
||
|
|
# See https://jxrlib.codeplex.com/workitem/13
|
||
|
|
Source1: CMakeLists.txt
|
||
|
|
# Converted from shipped doc/JPEGXR_DPK_Spec_1.doc
|
||
|
|
# libreoffice --headless --convert-to pdf doc/JPEGXR_DPK_Spec_1.0.doc
|
||
|
|
Source2: JPEGXR_DPK_Spec_1.0.pdf
|
||
|
|
|
||
|
|
# Fix various warnings, upstreamable
|
||
|
|
# See https://jxrlib.codeplex.com/workitem/13
|
||
|
|
Patch0: jxrlib_warnings.patch
|
||
|
|
|
||
|
|
BuildRequires: cmake
|
||
|
|
BuildRequires: gcc
|
||
|
|
BuildRequires: 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 <weidong@uniontech.com> - 1.1-1
|
||
|
|
- Initial release for OpenEuler
|