commit
5accfce9af
BIN
zopfli-1.0.1.tar.gz
Normal file
BIN
zopfli-1.0.1.tar.gz
Normal file
Binary file not shown.
37
zopfli.spec
Normal file
37
zopfli.spec
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user