You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
19 years ago
|
Name: optipng
|
||
|
Version: 0.5.4
|
||
|
Release: 1%{?dist}
|
||
|
Summary: OptiPNG is a PNG optimizer and converter
|
||
|
|
||
|
Group: Applications/Multimedia
|
||
|
License: zlib/libpng
|
||
|
URL: http://optipng.sourceforge.net/
|
||
|
Source0: http://surfnet.dl.sourceforge.net/sourceforge/optipng/optipng-%{version}.tar.gz
|
||
|
Patch0: optipng-0.5.4-makefile.patch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
|
BuildRequires: zlib-devel libpng-devel
|
||
|
|
||
|
%description
|
||
|
OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
|
||
|
without losing any information. This program also converts external formats
|
||
|
(BMP, GIF, PNM; TIFF support is coming up) to optimized PNG, and performs PNG
|
||
|
integrity checks and corrections.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch0 -p1
|
||
|
|
||
|
%build
|
||
|
cd src/
|
||
|
make -f scripts/gcc.mak %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
||
|
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
cd src/
|
||
|
make -f scripts/gcc.mak install DESTDIR="$RPM_BUILD_ROOT"\
|
||
|
prefix="%{_prefix}" \
|
||
|
man1dir="%{_mandir}/man1"
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc README.txt LICENSE.txt doc/*
|
||
|
%{_bindir}/optipng
|
||
|
%{_mandir}/man1/optipng.1.gz
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Thu Sep 14 2006 Till Maas <opensource[AT]till.name> - 0.5.4-1
|
||
|
- version bump
|
||
|
- use system zlib and libpng
|
||
|
- link without "-s" flag for non-empty debuginfo
|
||
|
- use DESTDIR
|
||
|
* Fri Jul 28 2006 Till Maas <opensource[AT]till.name> - 0.5.3-1
|
||
|
- version bump
|
||
|
- Changed license tag back to zlib/libpng (#198616 rpmlint)
|
||
|
- use $RPM_OPT_FLAGS instead of %%{optflags}
|
||
|
* Thu Jul 06 2006 Till Maas <opensource[AT]till.name> - 0.5.2-2
|
||
|
- Changed license tag from zlib/libpng to zlib
|
||
|
* Tue Jul 04 2006 Till Maas <opensource[AT]till.name> - 0.5.2-1
|
||
|
- Created from scratch for fedora extras
|