|
 |
210cd8d |
%global octpkg zmat
|
|
 |
210cd8d |
|
|
 |
210cd8d |
Name: octave-%{octpkg}
|
|
 |
3ff9b0b |
Version: 0.9.8
|
|
 |
04c7ce3 |
Release: 7%{?dist}
|
|
 |
210cd8d |
Summary: A portable data compression/decompression toolbox for MATLAB/Octave
|
|
 |
210cd8d |
License: GPLv3+ or BSD
|
|
 |
210cd8d |
URL: https://github.com/fangq/zmat
|
|
 |
210cd8d |
Source0: https://github.com/fangq/zmat/archive/v%{version}/%{octpkg}-%{version}.tar.gz
|
|
 |
f9d1069 |
BuildRequires: make
|
|
 |
3ff9b0b |
BuildRequires: octave-devel zlib gcc-c++
|
|
 |
210cd8d |
|
|
 |
210cd8d |
Requires: octave zlib
|
|
 |
210cd8d |
Requires(post): octave
|
|
 |
210cd8d |
Requires(postun): octave
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%description
|
|
 |
210cd8d |
ZMat is a portable mex function to enable zlib/gzip/lzma/lzip/lz4/lz4hc
|
|
 |
210cd8d |
based data compression/decompression and base64 encoding/decoding support
|
|
 |
210cd8d |
in MATLAB and GNU Octave. It is fast and compact, can process a large
|
|
 |
210cd8d |
array within a fraction of a second. Among the 6 supported compression
|
|
 |
210cd8d |
methods, lz4 is the fastest for compression/decompression; lzma is the
|
|
 |
210cd8d |
slowest but has the highest compression ratio; zlib/gzip have the best
|
|
 |
210cd8d |
balance between speed and compression time.
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%prep
|
|
 |
3ff9b0b |
%autosetup -n %{octpkg}-%{version}
|
|
 |
210cd8d |
|
|
 |
210cd8d |
cp LICENSE.txt COPYING
|
|
 |
210cd8d |
|
|
 |
210cd8d |
cat > DESCRIPTION << EOF
|
|
 |
210cd8d |
Name: %{octpkg}
|
|
 |
210cd8d |
Version: %{version}
|
|
 |
210cd8d |
Date: %(date +"%Y-%d-%m")
|
|
 |
210cd8d |
Title: %{summary}
|
|
 |
210cd8d |
Author: Qianqian Fang <fangqq@gmail.com>
|
|
 |
210cd8d |
Maintainer: Qianqian Fang <fangqq@gmail.com>
|
|
 |
210cd8d |
Description: ZMat is a portable mex function to enable zlib/gzip/lzma/lzip/lz4/lz4hc
|
|
 |
210cd8d |
based data compression/decompression and base64 encoding/decoding support
|
|
 |
210cd8d |
in MATLAB and GNU Octave. It is fast and compact, can process a large
|
|
 |
210cd8d |
array within a fraction of a second. Among the 6 supported compression
|
|
 |
210cd8d |
methods, lz4 is the fastest for compression/decompression; lzma is the
|
|
 |
210cd8d |
slowest but has the highest compression ratio; zlib/gzip have the best
|
|
 |
210cd8d |
balance between speed and compression time.
|
|
 |
210cd8d |
|
|
 |
210cd8d |
Categories: Zip
|
|
 |
210cd8d |
EOF
|
|
 |
210cd8d |
|
|
 |
210cd8d |
cat > INDEX << EOF
|
|
 |
210cd8d |
zmat >> ZMat
|
|
 |
210cd8d |
ZMat
|
|
 |
210cd8d |
zmat
|
|
 |
210cd8d |
zipmat
|
|
 |
210cd8d |
EOF
|
|
 |
210cd8d |
|
|
 |
210cd8d |
|
|
 |
210cd8d |
mkdir -p inst/
|
|
 |
210cd8d |
mv *.m inst/
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%build
|
|
 |
3ff9b0b |
cd src
|
|
 |
210cd8d |
make clean
|
|
 |
210cd8d |
make oct
|
|
 |
210cd8d |
cd ../
|
|
 |
210cd8d |
mv *.mex inst/
|
|
 |
210cd8d |
rm -rf src
|
|
 |
210cd8d |
%octave_pkg_build
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%if 0%{?fedora} <=30
|
|
 |
210cd8d |
%global octave_tar_suffix any-none
|
|
 |
210cd8d |
%endif
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%install
|
|
 |
210cd8d |
%octave_pkg_install
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%post
|
|
 |
210cd8d |
%octave_cmd pkg rebuild
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%preun
|
|
 |
210cd8d |
%octave_pkg_preun
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%postun
|
|
 |
210cd8d |
%octave_cmd pkg rebuild
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%files
|
|
 |
210cd8d |
%license LICENSE.txt
|
|
 |
210cd8d |
%doc example
|
|
 |
210cd8d |
%doc README.rst
|
|
 |
210cd8d |
%doc AUTHORS.txt
|
|
 |
210cd8d |
%doc ChangeLog.txt
|
|
 |
210cd8d |
%dir %{octpkgdir}
|
|
 |
210cd8d |
%{octpkgdir}/*.m
|
|
 |
210cd8d |
%{octpkgdir}/*.mex
|
|
 |
210cd8d |
%doc %{octpkgdir}/doc-cache
|
|
 |
210cd8d |
%{octpkgdir}/packinfo
|
|
 |
210cd8d |
|
|
 |
210cd8d |
%changelog
|
|
 |
04c7ce3 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-7
|
|
 |
04c7ce3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
04c7ce3 |
|
|
 |
e6d2b6d |
* Wed Jun 01 2022 Orion Poplawski <orion@nwra.com> - 0.9.8-6
|
|
 |
e6d2b6d |
- Rebuild for octave 7.1
|
|
 |
e6d2b6d |
|
|
 |
7feaece |
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-5
|
|
 |
7feaece |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
7feaece |
|
|
 |
7efe37d |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-4
|
|
 |
7efe37d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
7efe37d |
|
|
 |
8006e6b |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-3
|
|
 |
8006e6b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
8006e6b |
|
|
 |
a0528bb |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-2
|
|
 |
a0528bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
a0528bb |
|
|
 |
3ff9b0b |
* Mon May 25 2020 Qianqian Fang <fangqq@gmail.com> - 0.9.8-1
|
|
 |
3ff9b0b |
- Update to new upstream release v0.9.8
|
|
 |
3ff9b0b |
|
|
 |
6b841d5 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
|
|
 |
6b841d5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
6b841d5 |
|
|
 |
210cd8d |
* Tue Oct 01 2019 Qianqian Fang <fangqq@gmail.com> - 0.9-1
|
|
 |
210cd8d |
- Initial package
|