Sync from SUSE:SLFO:Main zopfli revision 949ab399321d4a411c320b9ba68bcc01

This commit is contained in:
Adrian Schröter 2024-05-04 02:38:56 +02:00
commit 864c25e625
5 changed files with 226 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

2
baselibs.conf Normal file
View File

@ -0,0 +1,2 @@
libzopfli1
libzopflipng1

BIN
zopfli-1.0.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

87
zopfli.changes Normal file
View File

@ -0,0 +1,87 @@
-------------------------------------------------------------------
Sun Apr 30 10:45:46 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Build AVX2 enabled hwcaps library for x86_64-v3
-------------------------------------------------------------------
Wed Dec 11 14:19:50 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Fix download url
-------------------------------------------------------------------
Wed Dec 11 12:17:07 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
- Update to version 1.0.3
* No changelog available
- Spec file changes
* Use cmake for building
-------------------------------------------------------------------
Fri Mar 2 11:23:37 UTC 2018 - olaf@aepfle.de
- Escape options for date(1) in spec file
-------------------------------------------------------------------
Tue Feb 20 17:07:44 UTC 2018 - bwiedemann@suse.com
- Fixup reproducible package man page build
-------------------------------------------------------------------
Mon Dec 25 19:51:45 UTC 2017 - mpluskal@suse.com
- Install missing headers
-------------------------------------------------------------------
Mon Sep 4 11:43:51 UTC 2017 - mpluskal@suse.com
- Update to version 1.0.1+git.20170707:
* Faster stdout writing
-------------------------------------------------------------------
Sun Jul 10 07:03:33 UTC 2016 - mpluskal@suse.com
- Update to version 1.0.1+git.20160527:
* Fix excessive usage of malloc/free
* Avoid min name conflict
* Update README.zopflipng
* Update README
* Update README.zopflipng
* Update katajainen.c
* standardize code style
* try both with and without OptimizeHuffmanForRle, for better compression on small files
-------------------------------------------------------------------
Mon May 16 19:19:26 UTC 2016 - jengelh@inai.de
- Update summary and compact filelists. Retain timestamps where
possible.
-------------------------------------------------------------------
Mon May 16 18:49:08 UTC 2016 - mpluskal@suse.com
- Update to version 1.0.1+git.20160511:
* Fix excessive usage of malloc/free
* Update squeeze.c
* make the sort stable, and move some function definitions to header for speedup
* Update README.zopflipng
* Update README
* Update README.zopflipng
* Update katajainen.c
* standardize code style
* try both with and without OptimizeHuffmanForRle, for better compression on small files
- Add _service and Makefile
* merged from package in home:StefanBruens:branches:Archiving
- Provide zopflipng (boo#980155)
- Corect generation of manpages (boo#980149)
-------------------------------------------------------------------
Sun Jan 3 14:09:42 UTC 2016 - p.drouand@gmail.com
- Update to version 1.0.1
* No changelog available
-------------------------------------------------------------------
Sat Apr 18 10:05:38 UTC 2015 - mpluskal@suse.com
- Initial package for version 1.0.0

111
zopfli.spec Normal file
View File

@ -0,0 +1,111 @@
#
# spec file for package zopfli
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pngname zopflipng
%define libversion 1.0.3
%define pnglibversion 1.0.3
%define libname lib%{name}1
%define libpngname lib%{name}png1
%define releasedateepoch 1574898960
Name: zopfli
Version: 1.0.3
Release: 0
Summary: GZip compatible compression utlity
License: Apache-2.0
Group: Productivity/Archiving/Compression
URL: https://github.com/google/zopfli
Source0: https://github.com/google/zopfli/archive/zopfli-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: cmake >= 2.8.11
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: make
%{?suse_build_hwcaps_libs}
%description
Example program for libzopfli to create gzip compatible files. Files can be
decompressed with e.g. gzip.
%package -n %{libname}
Summary: Deflate/zlib compatible compression library
Group: System/Libraries
%description -n %{libname}
Zopfli Compression Algorithm is a compression library programmed in C to
perform very good, but slow, deflate or zlib compression.
%package -n %{libpngname}
Summary: Deflate/zlib compatible compression library
Group: System/Libraries
%description -n %{libpngname}
This package contain the libzopflipng PNG optimizer library.
%package -n libzopfli-devel
Summary: Header files for libzopfli, a gzip-compatible compressor
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: %{libpngname} = %{version}
%description -n libzopfli-devel
The basic function to compress data is ZopfliCompress in zopfli.h. Use the
ZopfliOptions object to set parameters that affect the speed and compression.
Use the ZopfliInitOptions function to place the default values in the
ZopfliOptions first.
%prep
%autosetup -n %{name}-%{name}-%{version}
%build
%cmake
%cmake_build
# help2man since 1.47.1 respects SOURCE_DATE_EPOCH
export SOURCE_DATE_EPOCH=%{releasedateepoch}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RPM_BUILD_DIR/%{name}-%{name}-%{version}/build
help2man --help-option="-h" --version-string=%{version} --no-info --no-discard-stderr ./%{name} > %{name}.1
help2man --help-option="-h" --version-string=%{version} --no-info --no-discard-stderr ./%{pngname} > %{pngname}.1
%install
%cmake_install
install -D -pm 0644 build/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -D -pm 0644 build/%{pngname}.1 %{buildroot}%{_mandir}/man1/%{pngname}.1
%ldconfig_scriptlets -n %{libname}
%ldconfig_scriptlets -n %{libpngname}
%files
%doc README README.zopflipng
%license COPYING
%{_bindir}/%{name}
%{_bindir}/zopflipng
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/zopflipng.1%{?ext_man}
%files -n %{libname}
%{_libdir}/libzopfli.so.*
%files -n %{libpngname}
%{_libdir}/libzopflipng.so.*
%files -n libzopfli-devel
%{_libdir}/libzopfli*.so
%{_includedir}/zopfli.h
%{_includedir}/zopflipng_lib.h
%{_libdir}/cmake/Zopfli
%changelog