[521] | 1 | Summary: Pngcrush is an optimizer for PNG files. |
---|
| 2 | Summary(ja): pngcrush - PNG ファイルの最適化ツール |
---|
| 3 | Name: pngcrush |
---|
| 4 | Version: 1.6.4 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | URL: http://pmt.sourceforge.net/pngcrush/ |
---|
| 7 | Source: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}.tar.bz2 |
---|
| 8 | Source1: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}-CHANGELOG.txt |
---|
| 9 | Source2: http://prdownloads.sourceforge.net/pmt/%{name}-%{version}-HELP.txt |
---|
| 10 | License: distributable |
---|
| 11 | Group: Applications/Graphics |
---|
| 12 | Packager: Yasumichi Akahoshi <yasumichi@users.sourceforge.jp> |
---|
| 13 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: zlib-devel |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | Pngcrush is an optimizer for PNG (Portable Network Graphics) files. |
---|
| 18 | Its main purpose is to reduce the size of the PNG IDAT datastream by trying |
---|
| 19 | various compression levels an PNG filter methods. It also can be used to |
---|
| 20 | remove unwanted ancillary chunks, or to add certain chunks including gAMA, |
---|
| 21 | tRNS, iCCP, and textual chunks. |
---|
| 22 | |
---|
| 23 | %description -l ja |
---|
| 24 | Pngcrush は、PNG (Portable Network Graphic) ファイルの最適化ツールです。 |
---|
| 25 | その主な目的は、様々な圧縮レベルや、PNG フィルタ手法を試みて、PNG IDAT |
---|
| 26 | データストリームのサイズを縮小することです。 |
---|
| 27 | また、見られていない補助的なチャンクを削除したり、ガンマ、tRNS、iCCP、 |
---|
| 28 | テキストなど、ある種のチャンクを追加することが可能です。 |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n %{name}-%{version} |
---|
| 32 | |
---|
| 33 | cp -p %{SOURCE1} CHANGELOG |
---|
| 34 | cp -p %{SOURCE2} HELP |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | #make CFLAGS="$RPM_OPT_FLAGS" |
---|
| 38 | %ifnarch %{ix86} |
---|
| 39 | make -f Makefile.ext-zlib ZINC=%{_includedir} ZLIB=%{_libdir} \ |
---|
| 40 | CFLAGS=" -I. -O3 -fomit-frame-pointer -Wall" |
---|
| 41 | %else |
---|
| 42 | make -f Makefile.ext-zlib ZINC=%{_includedir} ZLIB=%{_libdir} |
---|
| 43 | %endif |
---|
| 44 | |
---|
| 45 | %install |
---|
| 46 | [ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot} |
---|
| 47 | |
---|
| 48 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
| 49 | install -m755 pngcrush-zlib $RPM_BUILD_ROOT%{_bindir}/pngcrush |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | [ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot} |
---|
| 53 | |
---|
| 54 | %files |
---|
| 55 | %defattr(-,root,root) |
---|
| 56 | %doc CHANGELOG HELP |
---|
| 57 | %{_bindir}/pngcrush |
---|
| 58 | |
---|
| 59 | %changelog |
---|
| 60 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.4-1vl5 |
---|
| 61 | - applied new versioning policy, spec in utf-8 |
---|
| 62 | |
---|
| 63 | * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.6.4-0vl2 |
---|
| 64 | - define PNG_USE_PNGGCCRD only on ix86 archs |
---|
| 65 | |
---|
| 66 | * Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.4-0vl1 |
---|
| 67 | - new upstream release |
---|
| 68 | - changed Group to Applications/Graphics |
---|
| 69 | |
---|
| 70 | * Fri Dec 31 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl6 |
---|
| 71 | - rebuild with libpng-1.2.8 |
---|
| 72 | |
---|
| 73 | * Sun Oct 17 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl5 |
---|
| 74 | - rebuild with libpng-1.2.7 |
---|
| 75 | |
---|
| 76 | * Mon Aug 30 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl4 |
---|
| 77 | - rebuild with libpng-1.2.6rc3 |
---|
| 78 | - add handle-chunk-macros.patch (HANDLE_CHUNK_* -> PNG_HANDLE_CHUNK_*) |
---|
| 79 | |
---|
| 80 | * Mon Aug 30 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl3 |
---|
| 81 | - use system's shared libraries (patch0) |
---|
| 82 | - add (Build)Requires: libpng(-devel), zlib(-devel) |
---|
| 83 | - modify description (ja) |
---|
| 84 | |
---|
| 85 | * Thu Jul 12 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.5.10-0vl2 |
---|
| 86 | - add URL |
---|
| 87 | - remove Requires: libpng >= 1.2.4 |
---|
| 88 | - use distributable as License |
---|
| 89 | - use more macros |
---|
| 90 | - extract source quietly |
---|
| 91 | |
---|
| 92 | * Thu Jun 03 2004 Yasumichi Akahoshi <yasumichi@users.sourceforge.jp> |
---|
| 93 | - pngcrush.spec was written for pngcrush-1.5.10. |
---|