|
|
@ -1,16 +1,12 @@
|
|
|
|
%global makefile gcc.mak
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: optipng
|
|
|
|
Name: optipng
|
|
|
|
Version: 0.6.5
|
|
|
|
Version: 0.7
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: PNG optimizer and converter
|
|
|
|
Summary: PNG optimizer and converter
|
|
|
|
|
|
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
License: zlib
|
|
|
|
License: zlib
|
|
|
|
URL: http://optipng.sourceforge.net/
|
|
|
|
URL: http://optipng.sourceforge.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://downloads.sourceforge.net/optipng/%{name}-%{version}.tar.gz
|
|
|
|
# http://sf.net/tracker/?func=detail&aid=3294326&group_id=151404&atid=780915
|
|
|
|
|
|
|
|
Patch0: %{name}-0.6.5-setjmp-include.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: zlib-devel libpng-devel
|
|
|
|
BuildRequires: zlib-devel libpng-devel
|
|
|
@ -24,26 +20,26 @@ and corrections.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
|
|
|
# Ensure system libs and headers are used; as of 0.6.3 pngxtern will use
|
|
|
|
# the bundled headers if present even with -with-system-*, causing failures.
|
|
|
|
# the bundled headers if present even with -with-system-*, causing failures.
|
|
|
|
rm -rf lib/libpng lib/zlib
|
|
|
|
rm -rf src/libpng src/zlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
./configure -with-system-zlib -with-system-libpng
|
|
|
|
./configure -prefix=%{_prefix} -mandir=%{_mandir} \
|
|
|
|
cd src/
|
|
|
|
-with-system-zlib -with-system-libpng
|
|
|
|
make -f scripts/%{makefile} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"\
|
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
LDFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
cd src/
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make -f scripts/%{makefile} install DESTDIR="$RPM_BUILD_ROOT"\
|
|
|
|
chmod -c 755 $RPM_BUILD_ROOT%{_bindir}/optipng
|
|
|
|
prefix="%{_prefix}" \
|
|
|
|
|
|
|
|
man1dir="%{_mandir}/man1"
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
@ -58,6 +54,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Mar 2 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.7-1
|
|
|
|
|
|
|
|
- Update to 0.7.
|
|
|
|
|
|
|
|
- Build with $RPM_LD_FLAGS.
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-3
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|