[pngquant/f18] Initial import (#962820)

besser82 besser82 at fedoraproject.org
Fri May 17 13:44:43 UTC 2013


commit f910b51411896dc0af0eaf1239ce02cb52bead3c
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Fri May 17 15:43:51 2013 +0200

    Initial import (#962820)

 .gitignore    |    1 +
 pngquant.spec |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6b8bb83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pngquant-1.8.3-src.tar.bz2
diff --git a/pngquant.spec b/pngquant.spec
new file mode 100644
index 0000000..1c37aa8
--- /dev/null
+++ b/pngquant.spec
@@ -0,0 +1,64 @@
+#just in case this will be a must in future.
+%global _hardened_build 1
+
+Name:		pngquant
+Version:	1.8.3
+Release:	2%{?dist}
+Summary:	PNG quantization tool for reducing image file size
+License:	BSD with advertising
+URL:		http://%{name}.org
+Source0:	http://%{name}.org/%{name}-%{version}-src.tar.bz2
+
+BuildRequires:	libpng-devel
+
+
+%description
+%{name} converts 24/32-bit RGBA PNG images to 8-bit palette with
+alpha channel preserved. Such images are compatible with all modern web
+browsers and a compatibility setting is available to help transparency
+degrade well in Internet Explorer 6. Quantized files are often 40-70
+percent smaller than their 24/32-bit version. %{name} uses the
+median cut algorithm.
+
+
+%prep
+%setup -q
+
+
+%build
+# Using {C,LD}FLAGSADD here makes sure {optflags}
+# are appended to {C,LD}FLAGS set in Makefile.
+
+make	%{?_smp_mflags} \
+	CFLAGSADD="%{optflags}" \
+	LDFLAGSADD="%{optflags}"
+
+
+%install
+# repeating {C,LD}FLAGSADD from plain `make`
+# is required during install or `make install`
+# will start recompiling source without them.
+
+%make_install \
+	PREFIX=%{_prefix} \
+	CFLAGSADD="%{optflags}" \
+	LDFLAGSADD="%{optflags}"
+
+install	-Dpm0644 %{name}.1 \
+	%{buildroot}/%{_mandir}/man1/%{name}.1
+
+
+%files
+%doc README.md CHANGELOG COPYRIGHT
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+
+
+%changelog
+* Fri May 17 2013 Björn Esser <bjoern.esser at gmail.com> - 1.8.3-2
+- changed License: BSD --> BSD with advertising
+- removed -n{name}-{version} from prep
+- removed >= 1.2.46-1 from BuildRequires: libpng-devel
+
+* Tue May 14 2013 Björn Esser <bjoern.esser at gmail.com> - 1.8.3-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..666bf97 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d1015f115bf396c9eed41a17ed8e898c  pngquant-1.8.3-src.tar.bz2


More information about the scm-commits mailing list