update to new upstream release v0.9.8
This commit is contained in:
parent
813cd6c095
commit
90b16c9209
1 changed files with 13 additions and 32 deletions
45
zmat.spec
45
zmat.spec
|
|
@ -1,12 +1,11 @@
|
|||
Name: zmat
|
||||
Version: 0.9.2
|
||||
Version: 0.9.8
|
||||
Release: 1%{?dist}
|
||||
Summary: An easy-to-use data compression library
|
||||
License: GPLv3+
|
||||
URL: https://github.com/fangq/%{name}
|
||||
Source0: https://github.com/fangq/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: https://github.com/lloyd/easylzma/archive/0.0.7/easylzma-0.0.7.tar.gz
|
||||
BuildRequires: cmake gcc-c++ zlib-devel
|
||||
BuildRequires: gcc-c++ zlib-devel
|
||||
|
||||
%description
|
||||
ZMat is a portable C library to enable easy-to-use data compression
|
||||
|
|
@ -22,7 +21,7 @@ between speed and compression time.
|
|||
%package devel
|
||||
Summary: Development files for zmat - an easy-to-use data compression library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: lz4-devel
|
||||
Requires: zlib-devel
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package provides the headers files and tools you may need to
|
||||
|
|
@ -38,32 +37,20 @@ The %{name}-static package provides the static library you may need to
|
|||
develop applications using zmat.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -b 1
|
||||
rm -rf src/easylzma
|
||||
cp -r ../easylzma-0.0.7 src/easylzma
|
||||
|
||||
%autosetup -n %{name}-%{version}
|
||||
chmod a-x src/easylzma/pavlov/*
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
mkdir lib
|
||||
mkdir include
|
||||
pushd src
|
||||
pushd easylzma
|
||||
%cmake .
|
||||
%make_build
|
||||
mv easylzma-0.0.7 easylzma-0.0.8
|
||||
cp -r easylzma-0.0.8/include/easylzma ../../include
|
||||
popd
|
||||
popd
|
||||
|
||||
pushd src
|
||||
%make_build clean
|
||||
%make_build lib BINARY=lib%{name}.a CPPOPT="%{optflags} -fPIC"
|
||||
cp ../lib%{name}.a ../lib/
|
||||
cp zmatlib.h ../include
|
||||
%make_build lib CPPOPT="%{optflags} -fPIC"
|
||||
mv ../lib/lib%{name}.a ../
|
||||
%make_build clean
|
||||
%make_build dll BINARY=lib%{name}.so CPPOPT="%{optflags} -fPIC"
|
||||
mv ../lib%{name}.so ../lib/lib%{name}.so.%{version}
|
||||
%make_build dll CPPOPT="%{optflags} -fPIC"
|
||||
mv ../lib/lib%{name}.so ../lib/lib%{name}.so.%{version}
|
||||
mv ../lib%{name}.a ../lib
|
||||
popd
|
||||
|
||||
|
||||
|
|
@ -71,11 +58,6 @@ popd
|
|||
install -m 755 -pd %{buildroot}/%{_includedir}/
|
||||
install -m 644 -pt %{buildroot}/%{_includedir}/ include/%{name}lib.h
|
||||
|
||||
install -m 755 -pd %{buildroot}/%{_includedir}/easylzma
|
||||
install -m 644 -pt %{buildroot}/%{_includedir}/easylzma include/easylzma/common.h
|
||||
install -m 644 -pt %{buildroot}/%{_includedir}/easylzma include/easylzma/compress.h
|
||||
install -m 644 -pt %{buildroot}/%{_includedir}/easylzma include/easylzma/decompress.h
|
||||
|
||||
install -m 755 -pd %{buildroot}/%{_libdir}/
|
||||
install -m 755 -pt %{buildroot}/%{_libdir}/ lib/lib%{name}.so.%{version}
|
||||
install -m 644 -pt %{buildroot}/%{_libdir}/ lib/lib%{name}.a
|
||||
|
|
@ -93,11 +75,7 @@ popd
|
|||
%{_libdir}/lib%{name}.so.1
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/easylzma
|
||||
%{_includedir}/%{name}lib.h
|
||||
%{_includedir}/easylzma/common.h
|
||||
%{_includedir}/easylzma/compress.h
|
||||
%{_includedir}/easylzma/decompress.h
|
||||
%{_libdir}/lib%{name}.so
|
||||
|
||||
%files static
|
||||
|
|
@ -105,5 +83,8 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon May 25 2020 Qianqian Fang <fangqq@gmail.com> - 0.9.8-1
|
||||
- Update to new release v0.9.8
|
||||
|
||||
* Mon Oct 14 2019 Qianqian Fang <fangqq@gmail.com> - 0.9.2-1
|
||||
- Initial package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue