Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0a5ca49851bc207216ff5e03b93d9f43 > files > 4

optipng-0.6.3-1mdv2010.0.src.rpm

Name:           optipng
Version:        0.6.3
Release:        %mkrel 1
Summary:        A PNG optimizer and converter
Group:          Graphics
License:        zlib
URL:            http://optipng.sourceforge.net/
Source0:        http://surfnet.dl.sourceforge.net/sourceforge/optipng/optipng-%{version}.tar.gz
Patch0:         optipng-0.6.1-use-system-libs.patch
Patch1:		optipng-0.6.3-fix-str-fmt.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

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 -p0
%patch1 -p0

%build
./configure -with-system-zlib -with-system-libpng
cd lib/pngxtern
make -f scripts/gcc.mak CFLAGS="%{optflags} %{ldflags}"
cd -
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}
%makeinstall_std prefix=%{_prefix} man1dir=%{_mandir}/man1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.txt LICENSE.txt doc/*
%{_bindir}/optipng
%{_mandir}/man1/optipng.*


%changelog
* Sun Jul 26 2009 Emmanuel Andry <eandry@mandriva.org> 0.6.3-1mdv2010.0
+ Revision: 400437
- New version 0.6.3
- drop security patch
- add patch to fix string format error (reported upstream)

* Thu Mar 05 2009 Frederik Himpe <fhimpe@mandriva.org> 0.6.2-2mdv2009.1
+ Revision: 349137
- Apply 0.6.2.1 security patch

* Wed Nov 19 2008 Frederik Himpe <fhimpe@mandriva.org> 0.6.2-1mdv2009.1
+ Revision: 304470
- update to new version 0.6.2

* Mon Jul 21 2008 Funda Wang <fundawang@mandriva.org> 0.6.1-1mdv2009.0
+ Revision: 239401
- New version 0.6.1
- rework systemlibs patch

* Thu May 22 2008 Frederik Himpe <fhimpe@mandriva.org> 0.5.5-2mdv2009.0
+ Revision: 210092
- Fix license short name
- Rebuild with new toolchain

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - fix man pages


* Wed Mar 14 2007 Gustavo De Nardin <gustavodn@mandriva.com> 0.5.5-1mdv2007.1
+ Revision: 143316
- upgrade to version 0.5.5 (patch from Frederik Himpe <fhimpe telenet.be>)
  - dropped old patches already applied upstream

* Mon Mar 05 2007 Nicolas Lécureuil <neoclust@mandriva.org> 0.5.4-2mdv2007.1
+ Revision: 132759
- Fix group

* Sun Jan 07 2007 Emmanuel Andry <eandry@mandriva.org> 0.5.4-1mdv2007.1
+ Revision: 105257
- Import optipng