!1 add zopfli

Merge pull request !1 from compile_success/master
This commit is contained in:
openeuler-ci-bot 2020-01-10 14:29:22 +08:00 committed by Gitee
commit 5accfce9af
2 changed files with 37 additions and 0 deletions

BIN
zopfli-1.0.1.tar.gz Normal file

Binary file not shown.

37
zopfli.spec Normal file
View File

@ -0,0 +1,37 @@
Name: zopfli
Version: 1.0.1
Release: 8
Summary: Compression library programmed in C
License: ASL 2.0
URL: https://github.com/google/zopfli
Source0: https://github.com/google/zopfli/archive/zopfli-%{version}.tar.gz
BuildRequires: gcc-c++
%description
Zopfli Compression Algorithm is a compression library programmed in C to perform
very good, but slow, deflate or zlib compression.
%prep
%autosetup -n zopfli-zopfli-%{version}
%build
cflags=`sed -n '/^CFLAGS/=' Makefile`
cxxflags=`sed -n '/^CXXFLAGS/=' Makefile`
sed -i "${cflags}s#\$#& %{optflags}#" Makefile
sed -i "${cxxflags}s#\$#& %{optflags}#" Makefile
%make_build zopfli zopflipng
%install
mkdir -p %{buildroot}%{_bindir}
cp zopfli zopflipng %{buildroot}%{_bindir}/
chmod 0755 %{buildroot}%{_bindir}/zopfli*
%files
%license COPYING
%doc CONTRIBUTORS README README.zopflipng
%{_bindir}/zopfli*
%changelog
* Mon Jan 6 2020 zhujunhao <zhujunhao5@huawei.com> - 1.0.1-8
- Package init