rpms/pngnq/F-9 pngnq-0.5-getopt.patch, NONE, 1.1 pngnq-0.5-makefile.patch, NONE, 1.1 pngnq.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Gerd Hoffmann kraxel at fedoraproject.org
Thu Nov 6 10:51:14 UTC 2008


Author: kraxel

Update of /cvs/pkgs/rpms/pngnq/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20859

Modified Files:
	.cvsignore sources 
Added Files:
	pngnq-0.5-getopt.patch pngnq-0.5-makefile.patch pngnq.spec 
Log Message:
initial package F9

pngnq-0.5-getopt.patch:

--- NEW FILE pngnq-0.5-getopt.patch ---
--- pngcomp.c.ori	2008-07-26 19:09:13.000000000 +0200
+++ pngcomp.c	2008-07-26 19:17:54.000000000 +0200
@@ -41,6 +41,7 @@
 #include <string.h>
 #include <math.h>
 #include <ctype.h>
+#include <unistd.h>
 
 #include "png.h"
 #include "rwpng.h"

pngnq-0.5-makefile.patch:

--- NEW FILE pngnq-0.5-makefile.patch ---
diff -up 0.5/Makefile.orig 0.5/Makefile
--- 0.5/Makefile.orig	2007-11-14 22:03:03.000000000 +0100
+++ 0.5/Makefile	2008-10-31 15:23:53.000000000 +0100
@@ -25,15 +25,16 @@ DISTFILES = LICENSE README README.pngcom
 
 # Installation options
 # Change these to suit your system's requirements
-BINDIR=/usr/bin
-MANDIR=/usr/share/man/man1
-DOCDIR=/usr/share/doc/pngnq
+BINDIR=$(DESTDIR)/usr/bin
+MANDIR=$(DESTDIR)/usr/share/man/man1
+DOCDIR=$(DESTDIR)/usr/share/doc/pngnq
 
 # Build options
 PNGINC = ${shell libpng-config --cflags}
 PNGLIB = ${shell libpng-config --ldflags}
 
-CFLAGS = -O3 -g -Wall -pedantic -I. -D VERSION=\"$(VERSION)\" $(PNGINC) -funroll-loops -fomit-frame-pointer 
+CFLAGS ?= -O3 -g -Wall -pedantic -funroll-loops -fomit-frame-pointer 
+CFLAGS += -I. -D VERSION=\"$(VERSION)\" $(PNGINC)
 
 LDFLAGS = $(PNGLIB)
 
@@ -72,7 +73,12 @@ bindist: all
 
 # Install
 install: all
+	install -d ${BINDIR} 
 	install -t ${BINDIR} pngnq pngcomp
-	install -t ${MANDIR} pngnq.1 
+	install -d ${MANDIR} 
+	install -m 0644 -t ${MANDIR} pngnq.1 
+
+install-doc:
 	install -d ${DOCDIR} 
 	install -t ${DOCDIR} README LICENSE README.pngcomp 
+


--- NEW FILE pngnq.spec ---
Name: pngnq
Summary: Pngnq is a tool for quantizing PNG images in RGBA format
Version: 0.5
Release: 5%{?dist}
License: BSD with advertising and MIT and BSD
Group: Applications/Multimedia
URL: http://pngnq.sourceforge.net/
Source0: http://dl.sf.net/pngnq/pngnq-%{version}-src.tar.gz

# Makefile tweaks for Fedora build.
Patch0: %{name}-%{version}-makefile.patch

# http://sourceforge.net/tracker/index.php?func=detail&aid=2211648&group_id=213072&atid=1024254
Patch1: %{name}-%{version}-getopt.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libpng-devel

%description
Pngnq is a tool for quantizing PNG images in RGBA format.

The neuquant algorithm uses a neural network to optimise the color
map selection. This is fast and quite accurate, giving good results
on many types of images.

%prep
%setup -q -n %{version}
%patch0 -p1
%patch1 -p0

%build
export CFLAGS="%{optflags}"
%{__make} %{?_smp_mflags} all

%install
%{__rm} -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} install

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc LICENSE README*
%{_bindir}/*
%{_mandir}/man1/*1*

%changelog
* Mon Nov 3 2008 - Gerd Hoffmann <kraxel at redhat.com> - 0.5-5.fc9
- add comments to the patches.
- fix rpm macro usage.

* Fri Oct 31 2008 - Gerd Hoffmann <kraxel at redhat.com> - 0.5-4.fc9
- Updated Licence tag, according to advice from fedora-legal.

* Fri Oct 31 2008 - Gerd Hoffmann <kraxel at redhat.com> - 0.5-3.fc9
- Use $RPM_OPT_FLAGS.
- Also package up pngcomp.

* Wed Oct 15 2008 - Gerd Hoffmann <kraxel at redhat.com> - 0.5-2.fc9
- add dist tag to release.
- fix rpmlint warnings.
- TODO: licence to be clarified.

* Mon Jul 26 2008 - Patrick Steiner <patrick.steiner at a1.net> - 0.5-1
- Initial package.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pngnq/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Nov 2008 22:43:15 -0000	1.1
+++ .cvsignore	6 Nov 2008 10:50:43 -0000	1.2
@@ -0,0 +1 @@
+pngnq-0.5-src.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pngnq/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Nov 2008 22:43:15 -0000	1.1
+++ sources	6 Nov 2008 10:50:43 -0000	1.2
@@ -0,0 +1 @@
+14aff764008dfd55e816d3fe08636cb9  pngnq-0.5-src.tar.gz




More information about the fedora-extras-commits mailing list