|
@@ -1,5 +1,5 @@
|
|
|
Name: optipng
|
|
|
-Version: 0.6.5
|
|
|
+Version: 0.7
|
|
|
Release: 1%{?_dist_release}
|
|
|
Summary: PNG optimizer and converter
|
|
|
Summary(ja): PNG オプティマイザ と コンバータ
|
|
@@ -8,7 +8,7 @@ Group: Applications/Graphics
|
|
|
License: zlib
|
|
|
URL: http://optipng.sourceforge.net/
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
-Patch0: fix_builderror.patch
|
|
|
+#Patch0: fix_builderror.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
@@ -28,27 +28,22 @@ OptiPNG は、PNG 形式の画像ファイルを何ら情報を失うことな
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-%patch0 -p1
|
|
|
+#%patch0 -p1
|
|
|
|
|
|
# Ensure system libs and headers are used; as of 0.6.1 pngxtern will use
|
|
|
# the bundled headers if present even with -with-system-*, causing failures.
|
|
|
rm -rf lib/libpng lib/zlib
|
|
|
|
|
|
-%define makefile gcc.mak
|
|
|
+#%define makefile gcc.mak
|
|
|
|
|
|
%build
|
|
|
-./configure -with-system-zlib -with-system-libpng
|
|
|
-cd src/
|
|
|
-make -f scripts/%{makefile} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"\
|
|
|
- LDFLAGS="$RPM_OPT_FLAGS"
|
|
|
-
|
|
|
+./configure -with-system-zlib -with-system-libpng --prefix=/usr
|
|
|
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
cd src/
|
|
|
-make -f scripts/%{makefile} install DESTDIR="$RPM_BUILD_ROOT"\
|
|
|
- prefix="%{_prefix}" \
|
|
|
- man1dir="%{_mandir}/man1"
|
|
|
+make install DESTDIR="$RPM_BUILD_ROOT" prefix="%{_prefix}" man1dir="%{_mandir}/man1"
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -58,10 +53,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc README.txt LICENSE.txt doc/*
|
|
|
%{_bindir}/optipng
|
|
|
-%{_mandir}/man1/optipng.1*
|
|
|
+%{_mandir}/man1/optipng.1.gz
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Mar 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7-1
|
|
|
+- new upstream release
|
|
|
+- dropt patch0
|
|
|
+
|
|
|
* Sun Feb 6 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
|
|
|
- new upstream release
|
|
|
- added Patch0 to fix build error
|