modify spec
This commit is contained in:
parent
082c64098d
commit
6b9c84d0d0
BIN
pngcrush-1.8.13-nolib.tar.xz
Normal file
BIN
pngcrush-1.8.13-nolib.tar.xz
Normal file
Binary file not shown.
35
pngcrush.spec
Normal file
35
pngcrush.spec
Normal file
@ -0,0 +1,35 @@
|
||||
%global _hardened_build 1
|
||||
Summary: Optimizer for PNG (Portable Network Graphics) files
|
||||
Name: pngcrush
|
||||
Version: 1.8.13
|
||||
Release: 1
|
||||
License: zlib
|
||||
URL: http://pmt.sourceforge.net/%{name}/
|
||||
Source0: https://master.dl.sourceforge.net/project/pmt/pngcrunloadh/1.8.13/pngcrush-1.8.13-nolib.tar.xz
|
||||
BuildRequires: docbook-utils gcc libpng-devel pkgconfig zlib-devel
|
||||
%description
|
||||
pngcrush is a commandline optimizer for PNG (Portable Network Graphics) files.
|
||||
Its main purpose is to reduce the size of the PNG IDAT datastream by trying
|
||||
various compression levels and PNG filter methods. It also can be used to
|
||||
remove unwanted ancillary chunks, or to add certain chunks including gAMA,
|
||||
tRNS, iCCP, and textual chunks.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-nolib
|
||||
|
||||
%build
|
||||
rm -f z*.h crc32.h deflate.h inf*.h trees.h png*.h # force using system headers
|
||||
pngflags=$(pkg-config --cflags --libs libpng)
|
||||
gcc %{optflags} $pngflags -lz -o %{name} %{name}.c
|
||||
|
||||
%install
|
||||
%{__install} -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%files
|
||||
%doc ChangeLog.html
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 28 2020 jialei <jialei17@huawei.com> - 1.8.13-1
|
||||
- package init
|
||||
4
pngcrush.yaml
Normal file
4
pngcrush.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: https://git.code.sf.net/p/pmt/code
|
||||
tag_prefix: ""
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user