[521] | 1 | Name: optipng |
---|
[2660] | 2 | Version: 0.6.5 |
---|
[521] | 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: PNG optimizer and converter |
---|
| 5 | Summary(ja): PNG オプティマイザ と コンバータ |
---|
| 6 | |
---|
| 7 | Group: Applications/Graphics |
---|
| 8 | License: zlib |
---|
| 9 | URL: http://optipng.sourceforge.net/ |
---|
| 10 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
[2660] | 11 | Patch0: fix_builderror.patch |
---|
| 12 | |
---|
[521] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: zlib-devel libpng-devel |
---|
| 16 | |
---|
| 17 | %description |
---|
| 18 | OptiPNG is a PNG optimizer that recompresses image files to a smaller size, |
---|
| 19 | without losing any information. This program also converts external formats |
---|
| 20 | (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks |
---|
| 21 | and corrections. |
---|
| 22 | |
---|
| 23 | %description -l ja |
---|
| 24 | OptiPNG は、PNG 形式の画像ファイルを何ら情報を失うことなく |
---|
| 25 | より小さなサイズへと再圧縮するオプティマイザです。 |
---|
| 26 | このプログラムは、外部フォーマット (BMP、GIF、PNM および TIFF)から |
---|
| 27 | 最適化された PNG 形式へと変換し、PNG 形式の整合性チェックと訂正を行います。 |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q |
---|
[2660] | 31 | %patch0 -p1 |
---|
[521] | 32 | |
---|
| 33 | # Ensure system libs and headers are used; as of 0.6.1 pngxtern will use |
---|
| 34 | # the bundled headers if present even with -with-system-*, causing failures. |
---|
| 35 | rm -rf lib/libpng lib/zlib |
---|
| 36 | |
---|
| 37 | %define makefile gcc.mak |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | ./configure -with-system-zlib -with-system-libpng |
---|
| 41 | cd src/ |
---|
| 42 | make -f scripts/%{makefile} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"\ |
---|
| 43 | LDFLAGS="$RPM_OPT_FLAGS" |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | cd src/ |
---|
| 49 | make -f scripts/%{makefile} install DESTDIR="$RPM_BUILD_ROOT"\ |
---|
| 50 | prefix="%{_prefix}" \ |
---|
| 51 | man1dir="%{_mandir}/man1" |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root,-) |
---|
| 59 | %doc README.txt LICENSE.txt doc/* |
---|
| 60 | %{_bindir}/optipng |
---|
| 61 | %{_mandir}/man1/optipng.1* |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %changelog |
---|
[2660] | 65 | * Sun Feb 6 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1 |
---|
| 66 | - new upstream release |
---|
| 67 | - added Patch0 to fix build error |
---|
| 68 | |
---|
[828] | 69 | * Thu Apr 15 2010 Shu KONNO <owa@bg.wakwak.com> - 0.6.4-1 |
---|
| 70 | - new upstream release |
---|
| 71 | |
---|
[521] | 72 | * Wed Jul 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1 |
---|
| 73 | - initial build for VineSeed |
---|
| 74 | |
---|
| 75 | * Wed Nov 12 2008 Till Maas <opensource@till.name> - 0.6.2-1 |
---|
| 76 | - Update to new release to fix buffer overflow |
---|
| 77 | - Red Hat Bugzilla #471206 |
---|
| 78 | |
---|
| 79 | * Thu Aug 28 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.6.1-1 |
---|
| 80 | - 0.6.1. |
---|
| 81 | |
---|
| 82 | * Thu Feb 14 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.5.5-4 |
---|
| 83 | - Apply sf.net patch #1790969 to fix crash with -log. |
---|
| 84 | - Cosmetic specfile changes. |
---|
| 85 | |
---|
| 86 | * Thu Aug 02 2007 Till Maas <opensource till name> - 0.5.5-3 |
---|
| 87 | - update License: Tag according to new Guidelines |
---|
| 88 | |
---|
| 89 | * Wed Feb 14 2007 Till Maas <opensource till name> - 0.5.5-2 |
---|
| 90 | - rebuild because of new libpng |
---|
| 91 | |
---|
| 92 | * Tue Feb 06 2007 Till Maas <opensource till name> - 0.5.5-1 |
---|
| 93 | - Version bump |
---|
| 94 | |
---|
| 95 | * Wed Nov 29 2006 Till Maas <opensource till name> - 0.5.4-4 |
---|
| 96 | - splitting makefile patches |
---|
| 97 | - make LDFLAGS=$RPM_OPT_FLAGS |
---|
| 98 | - Use own makefile define |
---|
| 99 | - Fixing 216784 with upstream patch |
---|
| 100 | |
---|
| 101 | * Wed Oct 11 2006 Till Maas <opensource till name> - 0.5.4-3 |
---|
| 102 | - bumping release because of errors while importing to extras |
---|
| 103 | |
---|
| 104 | * Tue Oct 10 2006 Till Maas <opensource till name> - 0.5.4-2 |
---|
| 105 | - shortening Summary |
---|
| 106 | |
---|
| 107 | * Thu Sep 14 2006 Till Maas <opensource till name> - 0.5.4-1 |
---|
| 108 | - version bump |
---|
| 109 | - use system zlib and libpng |
---|
| 110 | - link without "-s" flag for non-empty debuginfo |
---|
| 111 | - use DESTDIR |
---|
| 112 | |
---|
| 113 | * Fri Jul 28 2006 Till Maas <opensource till name> - 0.5.3-1 |
---|
| 114 | - version bump |
---|
| 115 | - Changed license tag back to zlib/libpng (#198616 rpmlint) |
---|
| 116 | - use $RPM_OPT_FLAGS instead of %%{optflags} |
---|
| 117 | |
---|
| 118 | * Thu Jul 06 2006 Till Maas <opensource till name> - 0.5.2-2 |
---|
| 119 | - Changed license tag from zlib/libpng to zlib |
---|
| 120 | |
---|
| 121 | * Tue Jul 04 2006 Till Maas <opensource till name> - 0.5.2-1 |
---|
| 122 | - Created from scratch for fedora extras |
---|