rpms/autopano-sift-C/devel autopano-sift-C.README.fedora, NONE, 1.1 autopano-sift-C.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/autopano-sift-C/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18882
Modified Files:
.cvsignore sources
Added Files:
autopano-sift-C.README.fedora autopano-sift-C.spec
Log Message:
initial import from livna
--- NEW FILE autopano-sift-C.README.fedora ---
To use with hugin, set the 'Autopano-SIFT:' preference to:
autopano-c-complete.sh
..and the 'Arguments:' preference to:
--output %o --points %p %i
--- NEW FILE autopano-sift-C.spec ---
Summary: SIFT feature detection
Name: autopano-sift-C
Version: 2.4.1
Release: 0.2.20080220svn%{?dist}
License: GPLv2
Group: Applications/Multimedia
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# svn export -r 2904 https://hugin.svn.sourceforge.net/svnroot/hugin/autopano-sift-C/trunk autopano-sift-C
# cd autopano-sift-C
# cmake . && make package_source
Source: %{name}-%{version}.tar.gz
Source1: autopano-sift-C.README.fedora
URL: http://hugin.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpano13-devel libxml2-devel cmake
%description
This package provides an implementation of the SIFT algorithm and a set of
utilities to utilize the algorithm to match two or more images. The output is
created as project file for the hugin panorama stitching software.
%prep
%setup -q
%build
cp -a %{SOURCE1} README.fedora
%cmake .
make VERBOSE=1 %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE README.1ST README.fedora
%{_bindir}/autopano
%{_bindir}/autopano-sift-c
%{_bindir}/generatekeys
%{_bindir}/autopano-c-complete.sh
%{_mandir}/man1/autopano.1.gz
%{_mandir}/man1/generatekeys.1.gz
%{_mandir}/man1/autopano-c-complete.1.gz
%{_mandir}/man7/autopano-sift-c.7.gz
%changelog
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.4.1-0.2.20080220svn
- rebuild
* Wed Feb 20 2008 Bruno Postle <bruno(a)postle.net> 2.4.1-0.1.20080220svn
- update from SVN, 2.4.1 pre-release
- new cmake build system, new tool autopano-sift-c
* Sat Jan 19 2008 Bruno Postle <bruno(a)postle.net> 2.4-5.20080102svn
- put README.fedora on SOURCES, change post-release versioning slightly
* Mon Jan 14 2008 Bruno Postle <bruno(a)postle.net> 2.4-4.1.20080102svn
- update with review fixes
* Wed Jan 02 2008 Bruno Postle <bruno(a)postle.net> 2.4-4svn20080102
- update from SVN Revision: 2597
- switch pano12 dependency to pano13
* Thu Nov 15 2007 Bruno Postle <bruno(a)postle.net> 2.4-3
- fix license tag
- bugfix from http://sourceforge.net/tracker/index.php?func=detail&aid=1808333&group_id...
* Mon Jul 02 2007 Bruno Postle <bruno(a)postle.net> 2.4-2
- add autopano-c-complete.sh
* Tue Feb 19 2007 Bruno Postle <bruno(a)postle.net> 2.4-1
- initial rpm
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/autopano-sift-C/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:48:06 -0000 1.1
+++ .cvsignore 3 Aug 2008 14:08:32 -0000 1.2
@@ -0,0 +1 @@
+autopano-sift-C-2.4.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/autopano-sift-C/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:48:06 -0000 1.1
+++ sources 3 Aug 2008 14:08:32 -0000 1.2
@@ -0,0 +1 @@
+41d00c89fc8b5e2c940eb3fe14c43db6 autopano-sift-C-2.4.1.tar.gz
16 years, 3 months
rpms/foo2zjs/F-8 foo2zjs-dynamic-jbig.patch, NONE, 1.1 foo2zjs.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/foo2zjs/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18758
Modified Files:
.cvsignore sources
Added Files:
foo2zjs-dynamic-jbig.patch foo2zjs.spec
Log Message:
initial import
foo2zjs-dynamic-jbig.patch:
--- NEW FILE foo2zjs-dynamic-jbig.patch ---
diff -uNr foo2zjs-jbig/jbig.c foo2zjs/jbig.c
--- foo2zjs-jbig/jbig.c 2004-06-12 03:33:05.000000000 +0100
+++ foo2zjs/jbig.c 1970-01-01 01:00:00.000000000 +0100
@@ -1,3194 +0,0 @@
-/*
- * Portable Free JBIG image compression library
- *
- * Markus Kuhn -- http://www.cl.cam.ac.uk/~mgk25/
- *
- * Id: jbig.c,v 1.22 2004-06-11 15:17:06+01 mgk25 Exp $
- * $Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $
- *
- * This module implements a portable standard C encoder and decoder
- * using the JBIG lossless bi-level image compression algorithm as
- * specified in International Standard ISO 11544:1993 or equivalently
- * as specified in ITU-T Recommendation T.82. See the file jbig.doc
- * for usage instructions and application examples.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * If you want to use this program under different license conditions,
- * then contact the author for an arrangement.
- *
- * It is possible that certain products which can be built using this
- * software module might form inventions protected by patent rights in
- * some countries (e.g., by patents about arithmetic coding algorithms
- * owned by IBM and AT&T in the USA). Provision of this software by the
- * author does NOT include any licences for any patents. In those
- * countries where a patent licence is required for certain applications
- * of this software module, you will have to obtain such a licence
- * yourself.
- */
-
-#ifdef DEBUG
-#include <stdio.h>
-#else
-#define NDEBUG
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-#include "jbig.h"
-
-
-/* optional export of arithmetic coder functions for test purposes */
-#ifdef TEST_CODEC
-#define ARITH
-#define ARITH_INL
-#else
-#define ARITH static
-#ifdef __GNUC__
-#define ARITH_INL static __inline__
-#else
-#define ARITH_INL static
-#endif
-#endif
-
-#define MX_MAX 127 /* maximal supported mx offset for
- * adaptive template in the encoder */
-
-#define TPB2CX 0x195 /* contexts for TP special pixels */
-#define TPB3CX 0x0e5
-#define TPDCX 0xc3f
-
-/* marker codes */
-#define MARKER_STUFF 0x00
-#define MARKER_RESERVE 0x01
-#define MARKER_SDNORM 0x02
-#define MARKER_SDRST 0x03
-#define MARKER_ABORT 0x04
-#define MARKER_NEWLEN 0x05
-#define MARKER_ATMOVE 0x06
-#define MARKER_COMMENT 0x07
-#define MARKER_ESC 0xff
-
-/* loop array indices */
-#define STRIPE 0
-#define LAYER 1
-#define PLANE 2
-
-/* special jbg_buf pointers (instead of NULL) */
-#define SDE_DONE ((struct jbg_buf *) -1)
-#define SDE_TODO ((struct jbg_buf *) 0)
-
-/* object code version id */
-
-const char jbg_version[] =
-" JBIG-KIT " JBG_VERSION " -- Markus Kuhn -- "
-"$Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $ ";
-
-/*
- * the following array specifies for each combination of the 3
- * ordering bits, which ii[] variable represents which dimension
- * of s->sde.
- */
-static const int iindex[8][3] = {
- { 2, 1, 0 }, /* no ordering bit set */
- { -1, -1, -1}, /* SMID -> illegal combination */
- { 2, 0, 1 }, /* ILEAVE */
- { 1, 0, 2 }, /* SMID + ILEAVE */
- { 0, 2, 1 }, /* SEQ */
- { 1, 2, 0 }, /* SEQ + SMID */
- { 0, 1, 2 }, /* SEQ + ILEAVE */
- { -1, -1, -1 } /* SEQ + SMID + ILEAVE -> illegal combination */
-};
-
-
-/*
- * Array [language][message] with text string error messages that correspond
- * to return values from public functions in this library.
- */
-#define NEMSG 9 /* number of error codes */
-#define NEMSG_LANG 3 /* number of supported languages */
-static const char *errmsg[NEMSG_LANG][NEMSG] = {
- /* English (JBG_EN) */
- {
- "Everything is ok", /* JBG_EOK */
- "Reached specified maximum size", /* JBG_EOK_INTR */
- "Unexpected end of data", /* JBG_EAGAIN */
- "Not enough memory available", /* JBG_ENOMEM */
- "ABORT marker found", /* JBG_EABORT */
- "Unknown marker segment encountered", /* JBG_EMARKER */
- "Incremental BIE does not fit to previous one", /* JBG_ENOCONT */
- "Invalid data encountered", /* JBG_EINVAL */
- "Unimplemented features used" /* JBG_EIMPL */
- },
- /* German (JBG_DE_8859_1) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\366\337e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\374gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\374ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- },
- /* German (JBG_DE_UTF_8) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\303\266\303\237e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\303\274gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\303\274ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- }
-};
-
-
-
-/*
- * The following three functions are the only places in this code, were
- * C library memory management functions are called. The whole JBIG
- * library has been designed in order to allow multi-threaded
- * execution. No static or global variables are used, so all fuctions
- * are fully reentrant. However if you want to use this multi-thread
- * capability and your malloc, realloc and free are not reentrant,
- * then simply add the necessary semaphores or mutex primitives below.
- * In contrast to C's malloc() and realloc(), but like C's calloc(),
- * these functions take two parameters nmemb and size that are multiplied
- * before being passed on to the corresponding C function.
- * This we can catch all overflows during a size_t multiplication a
- * a single place.
- */
-
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t) -1) /* largest value of size_t */
-#endif
-
-static void *checked_malloc(size_t nmemb, size_t size)
-{
- void *p;
-
- /* Full manual exception handling is ugly here for performance
- * reasons. If an adequate handling of lack of memory is required,
- * then use C++ and throw a C++ exception instead of abort(). */
-
- /* assert that nmemb * size <= SIZE_MAX */
- if (size > SIZE_MAX / nmemb)
- abort();
-
[...3651 lines suppressed...]
- 2,2,2,0,2,2,2,1,2,2,0,2,2,2,1,2,2,1,2,1,2,0,2,0,2,0,2,2,2,1,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,0,2,2,2,1,1,1,2,0,0,0,
- 2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,0,2,0,0,1,2,1,1,
- 2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,0,2,2,2,1,2,2,2,
- 2,1,2,1,2,0,2,0,2,1,2,2,2,0,2,2,2,2,2,0,2,2,2,1,2,0,2,0,2,1,2,1,
- 2,0,2,0,2,1,2,1,0,2,0,2,1,2,1,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,
- 2,2,2,2,2,2,2,2,0,2,0,2,1,2,1,2,2,2,2,2,2,2,2,2,0,1,0,0,1,0,1,1,
- 2,2,2,2,2,2,2,2,2,1,2,2,2,0,2,2,2,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2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,1,2,1,2,0,2,0,1,1,1,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-};
--- foo2zjs/Makefile.orig 2008-03-21 15:21:41.000000000 +0000
+++ foo2zjs/Makefile 2008-03-26 09:32:51.000000000 +0000
@@ -122,9 +122,6 @@ FILES = \
Makefile \
foo2zjs.c \
foo2zjs.1in \
- jbig.c \
- jbig.h \
- jbig_tab.c \
zjsdecode.c \
zjsdecode.1in \
zjs.h \
@@ -239,7 +236,7 @@ MANPAGES+= foo2qpdl-wrapper.1 foo2qpdl.1
MANPAGES+= foo2slx-wrapper.1 foo2slx.1 slxdecode.1
MANPAGES+= foo2hiperc-wrapper.1 foo2hiperc.1 hipercdecode.1
MANPAGES+= foo2zjs-pstops.1 arm2hpdl.1 usb_printerid.1
-LIBJBG = jbig.o jbig_tab.o
+LIBJBG = -ljbig
BINPROGS=
ifeq ($(UNAME),Linux)
@@ -376,29 +373,29 @@ all-done:
@echo "yourself."
-foo2zjs: foo2zjs.o $(LIBJBG)
+foo2zjs: foo2zjs.o
$(CC) $(CFLAGS) -o $@ foo2zjs.o $(LIBJBG)
-foo2hp: foo2hp.o $(LIBJBG)
+foo2hp: foo2hp.o
# $(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG) /usr/local/lib/libdmalloc.a
$(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG)
-foo2xqx: foo2xqx.o $(LIBJBG)
+foo2xqx: foo2xqx.o
$(CC) $(CFLAGS) -o $@ foo2xqx.o $(LIBJBG)
-foo2lava: foo2lava.o $(LIBJBG)
+foo2lava: foo2lava.o
$(CC) $(CFLAGS) -o $@ foo2lava.o $(LIBJBG)
-foo2qpdl: foo2qpdl.o $(LIBJBG)
+foo2qpdl: foo2qpdl.o
$(CC) $(CFLAGS) -o $@ foo2qpdl.o $(LIBJBG)
-foo2oak: foo2oak.o $(LIBJBG)
+foo2oak: foo2oak.o
$(CC) $(CFLAGS) -o $@ foo2oak.o $(LIBJBG)
-foo2slx: foo2slx.o $(LIBJBG)
+foo2slx: foo2slx.o
$(CC) $(CFLAGS) -o $@ foo2slx.o $(LIBJBG)
-foo2hiperc: foo2hiperc.o $(LIBJBG)
+foo2hiperc: foo2hiperc.o
$(CC) $(CFLAGS) -o $@ foo2hiperc.o $(LIBJBG)
@@ -461,37 +458,37 @@ getweb: getweb.in Makefile
all-icc2ps:
cd icc2ps; $(MAKE) all
-ok: ok.o $(LIBJBG)
+ok: ok.o
$(CC) $(CFLAGS) ok.o $(LIBJBG) -o $@
-zjsdecode: zjsdecode.o $(LIBJBG)
+zjsdecode: zjsdecode.o
$(CC) $(CFLAGS) zjsdecode.o $(LIBJBG) -o $@
-hipercdecode: hipercdecode.o $(LIBJBG)
+hipercdecode: hipercdecode.o
$(CC) $(CFLAGS) hipercdecode.o $(LIBJBG) -o $@
-splcdecode: splcdecode.o $(LIBJBG)
+splcdecode: splcdecode.o
$(CC) $(CFLAGS) splcdecode.o $(LIBJBG) -lz -o $@
-xqxdecode: xqxdecode.o $(LIBJBG)
+xqxdecode: xqxdecode.o
$(CC) $(CFLAGS) xqxdecode.o $(LIBJBG) -o $@
-lavadecode: lavadecode.o $(LIBJBG)
+lavadecode: lavadecode.o
$(CC) $(CFLAGS) lavadecode.o $(LIBJBG) -o $@
-qpdldecode: qpdldecode.o $(LIBJBG)
+qpdldecode: qpdldecode.o
$(CC) $(CFLAGS) qpdldecode.o $(LIBJBG) -o $@
-opldecode: opldecode.o $(LIBJBG)
+opldecode: opldecode.o
$(CC) $(CFLAGS) -g opldecode.o $(LIBJBG) -o $@
-oakdecode: oakdecode.o $(LIBJBG)
+oakdecode: oakdecode.o
$(CC) $(CFLAGS) -g oakdecode.o $(LIBJBG) -o $@
-slxdecode: slxdecode.o $(LIBJBG)
+slxdecode: slxdecode.o
$(CC) $(CFLAGS) slxdecode.o $(LIBJBG) -o $@
-gipddecode: gipddecode.o $(LIBJBG)
+gipddecode: gipddecode.o
$(CC) $(CFLAGS) gipddecode.o $(LIBJBG) -o $@
#
@@ -925,21 +922,18 @@ clean:
#
# Header dependencies
#
-zjsdecode.o: zjs.h jbig.h
-foo2zjs.o: zjs.h jbig.h
-jbig.o: jbig.h
-foo2hp.o: zjs.h jbig.h cups.h
-foo2xqx.o: xqx.h jbig.h
-foo2lava.o: jbig.h
-foo2qpdl.o: jbig.h qpdl.h
-foo2slx.o: slx.h jbig.h
-foo2hiperc.o: jbig.h hiperc.h
-hipercdecode.o: hiperc.h jbig.h
-lavadecode.o: jbig.h
-qpdldecode.o: jbig.h
-opldecode.o: jbig.h
-slxdecode.o: slx.h jbig.h
-xqxdecode.o: xqx.h jbig.h
+zjsdecode.o: zjs.h
+foo2zjs.o: zjs.h
+jbig.o:
+foo2hp.o: zjs.h cups.h
+foo2xqx.o: xqx.h
+foo2lava.o:
+foo2qpdl.o: qpdl.h
+foo2slx.o: slx.h
+foo2hiperc.o: hiperc.h
+hipercdecode.o: hiperc.h
+slxdecode.o: slx.h
+xqxdecode.o: xqx.h
#
# foo2* Regression tests
--- NEW FILE foo2zjs.spec ---
Name: foo2zjs
Version: 0.20080324
Release: 1%{?dist}
Summary: Linux printer driver for ZjStream protocol
Group: System Environment/Libraries
License: GPL
URL: http://foo2zjs.rkkda.com/
Source0: http://foo2zjs.rkkda.com/foo2zjs.tar.gz
Patch0: foo2zjs-dynamic-jbig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: jbigkit-devel groff ghostscript
Requires: lcms
%package -n foo2hp
Summary: Linux printer driver for HP 1600, HP 2600n
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2xqx
Summary: Linux printer driver for HP LaserJet M1005 MFP
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2lava
Summary: Linux printer driver for Zenographics LAVAFLOW protocol
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2qpdl
Summary: Linux printer driver for Samsung CLP-300, CLP-600, CLP-3160
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2slx
Summary: Linux printer driver for SLX protocol (Lexmark C500n etc.)
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2hiperc
Summary: Linux printer driver for HIPERC protocol (Oki C3400n etc.)
Group: System Environment/Libraries
Requires: lcms foo2zjs
%description
foo2zjs is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
Minolta/QMS magicolor 2300 DL or Konica Minolta magicolor 2430
DL. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, ZjStream printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. ZjStream is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2zjs.rkkda.com/ and consider contributing.
%description -n foo2hp
foo2hp is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
HP Color LaserJet 2600n. These printers are often erroneously referred
to as winprinters or GDI printers. However, Microsoft GDI only
mandates the API between an application and the printer driver, not
the protocol on the wire between the printer driver and the
printer. In fact, ZjStream printers are raster printers which happen
to use a very efficient wire protocol which was developed by
Zenographics and licensed by most major printer manufacturers for at
least some of their product lines. ZjStream is just one of many wire
protocols that are in use today, such as Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2hp.rkkda.com/ and consider contributing.
%description -n foo2xqx
foo2xqx is an open source printer driver for printers that use the
HP/Software Imaging "XQX" stream wire protocol for their print data,
such as the HP LaserJet M1005 MFP. These printers are often
erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, "XQX" printers are raster printers
which happen to use a very efficient wire protocol which was developed
by HP/Software Imaging. "XQX" is just one of many wire protocols that
are in use today, such as Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2xqx.rkkda.com/ and consider contributing.
%description -n foo2lava
foo2lava is an open source printer driver for printers that use the
Zenographics LAVAFLOW wire protocol for their print data, such as the
Konica Minolta magicolor 2530 DL or the Konica Minolta magicolor 2490
MF. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, LAVAFLOW printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. LAVAFLOW is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2lava.rkkda.com/ and consider contributing.
%description -n foo2qpdl
foo2qpdl is an open source printer driver for printers that use the
QPDL wire protocol for their print data, such as the Samsung CLP-300
or the Samsung CLP-600 or the Xerox Phaser 6110. These printers are
often erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, QPDL printers are raster printers
which happen to use a very efficient wire protocol. QPDL is just one
of many wire protocols that are in use today, such as Postscript, PCL,
Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2qpdl.rkkda.com/ and consider contributing.
%description -n foo2slx
foo2slx is an open source printer driver for printers that use the
Software Imaging K.K. SLX wire protocol for their print data, such as
the Lexmark C500n. These printers are often erroneously referred to as
winprinters or GDI printers. However, Microsoft GDI only mandates the
API between an application and the printer driver, not the protocol on
the wire between the printer driver and the printer. In fact, SLX
printers are raster printers which happen to use a very efficient wire
protocol which was developed by Zenographics and cloned by Software
Imaging K.K. and licensed by most major printer manufacturers for at
least some of their product lines. SLX is just one of many wire
protocols that are in use today, such as Postscript, PCL, Epson,
ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2slx.rkkda.com/ and consider contributing.
%description -n foo2hiperc
foo2hiperc is an open source printer driver for printers that use the
HIPERC wire protocol for their print data, such as the Oki C3400n and
the Oki C5500n.
NOTE: This driver is currently in Alpha and supports uncompressed mode
only.
Users of this package are requested to visit the author's web page at
http://foo2hiperc.rkkda.com/ and consider contributing.
%prep
%setup -q -n foo2zjs
%patch0 -p1
sed -i -e s/foo2zjs-icc2ps/icc2ps/g *wrapper*
sed -i -e s/775/755/ Makefile
chmod -x COPYING
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt
mkdir -p $RPM_BUILD_ROOT%{_datadir}/cups/model
make PREFIX=$RPM_BUILD_ROOT%{_prefix} BINPROGS= install-prog \
FOODB=$RPM_BUILD_ROOT%{_datadir}/foomatic/db/source \
MODEL=$RPM_BUILD_ROOT/usr/share/cups/model \
PPD=$RPM_BUILD_ROOT/usr/share/ppd \
install-extra install-crd install-man install-foo install-ppd
# Remove remnants of GPL-violating foo2oak stuff.
rm -f $RPM_BUILD_ROOT%{_bindir}/*oak*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*oak*.1
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt/foo2oak*
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver/foo2oak.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/Generic-OAKT_Printer.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/Generic-OAKT_Printer.ppd.gz
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/HP-Color_LaserJet_1500.ppd.gz
# Remove man page for usb_printerid which we don't ship
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/usb_printerid.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*zjs*
%{_datadir}/foo2zjs
%{_mandir}/man1/*zjs*
%{_datadir}/foomatic/db/source/driver/foo2zjs.xml
%{_datadir}/foomatic/db/source/opt/foo2zjs*.xml
%{_datadir}/foomatic/db/source/opt/foo2xxx*.xml
%{_datadir}/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1*.xml
%{_datadir}/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
%{_datadir}/cups/model/Generic-ZjStream_Printer.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1*.ppd.gz
%{_datadir}/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2200_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2300_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2430_DL.ppd.gz
%files -n foo2hp
%{_bindir}/*hp*
%{_mandir}/man1/*hp*
%{_datadir}/foomatic/db/source/driver/foo2hp.xml
%{_datadir}/foomatic/db/source/opt/foo2hp*.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml
%{_datadir}/cups/model/HP-Color_LaserJet_1600.ppd.gz
%{_datadir}/cups/model/HP-Color_LaserJet_2600n.ppd.gz
%files -n foo2xqx
%{_bindir}/*xqx*
%{_mandir}/man1/*xqx*
%{_datadir}/foomatic/db/source/driver/foo2xqx.xml
%{_datadir}/foomatic/db/source/opt/foo2xqx*.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M*.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P*.xml
%{_datadir}/cups/model/HP-LaserJet_M*.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_P*.ppd.gz
%files -n foo2lava
%{_bindir}/*lava*
%{_bindir}/opldecode
%{_mandir}/man1/*lava*
%{_mandir}/man1/opldecode.1.gz
%{_datadir}/foomatic/db/source/driver/foo2lava.xml
%{_datadir}/foomatic/db/source/opt/foo2lava*.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2480_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2490_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2530_DL.xml
%{_datadir}/cups/model/KonicaMinolta-magicolor_2480_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2490_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2530_DL.ppd.gz
%files -n foo2qpdl
%{_bindir}/*qpdl*
%{_mandir}/man1/*qpdl*
%{_datadir}/foomatic/db/source/driver/foo2qpdl.xml
%{_datadir}/foomatic/db/source/opt/foo2qpdl*.xml
%{_datadir}/foomatic/db/source/printer/Samsung-CL*.xml
%{_datadir}/foomatic/db/source/printer/Xerox-Phaser-611*.xml
%{_datadir}/cups/model/Samsung-CL*.ppd.gz
%{_datadir}/cups/model/Xerox-Phaser-611*.ppd.gz
%{_datadir}/foo2qpdl/crd/
%files -n foo2slx
%{_bindir}/*slx*
%{_bindir}/gipddecode
%{_mandir}/man1/*slx*
%{_datadir}/foomatic/db/source/driver/foo2slx.xml
%{_datadir}/foomatic/db/source/opt/foo2slx*.xml
%{_datadir}/foomatic/db/source/printer/Lexmark-C500.xml
%{_datadir}/cups/model/Lexmark-C500.ppd.gz
%files -n foo2hiperc
%{_bindir}/*hiperc*
%{_mandir}/man1/*hiperc*
%{_datadir}/foomatic/db/source/driver/foo2hiperc.xml
%{_datadir}/foomatic/db/source/opt/foo2hiperc*.xml
%{_datadir}/foomatic/db/source/printer/Oki-C*.xml
%{_datadir}/cups/model/Oki-C*.ppd.gz
%doc COPYING ChangeLog INSTALL README manual.pdf
%post
/bin/rm -f /var/cache/foomatic/*
%post -n foo2hp
/bin/rm -f /var/cache/foomatic/*
%post -n foo2xqx
/bin/rm -f /var/cache/foomatic/*
%post -n foo2lava
/bin/rm -f /var/cache/foomatic/*
%post -n foo2qpdl
/bin/rm -f /var/cache/foomatic/*
%changelog
* Wed Mar 24 2008 David Woodhouse <dwmw2(a)infradead.org> 0.20080324-1
- Update to 20080324
- add foo2slx and foo2hiperc subpackage
* Wed Aug 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070822-1
- Update to 2007-08-22 release
- Add foo2qpdl subpackage
- Add %%post script to remove foomatic cache
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070128-1
- Update to 2007-01-28 release
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070127-1
- Update to 2007-01-27 release
- Add foo2xqx, foo2lava subpackages
- Include foomatic files which are now absent from Fedora foomatic
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060929-1
- Review fixes
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060911-1
- Initial build.
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:50:22 -0000 1.1
+++ .cvsignore 3 Aug 2008 14:07:38 -0000 1.2
@@ -0,0 +1 @@
+foo2zjs.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:50:22 -0000 1.1
+++ sources 3 Aug 2008 14:07:38 -0000 1.2
@@ -0,0 +1 @@
+85351317f8aa7028f5bbea638a2f7846 foo2zjs.tar.gz
16 years, 3 months
rpms/foo2zjs/F-9 foo2zjs-dynamic-jbig.patch, NONE, 1.1 foo2zjs.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/foo2zjs/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18629
Modified Files:
.cvsignore sources
Added Files:
foo2zjs-dynamic-jbig.patch foo2zjs.spec
Log Message:
initial import
foo2zjs-dynamic-jbig.patch:
--- NEW FILE foo2zjs-dynamic-jbig.patch ---
diff -uNr foo2zjs-jbig/jbig.c foo2zjs/jbig.c
--- foo2zjs-jbig/jbig.c 2004-06-12 03:33:05.000000000 +0100
+++ foo2zjs/jbig.c 1970-01-01 01:00:00.000000000 +0100
@@ -1,3194 +0,0 @@
-/*
- * Portable Free JBIG image compression library
- *
- * Markus Kuhn -- http://www.cl.cam.ac.uk/~mgk25/
- *
- * Id: jbig.c,v 1.22 2004-06-11 15:17:06+01 mgk25 Exp $
- * $Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $
- *
- * This module implements a portable standard C encoder and decoder
- * using the JBIG lossless bi-level image compression algorithm as
- * specified in International Standard ISO 11544:1993 or equivalently
- * as specified in ITU-T Recommendation T.82. See the file jbig.doc
- * for usage instructions and application examples.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * If you want to use this program under different license conditions,
- * then contact the author for an arrangement.
- *
- * It is possible that certain products which can be built using this
- * software module might form inventions protected by patent rights in
- * some countries (e.g., by patents about arithmetic coding algorithms
- * owned by IBM and AT&T in the USA). Provision of this software by the
- * author does NOT include any licences for any patents. In those
- * countries where a patent licence is required for certain applications
- * of this software module, you will have to obtain such a licence
- * yourself.
- */
-
-#ifdef DEBUG
-#include <stdio.h>
-#else
-#define NDEBUG
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-#include "jbig.h"
-
-
-/* optional export of arithmetic coder functions for test purposes */
-#ifdef TEST_CODEC
-#define ARITH
-#define ARITH_INL
-#else
-#define ARITH static
-#ifdef __GNUC__
-#define ARITH_INL static __inline__
-#else
-#define ARITH_INL static
-#endif
-#endif
-
-#define MX_MAX 127 /* maximal supported mx offset for
- * adaptive template in the encoder */
-
-#define TPB2CX 0x195 /* contexts for TP special pixels */
-#define TPB3CX 0x0e5
-#define TPDCX 0xc3f
-
-/* marker codes */
-#define MARKER_STUFF 0x00
-#define MARKER_RESERVE 0x01
-#define MARKER_SDNORM 0x02
-#define MARKER_SDRST 0x03
-#define MARKER_ABORT 0x04
-#define MARKER_NEWLEN 0x05
-#define MARKER_ATMOVE 0x06
-#define MARKER_COMMENT 0x07
-#define MARKER_ESC 0xff
-
-/* loop array indices */
-#define STRIPE 0
-#define LAYER 1
-#define PLANE 2
-
-/* special jbg_buf pointers (instead of NULL) */
-#define SDE_DONE ((struct jbg_buf *) -1)
-#define SDE_TODO ((struct jbg_buf *) 0)
-
-/* object code version id */
-
-const char jbg_version[] =
-" JBIG-KIT " JBG_VERSION " -- Markus Kuhn -- "
-"$Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $ ";
-
-/*
- * the following array specifies for each combination of the 3
- * ordering bits, which ii[] variable represents which dimension
- * of s->sde.
- */
-static const int iindex[8][3] = {
- { 2, 1, 0 }, /* no ordering bit set */
- { -1, -1, -1}, /* SMID -> illegal combination */
- { 2, 0, 1 }, /* ILEAVE */
- { 1, 0, 2 }, /* SMID + ILEAVE */
- { 0, 2, 1 }, /* SEQ */
- { 1, 2, 0 }, /* SEQ + SMID */
- { 0, 1, 2 }, /* SEQ + ILEAVE */
- { -1, -1, -1 } /* SEQ + SMID + ILEAVE -> illegal combination */
-};
-
-
-/*
- * Array [language][message] with text string error messages that correspond
- * to return values from public functions in this library.
- */
-#define NEMSG 9 /* number of error codes */
-#define NEMSG_LANG 3 /* number of supported languages */
-static const char *errmsg[NEMSG_LANG][NEMSG] = {
- /* English (JBG_EN) */
- {
- "Everything is ok", /* JBG_EOK */
- "Reached specified maximum size", /* JBG_EOK_INTR */
- "Unexpected end of data", /* JBG_EAGAIN */
- "Not enough memory available", /* JBG_ENOMEM */
- "ABORT marker found", /* JBG_EABORT */
- "Unknown marker segment encountered", /* JBG_EMARKER */
- "Incremental BIE does not fit to previous one", /* JBG_ENOCONT */
- "Invalid data encountered", /* JBG_EINVAL */
- "Unimplemented features used" /* JBG_EIMPL */
- },
- /* German (JBG_DE_8859_1) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\366\337e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\374gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\374ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- },
- /* German (JBG_DE_UTF_8) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\303\266\303\237e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\303\274gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\303\274ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- }
-};
-
-
-
-/*
- * The following three functions are the only places in this code, were
- * C library memory management functions are called. The whole JBIG
- * library has been designed in order to allow multi-threaded
- * execution. No static or global variables are used, so all fuctions
- * are fully reentrant. However if you want to use this multi-thread
- * capability and your malloc, realloc and free are not reentrant,
- * then simply add the necessary semaphores or mutex primitives below.
- * In contrast to C's malloc() and realloc(), but like C's calloc(),
- * these functions take two parameters nmemb and size that are multiplied
- * before being passed on to the corresponding C function.
- * This we can catch all overflows during a size_t multiplication a
- * a single place.
- */
-
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t) -1) /* largest value of size_t */
-#endif
-
-static void *checked_malloc(size_t nmemb, size_t size)
-{
- void *p;
-
- /* Full manual exception handling is ugly here for performance
- * reasons. If an adequate handling of lack of memory is required,
- * then use C++ and throw a C++ exception instead of abort(). */
-
- /* assert that nmemb * size <= SIZE_MAX */
- if (size > SIZE_MAX / nmemb)
- abort();
-
[...3651 lines suppressed...]
- 2,2,2,0,2,2,2,1,2,2,0,2,2,2,1,2,2,1,2,1,2,0,2,0,2,0,2,2,2,1,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,0,2,2,2,1,1,1,2,0,0,0,
- 2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,0,2,0,0,1,2,1,1,
- 2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,0,2,2,2,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0,2,2,2,2,2,2,2,2,
- 2,0,2,1,2,1,2,0,0,2,1,2,1,2,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,0,2,0,2,1,2,1,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,1,2,1,2,0,2,0,1,1,1,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-};
--- foo2zjs/Makefile.orig 2008-03-21 15:21:41.000000000 +0000
+++ foo2zjs/Makefile 2008-03-26 09:32:51.000000000 +0000
@@ -122,9 +122,6 @@ FILES = \
Makefile \
foo2zjs.c \
foo2zjs.1in \
- jbig.c \
- jbig.h \
- jbig_tab.c \
zjsdecode.c \
zjsdecode.1in \
zjs.h \
@@ -239,7 +236,7 @@ MANPAGES+= foo2qpdl-wrapper.1 foo2qpdl.1
MANPAGES+= foo2slx-wrapper.1 foo2slx.1 slxdecode.1
MANPAGES+= foo2hiperc-wrapper.1 foo2hiperc.1 hipercdecode.1
MANPAGES+= foo2zjs-pstops.1 arm2hpdl.1 usb_printerid.1
-LIBJBG = jbig.o jbig_tab.o
+LIBJBG = -ljbig
BINPROGS=
ifeq ($(UNAME),Linux)
@@ -376,29 +373,29 @@ all-done:
@echo "yourself."
-foo2zjs: foo2zjs.o $(LIBJBG)
+foo2zjs: foo2zjs.o
$(CC) $(CFLAGS) -o $@ foo2zjs.o $(LIBJBG)
-foo2hp: foo2hp.o $(LIBJBG)
+foo2hp: foo2hp.o
# $(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG) /usr/local/lib/libdmalloc.a
$(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG)
-foo2xqx: foo2xqx.o $(LIBJBG)
+foo2xqx: foo2xqx.o
$(CC) $(CFLAGS) -o $@ foo2xqx.o $(LIBJBG)
-foo2lava: foo2lava.o $(LIBJBG)
+foo2lava: foo2lava.o
$(CC) $(CFLAGS) -o $@ foo2lava.o $(LIBJBG)
-foo2qpdl: foo2qpdl.o $(LIBJBG)
+foo2qpdl: foo2qpdl.o
$(CC) $(CFLAGS) -o $@ foo2qpdl.o $(LIBJBG)
-foo2oak: foo2oak.o $(LIBJBG)
+foo2oak: foo2oak.o
$(CC) $(CFLAGS) -o $@ foo2oak.o $(LIBJBG)
-foo2slx: foo2slx.o $(LIBJBG)
+foo2slx: foo2slx.o
$(CC) $(CFLAGS) -o $@ foo2slx.o $(LIBJBG)
-foo2hiperc: foo2hiperc.o $(LIBJBG)
+foo2hiperc: foo2hiperc.o
$(CC) $(CFLAGS) -o $@ foo2hiperc.o $(LIBJBG)
@@ -461,37 +458,37 @@ getweb: getweb.in Makefile
all-icc2ps:
cd icc2ps; $(MAKE) all
-ok: ok.o $(LIBJBG)
+ok: ok.o
$(CC) $(CFLAGS) ok.o $(LIBJBG) -o $@
-zjsdecode: zjsdecode.o $(LIBJBG)
+zjsdecode: zjsdecode.o
$(CC) $(CFLAGS) zjsdecode.o $(LIBJBG) -o $@
-hipercdecode: hipercdecode.o $(LIBJBG)
+hipercdecode: hipercdecode.o
$(CC) $(CFLAGS) hipercdecode.o $(LIBJBG) -o $@
-splcdecode: splcdecode.o $(LIBJBG)
+splcdecode: splcdecode.o
$(CC) $(CFLAGS) splcdecode.o $(LIBJBG) -lz -o $@
-xqxdecode: xqxdecode.o $(LIBJBG)
+xqxdecode: xqxdecode.o
$(CC) $(CFLAGS) xqxdecode.o $(LIBJBG) -o $@
-lavadecode: lavadecode.o $(LIBJBG)
+lavadecode: lavadecode.o
$(CC) $(CFLAGS) lavadecode.o $(LIBJBG) -o $@
-qpdldecode: qpdldecode.o $(LIBJBG)
+qpdldecode: qpdldecode.o
$(CC) $(CFLAGS) qpdldecode.o $(LIBJBG) -o $@
-opldecode: opldecode.o $(LIBJBG)
+opldecode: opldecode.o
$(CC) $(CFLAGS) -g opldecode.o $(LIBJBG) -o $@
-oakdecode: oakdecode.o $(LIBJBG)
+oakdecode: oakdecode.o
$(CC) $(CFLAGS) -g oakdecode.o $(LIBJBG) -o $@
-slxdecode: slxdecode.o $(LIBJBG)
+slxdecode: slxdecode.o
$(CC) $(CFLAGS) slxdecode.o $(LIBJBG) -o $@
-gipddecode: gipddecode.o $(LIBJBG)
+gipddecode: gipddecode.o
$(CC) $(CFLAGS) gipddecode.o $(LIBJBG) -o $@
#
@@ -925,21 +922,18 @@ clean:
#
# Header dependencies
#
-zjsdecode.o: zjs.h jbig.h
-foo2zjs.o: zjs.h jbig.h
-jbig.o: jbig.h
-foo2hp.o: zjs.h jbig.h cups.h
-foo2xqx.o: xqx.h jbig.h
-foo2lava.o: jbig.h
-foo2qpdl.o: jbig.h qpdl.h
-foo2slx.o: slx.h jbig.h
-foo2hiperc.o: jbig.h hiperc.h
-hipercdecode.o: hiperc.h jbig.h
-lavadecode.o: jbig.h
-qpdldecode.o: jbig.h
-opldecode.o: jbig.h
-slxdecode.o: slx.h jbig.h
-xqxdecode.o: xqx.h jbig.h
+zjsdecode.o: zjs.h
+foo2zjs.o: zjs.h
+jbig.o:
+foo2hp.o: zjs.h cups.h
+foo2xqx.o: xqx.h
+foo2lava.o:
+foo2qpdl.o: qpdl.h
+foo2slx.o: slx.h
+foo2hiperc.o: hiperc.h
+hipercdecode.o: hiperc.h
+slxdecode.o: slx.h
+xqxdecode.o: xqx.h
#
# foo2* Regression tests
--- NEW FILE foo2zjs.spec ---
Name: foo2zjs
Version: 0.20080324
Release: 1%{?dist}
Summary: Linux printer driver for ZjStream protocol
Group: System Environment/Libraries
License: GPL
URL: http://foo2zjs.rkkda.com/
Source0: http://foo2zjs.rkkda.com/foo2zjs.tar.gz
Patch0: foo2zjs-dynamic-jbig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: jbigkit-devel groff ghostscript
Requires: lcms
%package -n foo2hp
Summary: Linux printer driver for HP 1600, HP 2600n
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2xqx
Summary: Linux printer driver for HP LaserJet M1005 MFP
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2lava
Summary: Linux printer driver for Zenographics LAVAFLOW protocol
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2qpdl
Summary: Linux printer driver for Samsung CLP-300, CLP-600, CLP-3160
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2slx
Summary: Linux printer driver for SLX protocol (Lexmark C500n etc.)
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2hiperc
Summary: Linux printer driver for HIPERC protocol (Oki C3400n etc.)
Group: System Environment/Libraries
Requires: lcms foo2zjs
%description
foo2zjs is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
Minolta/QMS magicolor 2300 DL or Konica Minolta magicolor 2430
DL. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, ZjStream printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. ZjStream is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2zjs.rkkda.com/ and consider contributing.
%description -n foo2hp
foo2hp is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
HP Color LaserJet 2600n. These printers are often erroneously referred
to as winprinters or GDI printers. However, Microsoft GDI only
mandates the API between an application and the printer driver, not
the protocol on the wire between the printer driver and the
printer. In fact, ZjStream printers are raster printers which happen
to use a very efficient wire protocol which was developed by
Zenographics and licensed by most major printer manufacturers for at
least some of their product lines. ZjStream is just one of many wire
protocols that are in use today, such as Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2hp.rkkda.com/ and consider contributing.
%description -n foo2xqx
foo2xqx is an open source printer driver for printers that use the
HP/Software Imaging "XQX" stream wire protocol for their print data,
such as the HP LaserJet M1005 MFP. These printers are often
erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, "XQX" printers are raster printers
which happen to use a very efficient wire protocol which was developed
by HP/Software Imaging. "XQX" is just one of many wire protocols that
are in use today, such as Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2xqx.rkkda.com/ and consider contributing.
%description -n foo2lava
foo2lava is an open source printer driver for printers that use the
Zenographics LAVAFLOW wire protocol for their print data, such as the
Konica Minolta magicolor 2530 DL or the Konica Minolta magicolor 2490
MF. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, LAVAFLOW printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. LAVAFLOW is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2lava.rkkda.com/ and consider contributing.
%description -n foo2qpdl
foo2qpdl is an open source printer driver for printers that use the
QPDL wire protocol for their print data, such as the Samsung CLP-300
or the Samsung CLP-600 or the Xerox Phaser 6110. These printers are
often erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, QPDL printers are raster printers
which happen to use a very efficient wire protocol. QPDL is just one
of many wire protocols that are in use today, such as Postscript, PCL,
Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2qpdl.rkkda.com/ and consider contributing.
%description -n foo2slx
foo2slx is an open source printer driver for printers that use the
Software Imaging K.K. SLX wire protocol for their print data, such as
the Lexmark C500n. These printers are often erroneously referred to as
winprinters or GDI printers. However, Microsoft GDI only mandates the
API between an application and the printer driver, not the protocol on
the wire between the printer driver and the printer. In fact, SLX
printers are raster printers which happen to use a very efficient wire
protocol which was developed by Zenographics and cloned by Software
Imaging K.K. and licensed by most major printer manufacturers for at
least some of their product lines. SLX is just one of many wire
protocols that are in use today, such as Postscript, PCL, Epson,
ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2slx.rkkda.com/ and consider contributing.
%description -n foo2hiperc
foo2hiperc is an open source printer driver for printers that use the
HIPERC wire protocol for their print data, such as the Oki C3400n and
the Oki C5500n.
NOTE: This driver is currently in Alpha and supports uncompressed mode
only.
Users of this package are requested to visit the author's web page at
http://foo2hiperc.rkkda.com/ and consider contributing.
%prep
%setup -q -n foo2zjs
%patch0 -p1
sed -i -e s/foo2zjs-icc2ps/icc2ps/g *wrapper*
sed -i -e s/775/755/ Makefile
chmod -x COPYING
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt
mkdir -p $RPM_BUILD_ROOT%{_datadir}/cups/model
make PREFIX=$RPM_BUILD_ROOT%{_prefix} BINPROGS= install-prog \
FOODB=$RPM_BUILD_ROOT%{_datadir}/foomatic/db/source \
MODEL=$RPM_BUILD_ROOT/usr/share/cups/model \
PPD=$RPM_BUILD_ROOT/usr/share/ppd \
install-extra install-crd install-man install-foo install-ppd
# Remove remnants of GPL-violating foo2oak stuff.
rm -f $RPM_BUILD_ROOT%{_bindir}/*oak*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*oak*.1
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt/foo2oak*
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver/foo2oak.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/Generic-OAKT_Printer.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/Generic-OAKT_Printer.ppd.gz
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/HP-Color_LaserJet_1500.ppd.gz
# Remove man page for usb_printerid which we don't ship
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/usb_printerid.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*zjs*
%{_datadir}/foo2zjs
%{_mandir}/man1/*zjs*
%{_datadir}/foomatic/db/source/driver/foo2zjs.xml
%{_datadir}/foomatic/db/source/opt/foo2zjs*.xml
%{_datadir}/foomatic/db/source/opt/foo2xxx*.xml
%{_datadir}/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1*.xml
%{_datadir}/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
%{_datadir}/cups/model/Generic-ZjStream_Printer.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1*.ppd.gz
%{_datadir}/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2200_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2300_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2430_DL.ppd.gz
%files -n foo2hp
%{_bindir}/*hp*
%{_mandir}/man1/*hp*
%{_datadir}/foomatic/db/source/driver/foo2hp.xml
%{_datadir}/foomatic/db/source/opt/foo2hp*.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml
%{_datadir}/cups/model/HP-Color_LaserJet_1600.ppd.gz
%{_datadir}/cups/model/HP-Color_LaserJet_2600n.ppd.gz
%files -n foo2xqx
%{_bindir}/*xqx*
%{_mandir}/man1/*xqx*
%{_datadir}/foomatic/db/source/driver/foo2xqx.xml
%{_datadir}/foomatic/db/source/opt/foo2xqx*.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M*.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P*.xml
%{_datadir}/cups/model/HP-LaserJet_M*.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_P*.ppd.gz
%files -n foo2lava
%{_bindir}/*lava*
%{_bindir}/opldecode
%{_mandir}/man1/*lava*
%{_mandir}/man1/opldecode.1.gz
%{_datadir}/foomatic/db/source/driver/foo2lava.xml
%{_datadir}/foomatic/db/source/opt/foo2lava*.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2480_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2490_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2530_DL.xml
%{_datadir}/cups/model/KonicaMinolta-magicolor_2480_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2490_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2530_DL.ppd.gz
%files -n foo2qpdl
%{_bindir}/*qpdl*
%{_mandir}/man1/*qpdl*
%{_datadir}/foomatic/db/source/driver/foo2qpdl.xml
%{_datadir}/foomatic/db/source/opt/foo2qpdl*.xml
%{_datadir}/foomatic/db/source/printer/Samsung-CL*.xml
%{_datadir}/foomatic/db/source/printer/Xerox-Phaser-611*.xml
%{_datadir}/cups/model/Samsung-CL*.ppd.gz
%{_datadir}/cups/model/Xerox-Phaser-611*.ppd.gz
%{_datadir}/foo2qpdl/crd/
%files -n foo2slx
%{_bindir}/*slx*
%{_bindir}/gipddecode
%{_mandir}/man1/*slx*
%{_datadir}/foomatic/db/source/driver/foo2slx.xml
%{_datadir}/foomatic/db/source/opt/foo2slx*.xml
%{_datadir}/foomatic/db/source/printer/Lexmark-C500.xml
%{_datadir}/cups/model/Lexmark-C500.ppd.gz
%files -n foo2hiperc
%{_bindir}/*hiperc*
%{_mandir}/man1/*hiperc*
%{_datadir}/foomatic/db/source/driver/foo2hiperc.xml
%{_datadir}/foomatic/db/source/opt/foo2hiperc*.xml
%{_datadir}/foomatic/db/source/printer/Oki-C*.xml
%{_datadir}/cups/model/Oki-C*.ppd.gz
%doc COPYING ChangeLog INSTALL README manual.pdf
%post
/bin/rm -f /var/cache/foomatic/*
%post -n foo2hp
/bin/rm -f /var/cache/foomatic/*
%post -n foo2xqx
/bin/rm -f /var/cache/foomatic/*
%post -n foo2lava
/bin/rm -f /var/cache/foomatic/*
%post -n foo2qpdl
/bin/rm -f /var/cache/foomatic/*
%changelog
* Wed Mar 24 2008 David Woodhouse <dwmw2(a)infradead.org> 0.20080324-1
- Update to 20080324
- add foo2slx and foo2hiperc subpackage
* Wed Aug 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070822-1
- Update to 2007-08-22 release
- Add foo2qpdl subpackage
- Add %%post script to remove foomatic cache
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070128-1
- Update to 2007-01-28 release
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070127-1
- Update to 2007-01-27 release
- Add foo2xqx, foo2lava subpackages
- Include foomatic files which are now absent from Fedora foomatic
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060929-1
- Review fixes
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060911-1
- Initial build.
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:50:22 -0000 1.1
+++ .cvsignore 3 Aug 2008 14:07:08 -0000 1.2
@@ -0,0 +1 @@
+foo2zjs.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:50:22 -0000 1.1
+++ sources 3 Aug 2008 14:07:08 -0000 1.2
@@ -0,0 +1 @@
+85351317f8aa7028f5bbea638a2f7846 foo2zjs.tar.gz
16 years, 3 months
rpms/amule/devel amule.spec,1.1,1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/amule/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18209
Modified Files:
amule.spec
Log Message:
first build
Index: amule.spec
===================================================================
RCS file: /cvs/free/rpms/amule/devel/amule.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- amule.spec 3 Aug 2008 14:00:51 -0000 1.1
+++ amule.spec 3 Aug 2008 14:01:14 -0000 1.2
@@ -1,6 +1,6 @@
Name: amule
Version: 2.1.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: File sharing client compatible with eDonkey
License: GPLv2+
Group: Applications/Internet
@@ -116,6 +116,9 @@
%changelog
+* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 2.1.3-4
+- rebuild
+
* Tue Mar 04 2007 kwizart <kwizart at gmail.com > - 2.1.3-3
- Fix wxGTK 2.8.x
- Fix open with O_CREATE
16 years, 3 months
rpms/amule/devel aMule-2.1.3-gcc43.patch, NONE, 1.1 aMule-2.1.3-multiple.patch, NONE, 1.1 aMule-2.1.3-ocreate.patch, NONE, 1.1 aMule-wx-1.2.patch, NONE, 1.1 amule.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/amule/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18143
Modified Files:
.cvsignore sources
Added Files:
aMule-2.1.3-gcc43.patch aMule-2.1.3-multiple.patch
aMule-2.1.3-ocreate.patch aMule-wx-1.2.patch amule.spec
Log Message:
initial import
aMule-2.1.3-gcc43.patch:
--- NEW FILE aMule-2.1.3-gcc43.patch ---
diff -up aMule-2.1.3/src/ED2KLinkParser.cpp.gcc43 aMule-2.1.3/src/ED2KLinkParser.cpp
--- aMule-2.1.3/src/ED2KLinkParser.cpp.gcc43 2008-04-08 15:46:36.000000000 +0200
+++ aMule-2.1.3/src/ED2KLinkParser.cpp 2008-04-08 15:47:16.000000000 +0200
@@ -32,6 +32,7 @@ const int versionRevision = 1;
#include <sstream>
#include <iostream>
#include <fstream>
+#include <cstdlib>
#ifdef __APPLE__
#include <CoreServices/CoreServices.h>
aMule-2.1.3-multiple.patch:
--- NEW FILE aMule-2.1.3-multiple.patch ---
diff -up aMule-2.1.3/src/ExternalConnector.h.multiple aMule-2.1.3/src/ExternalConnector.h
--- aMule-2.1.3/src/ExternalConnector.h.multiple 2008-04-08 15:33:04.000000000 +0200
+++ aMule-2.1.3/src/ExternalConnector.h 2008-04-08 15:38:22.000000000 +0200
@@ -143,7 +143,7 @@ public:
bool Parse_Command(const wxString& buffer);
void GetCommand(const wxString &prompt, char* buffer, size_t buffer_size);
const CECPacket *SendRecvMsg_v2(const CECPacket *request) { return m_ECClient->SendRecvPacket(request); }
- void ConnectAndRun(const wxString &ProgName, const wxString& ProgName);
+ void ConnectAndRun(const wxString &ProgName, const wxString& ProgVersion);
void ShowGreet();
//
aMule-2.1.3-ocreate.patch:
--- NEW FILE aMule-2.1.3-ocreate.patch ---
diff -up aMule-2.1.3/src/FileFunctions.cpp.ocreate aMule-2.1.3/src/FileFunctions.cpp
--- aMule-2.1.3/src/FileFunctions.cpp.ocreate 2008-04-08 03:27:56.000000000 +0200
+++ aMule-2.1.3/src/FileFunctions.cpp 2008-04-08 03:32:13.000000000 +0200
@@ -599,7 +599,7 @@ FSCheckResult DoCheckFileSystem(const wx
wxString fullName = JoinPaths(path, wxT(":"));
// Try to open the file, without overwriting existing files.
- int fd = open(fullName.fn_str(), O_WRONLY | O_CREAT | O_EXCL);
+ int fd = open(fullName.fn_str(), O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
if (fd != -1) {
// Success, the file-system cant be FAT32
close(fd);
aMule-wx-1.2.patch:
--- NEW FILE aMule-wx-1.2.patch ---
diff -urN aMule-2.1.3.org/src/utils/wxCas/src/wxcasprefs.cpp aMule-2.1.3/src/utils/wxCas/src/wxcasprefs.cpp
--- aMule-2.1.3.org/src/utils/wxCas/src/wxcasprefs.cpp 2005-12-16 13:09:29.000000000 +0100
+++ aMule-2.1.3/src/utils/wxCas/src/wxcasprefs.cpp 2006-12-17 20:20:47.151203000 +0100
@@ -297,7 +297,7 @@
m_validateButton =
new wxButton ( this, ID_VALIDATE_BUTTON, wxString ( _( "Validate" ) ) );
m_cancelButton =
- new wxButton ( this, ID_CANCEL_BUTTON, wxString ( _( "Cancel" ) ) );
+ new wxButton ( this, wxID_CANCEL, wxString ( _( "Cancel" ) ) );
m_buttonHBox->Add ( m_validateButton, 0, wxALIGN_CENTER | wxALL, 5 );
m_buttonHBox->Add ( m_cancelButton, 0, wxALIGN_CENTER | wxALL, 5 );
@@ -321,7 +321,6 @@
EVT_BUTTON ( ID_OSPATH_BROWSE_BUTTON, WxCasPrefs::OnOSPathBrowseButton )
EVT_BUTTON ( ID_AUTOSTATIMG_BROWSE_BUTTON, WxCasPrefs::OnAutoStatImgBrowseButton )
EVT_BUTTON ( ID_VALIDATE_BUTTON, WxCasPrefs::OnValidateButton )
-EVT_BUTTON ( ID_CANCEL_BUTTON, WxCasPrefs::OnCancel ) // Defined in wxDialog
EVT_CHECKBOX ( ID_AUTOSTATIMG_CHECK, WxCasPrefs::OnAutoStatImgCheck )
EVT_CHECKBOX ( ID_FTP_UPDATE_CHECK, WxCasPrefs::OnFtpUpdateCheck )
END_EVENT_TABLE ()
--- aMule/src/utils/wxCas/src/wxcasprefs.h.org 2006-12-17 22:17:39.017417250 +0100
+++ aMule/src/utils/wxCas/src/wxcasprefs.h 2006-12-17 22:18:17.611829250 +0100
@@ -101,8 +101,7 @@
ID_AUTOSTATIMG_COMBO,
ID_AUTOSTATIMG_BROWSE_BUTTON,
ID_FTP_UPDATE_CHECK,
- ID_VALIDATE_BUTTON,
- ID_CANCEL_BUTTON
+ ID_VALIDATE_BUTTON
};
protected:
--- aMule/src/MuleGifCtrl.cpp 2006-02-03 20:14:05.000000000 +0100
+++ aMule/src/MuleGifCtrl.cpp 2006-11-19 19:35:33.000000000 +0100
@@ -24,7 +24,6 @@
#include <wx/mstream.h>
#include <wx/gifdecod.h>
-#include <wx/window.h>
#include <wx/dcbuffer.h>
#include "MuleGifCtrl.h"
@@ -35,6 +34,50 @@
EVT_ERASE_BACKGROUND(MuleGifCtrl::OnErase)
END_EVENT_TABLE()
+#if wxCHECK_VERSION(2, 7, 1)
+// Wrapper that emulates old wxGIFDecoder API
+
+class MuleGIFDecoder : public wxGIFDecoder {
+public:
+ MuleGIFDecoder(wxInputStream* stream, bool dummy) {
+ m_stream = stream;
+ dummy = dummy; // Unused.
+ m_nframe = 0;
+ }
+
+ ~MuleGIFDecoder() { /* don't delete the stream! */ }
+
+ wxGIFErrorCode ReadGIF() {
+ return LoadGIF(*m_stream);
+ }
+
+ void GoFirstFrame() { m_nframe = 0; }
+ void GoNextFrame(bool dummy) { m_nframe < GetFrameCount() ? m_nframe++ : m_nframe = 0; }
+ void GoLastFrame() { m_nframe = GetFrameCount(); }
+
+ void ConvertToImage(wxImage* image) { wxGIFDecoder::ConvertToImage(m_nframe, image); }
+
+ size_t GetLogicalScreenWidth() { return GetAnimationSize().GetWidth(); }
+ size_t GetLogicalScreenHeight() { return GetAnimationSize().GetHeight(); }
+
+ size_t GetLeft() { return 0; }
+ size_t GetTop() { return 0; }
+
+ long GetDelay() { return wxGIFDecoder::GetDelay(m_nframe); }
+
+private:
+ uint32_t m_nframe;
+ wxInputStream* m_stream;
+};
+
+#else
+class MuleGIFDecoder : public wxGIFDecoder {
+public:
+ MuleGIFDecoder(wxInputStream* stream, bool flag) : wxGIFDecoder(stream,flag) {};
+};
+#endif
+
+
MuleGifCtrl::MuleGifCtrl( wxWindow *parent, wxWindowID id, const wxPoint& pos,
const wxSize& size, long style, const wxValidator& validator,
@@ -66,7 +109,7 @@
}
wxMemoryInputStream stream(data, size);
- m_decoder = new wxGIFDecoder(&stream, TRUE);
+ m_decoder = new MuleGIFDecoder(&stream, TRUE);
if ( m_decoder->ReadGIF() != wxGIF_OK ) {
delete m_decoder;
m_decoder = NULL;
@@ -137,3 +180,4 @@
dc.DrawBitmap( m_frame, x + m_decoder->GetLeft(), y + m_decoder->GetTop(), true);
}
+// File_checked_for_headers
--- aMule/src/MuleGifCtrl.h 2006-01-01 06:17:25.000000000 +0100
+++ aMule/src/MuleGifCtrl.h 2006-11-18 05:01:22.000000000 +0100
@@ -27,11 +27,10 @@
#include <wx/control.h>
#include <wx/timer.h>
-#include <wx/bitmap.h>
const int GIFTIMERID = 271283;
-class wxGIFDecoder;
+class MuleGIFDecoder;
class wxBitmap;
/**
@@ -121,7 +120,7 @@
void OnErase( wxEraseEvent& WXUNUSED(event) ) {}
//! A pointer to the current gif-animation.
- wxGIFDecoder* m_decoder;
+ MuleGIFDecoder* m_decoder;
//! Timer used for the delay between each frame.
wxTimer m_timer;
//! Current frame.
@@ -133,3 +132,4 @@
#endif
+// File_checked_for_headers
--- aMule-2.1.3/src/MuleTextCtrl.cpp~ 2006-12-17 20:55:37.157820250 +0100
+++ aMule-2.1.3/src/MuleTextCtrl.cpp 2006-12-17 20:56:21.328580750 +0100
@@ -26,6 +26,7 @@
#include <wx/menu.h>
#include <wx/intl.h>
#include <wx/clipbrd.h>
+#include <wx/dataobj.h>
/**
* These are the IDs used to identify the different menu-items.
--- amule/src/amule.cpp~ 2006-12-17 21:53:26.474639000 +0100
+++ amule/src/amule.cpp 2006-12-17 21:55:40.307003000 +0100
@@ -96,6 +96,7 @@
#include <CoreFoundation/CFBundle.h>
#include <wx/mac/corefoundation/cfstring.h>
#endif
+ #include <wx/msgdlg.h>
#endif
--- NEW FILE amule.spec ---
Name: amule
Version: 2.1.3
Release: 3%{?dist}
Summary: File sharing client compatible with eDonkey
License: GPLv2+
Group: Applications/Internet
Source0: http://dl.sourceforge.net/%{name}/aMule-%{version}.tar.bz2
Patch0: aMule-wx-1.2.patch
Patch1: aMule-2.1.3-ocreate.patch
Patch2: aMule-2.1.3-multiple.patch
Patch3: aMule-2.1.3-gcc43.patch
URL: http://amule.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# See http://www.amule.org/wiki/index.php/Requirements
BuildRequires: wxGTK-devel >= 0:2.6.2, desktop-file-utils, expat-devel
BuildRequires: gd-devel >= 2.0.0, libpng-devel
BuildRequires: gettext-devel, flex, bison
BuildRequires: readline-devel
Requires(pre): chkconfig
%description
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer
Network. It is a fork of xMule, whis was based on eMule for
Windows. aMule currently supports (but is not limited to) the
following platforms: Linux, *BSD and MacOS X.
%package -n xchat-%{name}
Summary: Plugin to display aMule's statistics in XChat
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: xchat
%description -n xchat-%{name}
This plugins allows you to display aMule statistics in XChat
%prep
%setup -q -n aMule-%{version}
%patch0 -p1 -b .wx28
%patch1 -p1 -b .ocreate
%patch2 -p1 -b .multiple
%patch3 -p1 -b .gcc43
%build
%configure \
--disable-rpath \
--disable-debug \
--enable-wxcas \
--enable-cas \
--enable-alc \
--enable-alcc \
--enable-amule-daemon \
--enable-amulecmd \
--enable-webserver \
--enable-amule-daemon \
--enable-utf8-systray
# --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT _docs
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%find_lang %{name}
# desktop files
desktop-file-install --vendor livna \
--delete-original\
--dir $RPM_BUILD_ROOT%{_datadir}/applications\
--add-category Application\
--add-category Network\
--add-category X-Livna\
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
iconv -f ISO-8859-1 -t UTF-8 < src/utils/aLinkCreator/alc.desktop \
> $RPM_BUILD_ROOT%{_datadir}/applications/alc.desktop
desktop-file-install --vendor livna \
--delete-original\
--dir $RPM_BUILD_ROOT%{_datadir}/applications\
--add-category X-Livna\
$RPM_BUILD_ROOT%{_datadir}/applications/alc.desktop
install -m 644 src/utils/aLinkCreator/alc.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/alc.xpm
desktop-file-install --vendor livna \
--delete-original\
--dir $RPM_BUILD_ROOT%{_datadir}/applications\
--add-category X-Livna\
$RPM_BUILD_ROOT%{_datadir}/applications/wxcas.desktop
install -m 644 src/utils/wxCas/wxcas.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_datadir}/doc/aMule-%{version}
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/cas
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_mandir}/man1/*.gz
%{_mandir}/*/man1/*.gz
%files -n xchat-%{name}
%defattr(-,root,root)
%{_libdir}/xchat/plugins/xas.pl
%changelog
* Tue Mar 04 2007 kwizart <kwizart at gmail.com > - 2.1.3-3
- Fix wxGTK 2.8.x
- Fix open with O_CREATE
- Prevent timestramps on install
- Add missing BR
- Fix gcc43
- Fix multiple parameter named ProgName
* Sat Oct 07 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 2.1.3-2
- rebuild
* Mon Jun 12 2006 Aurelien Bompard <gauret[AT]free.fr> 2.1.3-1
- version 2.1.3
* Tue May 30 2006 Aurelien Bompard <gauret[AT]free.fr> 2.1.2-1
- version 2.1.2
* Sat Apr 08 2006 Aurelien Bompard <gauret[AT]free.fr> 2.1.1-1
- version 2.1.1
* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
- switch to new release field
* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
- add dist
* Thu Jun 16 2005 Aurelien Bompard <gauret[AT]free.fr> 2.0.3-0.lvn.1
- version 2.0.3
* Sun Jun 05 2005 Aurelien Bompard <gauret[AT]free.fr> 2.0.2-0.lvn.1
- version 2.0.2
* Sat Jun 04 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> 2.0.1-0.lvn.2
- BR /usr/bin/autopoint instead of gettext; This gives us gettext on pre
FC4 and gettext-devel on FC4
* Mon May 23 2005 Aurelien Bompard <gauret[AT]free.fr> 2.0.1-0.lvn.1
- version 2.0.1
* Wed May 04 2005 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.1
- version 2.0 final(ly)
- drop epoch
* Fri Dec 24 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.7.rc8
- update to rc8
* Wed Oct 20 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.6.rc7
- update to rc7: no need for cryptopp anymore
* Mon Jul 19 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.5.rc5
- update to rc5
* Wed Jul 14 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.4.rc4a
- update to rc4a (hotfix)
* Wed Jul 14 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.3.rc4
- fix desktop files for alc and wxcas
- convert tabs into spaces (use diff -b)
* Tue Jul 13 2004 Dams <anvil[AT]livna.org> 0:2.0.0-0.lvn.0.2.rc4
- Removing temporary _docs directory before attempting to create it
* Mon Jul 12 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.1.rc4
- Version 2.0.0rc4
- new xchat-amule subpackage
* Sun Jun 13 2004 Aurelien Bompard <gauret[AT]free.fr> 0:2.0.0-0.lvn.0.1.rc3
- Version 2.0.0rc3
* Tue Feb 17 2004 Aurelien Bompard <gauret[AT]free.fr> 1.2.6-0.lvn.1
- Version 1.2.6
* Tue Feb 10 2004 Aurelien Bompard <gauret[AT]free.fr> 1.2.5-0.lvn.1
- Version 1.2.5
- Dropped alternatives support (we conflict and obsolete xmule)
* Mon Jan 19 2004 Dams <anvil[AT]livna.org> 0:1.2.4-0.lvn.4
- Added explicit BuildReq:openssl-devel (else it wont build on rh9/rh8
because of curl-devel packaging bug)
* Mon Jan 19 2004 Dams <anvil[AT]livna.org> 0:1.2.4-0.lvn.3
- Re-add explicit conflits:xmule
* Tue Jan 13 2004 Aurelien Bompard <gauret[AT]free.fr> 1.2.4-0.lvn.2
- Obsoletes xmule (the project seems to have stopped)
* Mon Jan 12 2004 Aurelien Bompard <gauret[AT]free.fr> 1.2.4-0.lvn.1
- version 1.2.4 (small bugfix release)
* Sat Jan 03 2004 Aurelien Bompard <gauret[AT]free.fr> 1.2.3-0.lvn.1
- new version: 1.2.3
- added webserver support (still a little buggy according to aMule's website)
* Thu Dec 18 2003 Aurelien Bompard <gauret[AT]free.fr> 1.2.1-0.lvn.2
- remove enable-optimize
- update Conflicts
- add Epoch: 0
* Mon Dec 15 2003 Aurelien Bompard <gauret[AT]free.fr> 1.2.1-0.lvn.1
- version 1.2.1
- doesn't require wget anymore : libcurl is used instead
- add BuildRequires: curl-devel
- Move Prereq to Requires(pre)
- add enable-optimise to configure
* Thu Nov 27 2003 Aurelien Bompard <gauret[AT]free.fr> 1.2.0-0.lvn.1
- version 1.2.0
* Fri Nov 14 2003 Aurelien Bompard <gauret[AT]free.fr> 1.1.2-0.lvn.3
- Change conflicts
- s/Fedora/Livna/
* Wed Nov 12 2003 Aurelien Bompard <gauret[AT]free.fr> 1.1.2-0.lvn.2
- fix preun
* Wed Nov 12 2003 Aurelien Bompard <gauret[AT]free.fr> 1.1.2-0.lvn.1
- lots of fixes, thanks to Dams (anvil[AT]livna.org)
* Wed Nov 05 2003 Aurelien Bompard <gauret[AT]free.fr> 1.1.2-1
- new version
* Sat Nov 01 2003 Aurelien Bompard <gauret[AT]free.fr> 1.1.1-1
- RedHatification (from PLF/Mandrake)
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/amule/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:47:16 -0000 1.1
+++ .cvsignore 3 Aug 2008 14:00:51 -0000 1.2
@@ -0,0 +1 @@
+aMule-2.1.3.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/free/rpms/amule/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:47:16 -0000 1.1
+++ sources 3 Aug 2008 14:00:51 -0000 1.2
@@ -0,0 +1 @@
+0aafdd159edb8ad5f0064da87998b47d aMule-2.1.3.tar.bz2
16 years, 3 months
rpms/jbigkit/F-8 jbigkit-1.6-shlib.patch, NONE, 1.1 jbigkit.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/jbigkit/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv17711
Modified Files:
.cvsignore sources
Added Files:
jbigkit-1.6-shlib.patch jbigkit.spec
Log Message:
initail import
jbigkit-1.6-shlib.patch:
--- NEW FILE jbigkit-1.6-shlib.patch ---
--- jbigkit/pbmtools/Makefile.shlib 2003-06-11 18:27:22.000000000 +0100
+++ jbigkit/pbmtools/Makefile 2006-09-12 14:06:14.000000000 +0100
@@ -9,19 +9,19 @@ CFLAGS = -g -Wall -ansi -pedantic -I../l
.SUFFIXES: .1 .5 .txt $(SUFFIXES)
-all: pbmtojbg jbgtopbm pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
+all: pbmtojbg jbgtopbm # pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
-pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a
+pbmtojbg: pbmtojbg.o ../libjbig/libjbig.so.$(VERSION)
$(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig
-jbgtopbm: jbgtopbm.o ../libjbig/libjbig.a
+jbgtopbm: jbgtopbm.o ../libjbig/libjbig.so.$(VERSION)
$(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig
jbgtopbm.o: jbgtopbm.c ../libjbig/jbig.h
pbmtojbg.o: pbmtojbg.c ../libjbig/jbig.h
-../libjbig/libjbig.a: ../libjbig/jbig.c ../libjbig/jbig.h
- cd ../libjbig ; make libjbig.a
+../libjbig/libjbig.so.$(VERSION): ../libjbig/jbig.c ../libjbig/jbig.h
+ cd ../libjbig ; make libjbig.so.$(VERSION)
test: pbmtojbg jbgtopbm
make IMG=ccitt1 OPTIONSJ= OPTIONSP= dotest1
--- jbigkit/libjbig/Makefile.shlib 2004-06-08 15:40:06.000000000 +0100
+++ jbigkit/libjbig/Makefile 2006-09-12 14:07:26.000000000 +0100
@@ -6,19 +6,24 @@
# Options for the compiler: A high optimization level is suggested
CFLAGS = -O -Wall -ansi -pedantic
+PICFLAGS := -fPIC -DPIC
-all: libjbig.a tstcodec
+all: libjbig.so.$(VERSION) tstcodec
-tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
- $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
- jbig_tab.o
-
-libjbig.a: jbig.o jbig_tab.o
- rm -f libjbig.a
- ar rc libjbig.a jbig.o jbig_tab.o
- -ranlib libjbig.a
+tstcodec: tstcodec.c jbig.c jbig_tab.c
+ $(CC) $(CFLAGS) -DTEST_CODEC -o $@ $^
+
+libjbig.so.$(VERSION): jbig.o jbig_tab.o jbig.h libjbig.so
+ $(CC) -shared -Wl,-soname,$@ -o $@ jbig.o jbig_tab.o
+
+libjbig.so:
+ ln -sf $@.$(VERSION) $@
jbig.o: jbig.c jbig.h
+ $(CC) $(CFLAGS) $(PICFLAGS) -c -o $@ $<
+
+jbig_tab.o: jbig_tab.c
+ $(CC) $(CFLAGS) $(PICFLAGS) -c -o $@ $<
test: tstcodec
./tstcodec
@@ -27,4 +32,4 @@ t82test.pbm: tstcodec
./tstcodec $@
clean:
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm libjbig.so*
--- jbigkit/Makefile.shlib 2004-06-11 19:05:26.000000000 +0100
+++ jbigkit/Makefile 2006-09-12 14:06:14.000000000 +0100
@@ -11,6 +11,7 @@ CCFLAGS = -O2 -W
CFLAGS = $(CCFLAGS) -I../libjbig
VERSION=1.6
+export VERSION
all: lib pbm
@echo "Enter 'make test' in order to start some automatic tests."
@@ -23,7 +24,7 @@ pbm: lib
test: lib pbm
(cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
- (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
+ (cd pbmtools; LD_LIBRARY_PATH=../libjbig make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
clean:
rm -f *~ core
--- NEW FILE jbigkit.spec ---
Name: jbigkit
Version: 1.6
Release: 3%{?dist}
Summary: JBIG1 lossless image compression tools
Group: Applications/Multimedia
License: GPL
URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source0: http://www.cl.cam.ac.uk/~mgk25/download/%{name}-%{version}.tar.gz
Patch0: jbigkit-1.6-shlib.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%package libs
Summary: JBIG1 lossless image compression library
Group: Applications/Multimedia
%package devel
Summary: JBIG1 lossless image compression library -- development files
Group: Applications/Multimedia
Requires: jbigkit-libs = %{version}-%{release}
%description libs
JBIG-KIT provides a portable library of compression and decompression
functions with a documented interface that you can include very easily
into your image or document processing software. In addition, JBIG-KIT
provides ready-to-use compression and decompression programs with a
simple command line interface (similar to the converters found in
netpbm).
JBIG-KIT implements the specification:
ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993):
Information technology — Coded representation of picture and audio
information — Progressive bi-level image compression
which is commonly referred to as the “JBIG1 standard”
%description devel
The jbigkit-devel package contains files needed for development using
the JBIG-KIT image compression library.
%description
The jbigkit package contains tools for converting between PBM and JBIG1
formats.
%prep
%setup -q -n jbigkit
%patch0 -p1 -b .shlib
%build
make %{?_smp_mflags} CCFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_includedir}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m0755 libjbig/libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}
ln -sf libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig.so
install -p -m0644 libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}
install -p -m0755 pbmtools/???to??? $RPM_BUILD_ROOT%{_bindir}
install -p -m0644 pbmtools/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%check
make test
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/???to???
%{_mandir}/man1/*
%files libs
%{_libdir}/libjbig.so.%{version}
%doc COPYING ANNOUNCE TODO INSTALL CHANGES
%files devel
%{_libdir}/libjbig.so
%{_includedir}/jbig.h
%changelog
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 1.6-3
- rebuild
* Sun Oct 1 2006 David Woodhouse <dwmw2(a)infradead.org> 1.6-2
- Review fixes
* Tue Sep 12 2006 David Woodhouse <dwmw2(a)infradead.org> 1.6-1
- Initial version
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/jbigkit/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:51:30 -0000 1.1
+++ .cvsignore 3 Aug 2008 13:58:51 -0000 1.2
@@ -0,0 +1 @@
+jbigkit-1.6.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/jbigkit/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:51:30 -0000 1.1
+++ sources 3 Aug 2008 13:58:51 -0000 1.2
@@ -0,0 +1 @@
+ce196e45f293d40ba76af3dc981ccfd7 jbigkit-1.6.tar.gz
16 years, 3 months
rpms/jbigkit/F-9 jbigkit-1.6-shlib.patch, NONE, 1.1 jbigkit.spec, NONE, 1.1
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/jbigkit/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv17523
Added Files:
jbigkit-1.6-shlib.patch jbigkit.spec
Log Message:
initail import (2)
jbigkit-1.6-shlib.patch:
--- NEW FILE jbigkit-1.6-shlib.patch ---
--- jbigkit/pbmtools/Makefile.shlib 2003-06-11 18:27:22.000000000 +0100
+++ jbigkit/pbmtools/Makefile 2006-09-12 14:06:14.000000000 +0100
@@ -9,19 +9,19 @@ CFLAGS = -g -Wall -ansi -pedantic -I../l
.SUFFIXES: .1 .5 .txt $(SUFFIXES)
-all: pbmtojbg jbgtopbm pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
+all: pbmtojbg jbgtopbm # pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
-pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a
+pbmtojbg: pbmtojbg.o ../libjbig/libjbig.so.$(VERSION)
$(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig
-jbgtopbm: jbgtopbm.o ../libjbig/libjbig.a
+jbgtopbm: jbgtopbm.o ../libjbig/libjbig.so.$(VERSION)
$(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig
jbgtopbm.o: jbgtopbm.c ../libjbig/jbig.h
pbmtojbg.o: pbmtojbg.c ../libjbig/jbig.h
-../libjbig/libjbig.a: ../libjbig/jbig.c ../libjbig/jbig.h
- cd ../libjbig ; make libjbig.a
+../libjbig/libjbig.so.$(VERSION): ../libjbig/jbig.c ../libjbig/jbig.h
+ cd ../libjbig ; make libjbig.so.$(VERSION)
test: pbmtojbg jbgtopbm
make IMG=ccitt1 OPTIONSJ= OPTIONSP= dotest1
--- jbigkit/libjbig/Makefile.shlib 2004-06-08 15:40:06.000000000 +0100
+++ jbigkit/libjbig/Makefile 2006-09-12 14:07:26.000000000 +0100
@@ -6,19 +6,24 @@
# Options for the compiler: A high optimization level is suggested
CFLAGS = -O -Wall -ansi -pedantic
+PICFLAGS := -fPIC -DPIC
-all: libjbig.a tstcodec
+all: libjbig.so.$(VERSION) tstcodec
-tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
- $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
- jbig_tab.o
-
-libjbig.a: jbig.o jbig_tab.o
- rm -f libjbig.a
- ar rc libjbig.a jbig.o jbig_tab.o
- -ranlib libjbig.a
+tstcodec: tstcodec.c jbig.c jbig_tab.c
+ $(CC) $(CFLAGS) -DTEST_CODEC -o $@ $^
+
+libjbig.so.$(VERSION): jbig.o jbig_tab.o jbig.h libjbig.so
+ $(CC) -shared -Wl,-soname,$@ -o $@ jbig.o jbig_tab.o
+
+libjbig.so:
+ ln -sf $@.$(VERSION) $@
jbig.o: jbig.c jbig.h
+ $(CC) $(CFLAGS) $(PICFLAGS) -c -o $@ $<
+
+jbig_tab.o: jbig_tab.c
+ $(CC) $(CFLAGS) $(PICFLAGS) -c -o $@ $<
test: tstcodec
./tstcodec
@@ -27,4 +32,4 @@ t82test.pbm: tstcodec
./tstcodec $@
clean:
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec t82test.pbm libjbig.so*
--- jbigkit/Makefile.shlib 2004-06-11 19:05:26.000000000 +0100
+++ jbigkit/Makefile 2006-09-12 14:06:14.000000000 +0100
@@ -11,6 +11,7 @@ CCFLAGS = -O2 -W
CFLAGS = $(CCFLAGS) -I../libjbig
VERSION=1.6
+export VERSION
all: lib pbm
@echo "Enter 'make test' in order to start some automatic tests."
@@ -23,7 +24,7 @@ pbm: lib
test: lib pbm
(cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
- (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
+ (cd pbmtools; LD_LIBRARY_PATH=../libjbig make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
clean:
rm -f *~ core
--- NEW FILE jbigkit.spec ---
Name: jbigkit
Version: 1.6
Release: 3%{?dist}
Summary: JBIG1 lossless image compression tools
Group: Applications/Multimedia
License: GPL
URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source0: http://www.cl.cam.ac.uk/~mgk25/download/%{name}-%{version}.tar.gz
Patch0: jbigkit-1.6-shlib.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%package libs
Summary: JBIG1 lossless image compression library
Group: Applications/Multimedia
%package devel
Summary: JBIG1 lossless image compression library -- development files
Group: Applications/Multimedia
Requires: jbigkit-libs = %{version}-%{release}
%description libs
JBIG-KIT provides a portable library of compression and decompression
functions with a documented interface that you can include very easily
into your image or document processing software. In addition, JBIG-KIT
provides ready-to-use compression and decompression programs with a
simple command line interface (similar to the converters found in
netpbm).
JBIG-KIT implements the specification:
ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993):
Information technology — Coded representation of picture and audio
information — Progressive bi-level image compression
which is commonly referred to as the “JBIG1 standard”
%description devel
The jbigkit-devel package contains files needed for development using
the JBIG-KIT image compression library.
%description
The jbigkit package contains tools for converting between PBM and JBIG1
formats.
%prep
%setup -q -n jbigkit
%patch0 -p1 -b .shlib
%build
make %{?_smp_mflags} CCFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_includedir}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m0755 libjbig/libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}
ln -sf libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig.so
install -p -m0644 libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}
install -p -m0755 pbmtools/???to??? $RPM_BUILD_ROOT%{_bindir}
install -p -m0644 pbmtools/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%check
make test
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/???to???
%{_mandir}/man1/*
%files libs
%{_libdir}/libjbig.so.%{version}
%doc COPYING ANNOUNCE TODO INSTALL CHANGES
%files devel
%{_libdir}/libjbig.so
%{_includedir}/jbig.h
%changelog
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 1.6-3
- rebuild
* Sun Oct 1 2006 David Woodhouse <dwmw2(a)infradead.org> 1.6-2
- Review fixes
* Tue Sep 12 2006 David Woodhouse <dwmw2(a)infradead.org> 1.6-1
- Initial version
16 years, 3 months
rpms/jbigkit/F-9 .cvsignore,1.1,1.2 sources,1.1,1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/jbigkit/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv17400
Modified Files:
.cvsignore sources
Log Message:
initail import
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/jbigkit/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:51:30 -0000 1.1
+++ .cvsignore 3 Aug 2008 13:57:42 -0000 1.2
@@ -0,0 +1 @@
+jbigkit-1.6.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/jbigkit/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:51:30 -0000 1.1
+++ sources 3 Aug 2008 13:57:42 -0000 1.2
@@ -0,0 +1 @@
+ce196e45f293d40ba76af3dc981ccfd7 jbigkit-1.6.tar.gz
16 years, 3 months
rpms/foo2zjs/devel foo2zjs-dynamic-jbig.patch, 1.1, 1.2 foo2zjs.spec, 1.1, 1.2 sources, 1.2, 1.3
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/foo2zjs/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv16243
Modified Files:
foo2zjs-dynamic-jbig.patch foo2zjs.spec sources
Log Message:
clog
foo2zjs-dynamic-jbig.patch:
Index: foo2zjs-dynamic-jbig.patch
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/devel/foo2zjs-dynamic-jbig.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- foo2zjs-dynamic-jbig.patch 3 Aug 2008 12:25:48 -0000 1.1
+++ foo2zjs-dynamic-jbig.patch 3 Aug 2008 13:37:16 -0000 1.2
@@ -3906,9 +3906,9 @@
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-};
---- foo2zjs/Makefile.orig 2007-07-18 19:34:22.000000000 +0100
-+++ foo2zjs/Makefile 2007-08-29 16:30:04.000000000 +0100
-@@ -89,9 +89,6 @@ FILES = \
+--- foo2zjs/Makefile.orig 2008-03-21 15:21:41.000000000 +0000
++++ foo2zjs/Makefile 2008-03-26 09:32:51.000000000 +0000
+@@ -122,9 +122,6 @@ FILES = \
Makefile \
foo2zjs.c \
foo2zjs.1in \
@@ -3918,18 +3918,18 @@
zjsdecode.c \
zjsdecode.1in \
zjs.h \
-@@ -182,7 +179,7 @@ MANPAGES+= foo2xqx-wrapper.1 foo2xqx.1 x
- MANPAGES+= foo2lava-wrapper.1 foo2lava.1 lavadecode.1
- MANPAGES+= foo2qpdl-wrapper.1 foo2qpdl.1 qpdldecode.1
- MANPAGES+= opldecode.1
+@@ -239,7 +236,7 @@ MANPAGES+= foo2qpdl-wrapper.1 foo2qpdl.1
+ MANPAGES+= foo2slx-wrapper.1 foo2slx.1 slxdecode.1
+ MANPAGES+= foo2hiperc-wrapper.1 foo2hiperc.1 hipercdecode.1
+ MANPAGES+= foo2zjs-pstops.1 arm2hpdl.1 usb_printerid.1
-LIBJBG = jbig.o jbig_tab.o
+LIBJBG = -ljbig
BINPROGS=
ifeq ($(UNAME),Linux)
-@@ -305,23 +302,23 @@ all-test:
- # ... OK!
- #
+@@ -376,29 +373,29 @@ all-done:
+ @echo "yourself."
+
-foo2zjs: foo2zjs.o $(LIBJBG)
+foo2zjs: foo2zjs.o
@@ -3952,23 +3952,35 @@
+foo2qpdl: foo2qpdl.o
$(CC) $(CFLAGS) -o $@ foo2qpdl.o $(LIBJBG)
--zjsdecode: zjsdecode.o $(LIBJBG)
-+zjsdecode: zjsdecode.o
- $(CC) $(CFLAGS) zjsdecode.o $(LIBJBG) -o $@
+-foo2oak: foo2oak.o $(LIBJBG)
++foo2oak: foo2oak.o
+ $(CC) $(CFLAGS) -o $@ foo2oak.o $(LIBJBG)
+
+-foo2slx: foo2slx.o $(LIBJBG)
++foo2slx: foo2slx.o
+ $(CC) $(CFLAGS) -o $@ foo2slx.o $(LIBJBG)
+
+-foo2hiperc: foo2hiperc.o $(LIBJBG)
++foo2hiperc: foo2hiperc.o
+ $(CC) $(CFLAGS) -o $@ foo2hiperc.o $(LIBJBG)
- foo2zjs-wrapper: foo2zjs-wrapper.in Makefile
-@@ -364,25 +361,25 @@ getweb: getweb.in Makefile
+
+@@ -461,37 +458,37 @@ getweb: getweb.in Makefile
all-icc2ps:
cd icc2ps; $(MAKE) all
--okidecode: okidecode.o $(LIBJBG)
-+okidecode: okidecode.o
- $(CC) $(CFLAGS) okidecode.o $(LIBJBG) -o $@
-
-ok: ok.o $(LIBJBG)
+ok: ok.o
$(CC) $(CFLAGS) ok.o $(LIBJBG) -o $@
+-zjsdecode: zjsdecode.o $(LIBJBG)
++zjsdecode: zjsdecode.o
+ $(CC) $(CFLAGS) zjsdecode.o $(LIBJBG) -o $@
+
+-hipercdecode: hipercdecode.o $(LIBJBG)
++hipercdecode: hipercdecode.o
+ $(CC) $(CFLAGS) hipercdecode.o $(LIBJBG) -o $@
+
-splcdecode: splcdecode.o $(LIBJBG)
+splcdecode: splcdecode.o
$(CC) $(CFLAGS) splcdecode.o $(LIBJBG) -lz -o $@
@@ -3989,8 +4001,20 @@
+opldecode: opldecode.o
$(CC) $(CFLAGS) -g opldecode.o $(LIBJBG) -o $@
+-oakdecode: oakdecode.o $(LIBJBG)
++oakdecode: oakdecode.o
+ $(CC) $(CFLAGS) -g oakdecode.o $(LIBJBG) -o $@
+
+-slxdecode: slxdecode.o $(LIBJBG)
++slxdecode: slxdecode.o
+ $(CC) $(CFLAGS) slxdecode.o $(LIBJBG) -o $@
+
+-gipddecode: gipddecode.o $(LIBJBG)
++gipddecode: gipddecode.o
+ $(CC) $(CFLAGS) gipddecode.o $(LIBJBG) -o $@
+
#
-@@ -708,17 +705,12 @@ clean:
+@@ -925,21 +922,18 @@ clean:
#
# Header dependencies
#
@@ -3998,37 +4022,29 @@
-foo2zjs.o: zjs.h jbig.h
-jbig.o: jbig.h
-foo2hp.o: zjs.h jbig.h cups.h
--xqxdecode.o: xqx.h jbig.h
-foo2xqx.o: xqx.h jbig.h
--lavadecode.o: jbig.h
-foo2lava.o: jbig.h
--qpdldecode.o: jbig.h
-foo2qpdl.o: jbig.h qpdl.h
+-foo2slx.o: slx.h jbig.h
+-foo2hiperc.o: jbig.h hiperc.h
+-hipercdecode.o: hiperc.h jbig.h
+-lavadecode.o: jbig.h
+-qpdldecode.o: jbig.h
-opldecode.o: jbig.h
+-slxdecode.o: slx.h jbig.h
+-xqxdecode.o: xqx.h jbig.h
+zjsdecode.o: zjs.h
+foo2zjs.o: zjs.h
++jbig.o:
+foo2hp.o: zjs.h cups.h
-+xqxdecode.o: xqx.h
+foo2xqx.o: xqx.h
++foo2lava.o:
+foo2qpdl.o: qpdl.h
++foo2slx.o: slx.h
++foo2hiperc.o: hiperc.h
++hipercdecode.o: hiperc.h
++slxdecode.o: slx.h
++xqxdecode.o: xqx.h
#
# foo2* Regression tests
-@@ -1168,7 +1160,7 @@ foo2oak-wrapper: foo2oak-wrapper.in Make
-
- SYSNAME := $(shell uname -n)
- ifeq ($(SYSNAME),ipcroe.rkkda.com)
--foo2oak_$(MACH).o: oak.h jbig.h foo2oak.c
-+foo2oak_$(MACH).o: oak.h foo2oak.c
- cp -a foo2oak.c foo2oak_$(MACH).c
- $(CC) $(CFLAGS) -c foo2oak_$(MACH).c
- oakdecode_$(MACH).o: oak.h oakdecode.c
-@@ -1176,7 +1168,7 @@ oakdecode_$(MACH).o: oak.h oakdecode.c
- $(CC) $(CFLAGS) -c oakdecode_$(MACH).c
- endif
- ifeq ($(SYSNAME),amd.rkkda.org)
--foo2oak_$(MACH).o: oak.h jbig.h foo2oak.c
-+foo2oak_$(MACH).o: oak.h foo2oak.c
- cp -a foo2oak.c foo2oak_$(MACH).c
- $(CC) $(CFLAGS) -c foo2oak_$(MACH).c
- oakdecode_$(MACH).o: oak.h oakdecode.c
Index: foo2zjs.spec
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/devel/foo2zjs.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- foo2zjs.spec 3 Aug 2008 12:25:48 -0000 1.1
+++ foo2zjs.spec 3 Aug 2008 13:37:16 -0000 1.2
@@ -1,6 +1,6 @@
Name: foo2zjs
-Version: 0.20070822
-Release: 2%{?dist}
+Version: 0.20080324
+Release: 1%{?dist}
Summary: Linux printer driver for ZjStream protocol
Group: System Environment/Libraries
@@ -33,6 +33,16 @@
Group: System Environment/Libraries
Requires: lcms foo2zjs
+%package -n foo2slx
+Summary: Linux printer driver for SLX protocol (Lexmark C500n etc.)
+Group: System Environment/Libraries
+Requires: lcms foo2zjs
+
+%package -n foo2hiperc
+Summary: Linux printer driver for HIPERC protocol (Oki C3400n etc.)
+Group: System Environment/Libraries
+Requires: lcms foo2zjs
+
%description
foo2zjs is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
@@ -111,8 +121,35 @@
Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
-http://foo2lava.rkkda.com/ and consider contributing.
+http://foo2qpdl.rkkda.com/ and consider contributing.
+%description -n foo2slx
+foo2slx is an open source printer driver for printers that use the
+Software Imaging K.K. SLX wire protocol for their print data, such as
+the Lexmark C500n. These printers are often erroneously referred to as
+winprinters or GDI printers. However, Microsoft GDI only mandates the
+API between an application and the printer driver, not the protocol on
+the wire between the printer driver and the printer. In fact, SLX
+printers are raster printers which happen to use a very efficient wire
+protocol which was developed by Zenographics and cloned by Software
+Imaging K.K. and licensed by most major printer manufacturers for at
+least some of their product lines. SLX is just one of many wire
+protocols that are in use today, such as Postscript, PCL, Epson,
+ZjStream, etc.
+
+Users of this package are requested to visit the author's web page at
+http://foo2slx.rkkda.com/ and consider contributing.
+
+%description -n foo2hiperc
+foo2hiperc is an open source printer driver for printers that use the
+HIPERC wire protocol for their print data, such as the Oki C3400n and
+the Oki C5500n.
+
+NOTE: This driver is currently in Alpha and supports uncompressed mode
+only.
+
+Users of this package are requested to visit the author's web page at
+http://foo2hiperc.rkkda.com/ and consider contributing.
%prep
%setup -q -n foo2zjs
@@ -150,6 +187,8 @@
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/Generic-OAKT_Printer.ppd.gz
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/HP-Color_LaserJet_1500.ppd.gz
+# Remove man page for usb_printerid which we don't ship
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/usb_printerid.1
%clean
@@ -163,22 +202,15 @@
%{_mandir}/man1/*zjs*
%{_datadir}/foomatic/db/source/driver/foo2zjs.xml
%{_datadir}/foomatic/db/source/opt/foo2zjs*.xml
+%{_datadir}/foomatic/db/source/opt/foo2xxx*.xml
%{_datadir}/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1000.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1005.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1018.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1020.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1022.xml
+%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1*.xml
%{_datadir}/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
%{_datadir}/cups/model/Generic-ZjStream_Printer.ppd.gz
-%{_datadir}/cups/model/HP-LaserJet_1000.ppd.gz
-%{_datadir}/cups/model/HP-LaserJet_1005.ppd.gz
-%{_datadir}/cups/model/HP-LaserJet_1018.ppd.gz
-%{_datadir}/cups/model/HP-LaserJet_1020.ppd.gz
-%{_datadir}/cups/model/HP-LaserJet_1022.ppd.gz
+%{_datadir}/cups/model/HP-LaserJet_1*.ppd.gz
%{_datadir}/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2200_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2300_DL.ppd.gz
@@ -199,8 +231,10 @@
%{_mandir}/man1/*xqx*
%{_datadir}/foomatic/db/source/driver/foo2xqx.xml
%{_datadir}/foomatic/db/source/opt/foo2xqx*.xml
-%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.xml
-%{_datadir}/cups/model/HP-LaserJet_M1005_MFP.ppd.gz
+%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M*.xml
+%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P*.xml
+%{_datadir}/cups/model/HP-LaserJet_M*.ppd.gz
+%{_datadir}/cups/model/HP-LaserJet_P*.ppd.gz
%files -n foo2lava
%{_bindir}/*lava*
@@ -227,6 +261,23 @@
%{_datadir}/cups/model/Xerox-Phaser-611*.ppd.gz
%{_datadir}/foo2qpdl/crd/
+%files -n foo2slx
+%{_bindir}/*slx*
+%{_bindir}/gipddecode
+%{_mandir}/man1/*slx*
+%{_datadir}/foomatic/db/source/driver/foo2slx.xml
+%{_datadir}/foomatic/db/source/opt/foo2slx*.xml
+%{_datadir}/foomatic/db/source/printer/Lexmark-C500.xml
+%{_datadir}/cups/model/Lexmark-C500.ppd.gz
+
+%files -n foo2hiperc
+%{_bindir}/*hiperc*
+%{_mandir}/man1/*hiperc*
+%{_datadir}/foomatic/db/source/driver/foo2hiperc.xml
+%{_datadir}/foomatic/db/source/opt/foo2hiperc*.xml
+%{_datadir}/foomatic/db/source/printer/Oki-C*.xml
+%{_datadir}/cups/model/Oki-C*.ppd.gz
+
%doc COPYING ChangeLog INSTALL README manual.pdf
%post
@@ -245,8 +296,9 @@
/bin/rm -f /var/cache/foomatic/*
%changelog
-* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.20070822-2
-- rebuild
+* Wed Mar 24 2008 David Woodhouse <dwmw2(a)infradead.org> 0.20080324-1
+- Update to 20080324
+- add foo2slx and foo2hiperc subpackage
* Wed Aug 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070822-1
- Update to 2007-08-22 release
Index: sources
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources 3 Aug 2008 12:25:48 -0000 1.2
+++ sources 3 Aug 2008 13:37:16 -0000 1.3
@@ -1 +1 @@
-b90465102df087afa33e8edd00b0a243 foo2zjs.tar.gz
+85351317f8aa7028f5bbea638a2f7846 foo2zjs.tar.gz
16 years, 3 months
rpms/foo2zjs/devel foo2zjs-dynamic-jbig.patch, NONE, 1.1 foo2zjs.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/foo2zjs/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv10773
Modified Files:
.cvsignore sources
Added Files:
foo2zjs-dynamic-jbig.patch foo2zjs.spec
Log Message:
initial import
foo2zjs-dynamic-jbig.patch:
--- NEW FILE foo2zjs-dynamic-jbig.patch ---
diff -uNr foo2zjs-jbig/jbig.c foo2zjs/jbig.c
--- foo2zjs-jbig/jbig.c 2004-06-12 03:33:05.000000000 +0100
+++ foo2zjs/jbig.c 1970-01-01 01:00:00.000000000 +0100
@@ -1,3194 +0,0 @@
-/*
- * Portable Free JBIG image compression library
- *
- * Markus Kuhn -- http://www.cl.cam.ac.uk/~mgk25/
- *
- * Id: jbig.c,v 1.22 2004-06-11 15:17:06+01 mgk25 Exp $
- * $Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $
- *
- * This module implements a portable standard C encoder and decoder
- * using the JBIG lossless bi-level image compression algorithm as
- * specified in International Standard ISO 11544:1993 or equivalently
- * as specified in ITU-T Recommendation T.82. See the file jbig.doc
- * for usage instructions and application examples.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * If you want to use this program under different license conditions,
- * then contact the author for an arrangement.
- *
- * It is possible that certain products which can be built using this
- * software module might form inventions protected by patent rights in
- * some countries (e.g., by patents about arithmetic coding algorithms
- * owned by IBM and AT&T in the USA). Provision of this software by the
- * author does NOT include any licences for any patents. In those
- * countries where a patent licence is required for certain applications
- * of this software module, you will have to obtain such a licence
- * yourself.
- */
-
-#ifdef DEBUG
-#include <stdio.h>
-#else
-#define NDEBUG
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-#include "jbig.h"
-
-
-/* optional export of arithmetic coder functions for test purposes */
-#ifdef TEST_CODEC
-#define ARITH
-#define ARITH_INL
-#else
-#define ARITH static
-#ifdef __GNUC__
-#define ARITH_INL static __inline__
-#else
-#define ARITH_INL static
-#endif
-#endif
-
-#define MX_MAX 127 /* maximal supported mx offset for
- * adaptive template in the encoder */
-
-#define TPB2CX 0x195 /* contexts for TP special pixels */
-#define TPB3CX 0x0e5
-#define TPDCX 0xc3f
-
-/* marker codes */
-#define MARKER_STUFF 0x00
-#define MARKER_RESERVE 0x01
-#define MARKER_SDNORM 0x02
-#define MARKER_SDRST 0x03
-#define MARKER_ABORT 0x04
-#define MARKER_NEWLEN 0x05
-#define MARKER_ATMOVE 0x06
-#define MARKER_COMMENT 0x07
-#define MARKER_ESC 0xff
-
-/* loop array indices */
-#define STRIPE 0
-#define LAYER 1
-#define PLANE 2
-
-/* special jbg_buf pointers (instead of NULL) */
-#define SDE_DONE ((struct jbg_buf *) -1)
-#define SDE_TODO ((struct jbg_buf *) 0)
-
-/* object code version id */
-
-const char jbg_version[] =
-" JBIG-KIT " JBG_VERSION " -- Markus Kuhn -- "
-"$Id: jbig.c,v 1.4 2004/06/12 02:33:05 rick Exp $ ";
-
-/*
- * the following array specifies for each combination of the 3
- * ordering bits, which ii[] variable represents which dimension
- * of s->sde.
- */
-static const int iindex[8][3] = {
- { 2, 1, 0 }, /* no ordering bit set */
- { -1, -1, -1}, /* SMID -> illegal combination */
- { 2, 0, 1 }, /* ILEAVE */
- { 1, 0, 2 }, /* SMID + ILEAVE */
- { 0, 2, 1 }, /* SEQ */
- { 1, 2, 0 }, /* SEQ + SMID */
- { 0, 1, 2 }, /* SEQ + ILEAVE */
- { -1, -1, -1 } /* SEQ + SMID + ILEAVE -> illegal combination */
-};
-
-
-/*
- * Array [language][message] with text string error messages that correspond
- * to return values from public functions in this library.
- */
-#define NEMSG 9 /* number of error codes */
-#define NEMSG_LANG 3 /* number of supported languages */
-static const char *errmsg[NEMSG_LANG][NEMSG] = {
- /* English (JBG_EN) */
- {
- "Everything is ok", /* JBG_EOK */
- "Reached specified maximum size", /* JBG_EOK_INTR */
- "Unexpected end of data", /* JBG_EAGAIN */
- "Not enough memory available", /* JBG_ENOMEM */
- "ABORT marker found", /* JBG_EABORT */
- "Unknown marker segment encountered", /* JBG_EMARKER */
- "Incremental BIE does not fit to previous one", /* JBG_ENOCONT */
- "Invalid data encountered", /* JBG_EINVAL */
- "Unimplemented features used" /* JBG_EIMPL */
- },
- /* German (JBG_DE_8859_1) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\366\337e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\374gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\374ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- },
- /* German (JBG_DE_UTF_8) */
- {
- "Kein Problem aufgetreten", /* JBG_EOK */
- "Angegebene maximale Bildgr\303\266\303\237e erreicht", /* JBG_EOK_INTR */
- "Unerwartetes Ende der Daten", /* JBG_EAGAIN */
- "Nicht gen\303\274gend Speicher vorhanden", /* JBG_ENOMEM */
- "Es wurde eine Abbruch-Sequenz gefunden", /* JBG_EABORT */
- "Eine unbekannte Markierungssequenz wurde gefunden", /* JBG_EMARKER */
- "Neue Daten passen nicht zu vorangegangenen Daten", /* JBG_ENOCONT */
- "Es wurden ung\303\274ltige Daten gefunden", /* JBG_EINVAL */
- "Noch nicht implementierte Optionen wurden benutzt" /* JBG_EIMPL */
- }
-};
-
-
-
-/*
- * The following three functions are the only places in this code, were
- * C library memory management functions are called. The whole JBIG
- * library has been designed in order to allow multi-threaded
- * execution. No static or global variables are used, so all fuctions
- * are fully reentrant. However if you want to use this multi-thread
- * capability and your malloc, realloc and free are not reentrant,
- * then simply add the necessary semaphores or mutex primitives below.
- * In contrast to C's malloc() and realloc(), but like C's calloc(),
- * these functions take two parameters nmemb and size that are multiplied
- * before being passed on to the corresponding C function.
- * This we can catch all overflows during a size_t multiplication a
- * a single place.
- */
-
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t) -1) /* largest value of size_t */
-#endif
-
-static void *checked_malloc(size_t nmemb, size_t size)
-{
- void *p;
-
- /* Full manual exception handling is ugly here for performance
- * reasons. If an adequate handling of lack of memory is required,
- * then use C++ and throw a C++ exception instead of abort(). */
-
- /* assert that nmemb * size <= SIZE_MAX */
- if (size > SIZE_MAX / nmemb)
- abort();
-
[...3635 lines suppressed...]
- 2,1,2,1,2,0,2,0,1,2,1,2,0,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,1,2,1,2,0,2,0,1,2,1,1,0,2,0,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,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,0,2,0,2,1,2,1,2,1,2,0,2,0,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,0,2,0,2,1,2,1,1,2,1,2,0,2,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,1,2,1,2,0,2,0,2,2,1,2,1,2,0,2,0,2,2,2,2,2,2,2,2,
- 2,0,2,1,2,1,2,0,0,2,1,2,1,2,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,0,2,0,2,1,2,1,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,1,2,1,2,0,2,0,1,1,1,2,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,
- 2,0,2,0,2,1,2,1,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
-};
--- foo2zjs/Makefile.orig 2007-07-18 19:34:22.000000000 +0100
+++ foo2zjs/Makefile 2007-08-29 16:30:04.000000000 +0100
@@ -89,9 +89,6 @@ FILES = \
Makefile \
foo2zjs.c \
foo2zjs.1in \
- jbig.c \
- jbig.h \
- jbig_tab.c \
zjsdecode.c \
zjsdecode.1in \
zjs.h \
@@ -182,7 +179,7 @@ MANPAGES+= foo2xqx-wrapper.1 foo2xqx.1 x
MANPAGES+= foo2lava-wrapper.1 foo2lava.1 lavadecode.1
MANPAGES+= foo2qpdl-wrapper.1 foo2qpdl.1 qpdldecode.1
MANPAGES+= opldecode.1
-LIBJBG = jbig.o jbig_tab.o
+LIBJBG = -ljbig
BINPROGS=
ifeq ($(UNAME),Linux)
@@ -305,23 +302,23 @@ all-test:
# ... OK!
#
-foo2zjs: foo2zjs.o $(LIBJBG)
+foo2zjs: foo2zjs.o
$(CC) $(CFLAGS) -o $@ foo2zjs.o $(LIBJBG)
-foo2hp: foo2hp.o $(LIBJBG)
+foo2hp: foo2hp.o
# $(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG) /usr/local/lib/libdmalloc.a
$(CC) $(CFLAGS) -o $@ foo2hp.o $(LIBJBG)
-foo2xqx: foo2xqx.o $(LIBJBG)
+foo2xqx: foo2xqx.o
$(CC) $(CFLAGS) -o $@ foo2xqx.o $(LIBJBG)
-foo2lava: foo2lava.o $(LIBJBG)
+foo2lava: foo2lava.o
$(CC) $(CFLAGS) -o $@ foo2lava.o $(LIBJBG)
-foo2qpdl: foo2qpdl.o $(LIBJBG)
+foo2qpdl: foo2qpdl.o
$(CC) $(CFLAGS) -o $@ foo2qpdl.o $(LIBJBG)
-zjsdecode: zjsdecode.o $(LIBJBG)
+zjsdecode: zjsdecode.o
$(CC) $(CFLAGS) zjsdecode.o $(LIBJBG) -o $@
foo2zjs-wrapper: foo2zjs-wrapper.in Makefile
@@ -364,25 +361,25 @@ getweb: getweb.in Makefile
all-icc2ps:
cd icc2ps; $(MAKE) all
-okidecode: okidecode.o $(LIBJBG)
+okidecode: okidecode.o
$(CC) $(CFLAGS) okidecode.o $(LIBJBG) -o $@
-ok: ok.o $(LIBJBG)
+ok: ok.o
$(CC) $(CFLAGS) ok.o $(LIBJBG) -o $@
-splcdecode: splcdecode.o $(LIBJBG)
+splcdecode: splcdecode.o
$(CC) $(CFLAGS) splcdecode.o $(LIBJBG) -lz -o $@
-xqxdecode: xqxdecode.o $(LIBJBG)
+xqxdecode: xqxdecode.o
$(CC) $(CFLAGS) xqxdecode.o $(LIBJBG) -o $@
-lavadecode: lavadecode.o $(LIBJBG)
+lavadecode: lavadecode.o
$(CC) $(CFLAGS) lavadecode.o $(LIBJBG) -o $@
-qpdldecode: qpdldecode.o $(LIBJBG)
+qpdldecode: qpdldecode.o
$(CC) $(CFLAGS) qpdldecode.o $(LIBJBG) -o $@
-opldecode: opldecode.o $(LIBJBG)
+opldecode: opldecode.o
$(CC) $(CFLAGS) -g opldecode.o $(LIBJBG) -o $@
#
@@ -708,17 +705,12 @@ clean:
#
# Header dependencies
#
-zjsdecode.o: zjs.h jbig.h
-foo2zjs.o: zjs.h jbig.h
-jbig.o: jbig.h
-foo2hp.o: zjs.h jbig.h cups.h
-xqxdecode.o: xqx.h jbig.h
-foo2xqx.o: xqx.h jbig.h
-lavadecode.o: jbig.h
-foo2lava.o: jbig.h
-qpdldecode.o: jbig.h
-foo2qpdl.o: jbig.h qpdl.h
-opldecode.o: jbig.h
+zjsdecode.o: zjs.h
+foo2zjs.o: zjs.h
+foo2hp.o: zjs.h cups.h
+xqxdecode.o: xqx.h
+foo2xqx.o: xqx.h
+foo2qpdl.o: qpdl.h
#
# foo2* Regression tests
@@ -1168,7 +1160,7 @@ foo2oak-wrapper: foo2oak-wrapper.in Make
SYSNAME := $(shell uname -n)
ifeq ($(SYSNAME),ipcroe.rkkda.com)
-foo2oak_$(MACH).o: oak.h jbig.h foo2oak.c
+foo2oak_$(MACH).o: oak.h foo2oak.c
cp -a foo2oak.c foo2oak_$(MACH).c
$(CC) $(CFLAGS) -c foo2oak_$(MACH).c
oakdecode_$(MACH).o: oak.h oakdecode.c
@@ -1176,7 +1168,7 @@ oakdecode_$(MACH).o: oak.h oakdecode.c
$(CC) $(CFLAGS) -c oakdecode_$(MACH).c
endif
ifeq ($(SYSNAME),amd.rkkda.org)
-foo2oak_$(MACH).o: oak.h jbig.h foo2oak.c
+foo2oak_$(MACH).o: oak.h foo2oak.c
cp -a foo2oak.c foo2oak_$(MACH).c
$(CC) $(CFLAGS) -c foo2oak_$(MACH).c
oakdecode_$(MACH).o: oak.h oakdecode.c
--- NEW FILE foo2zjs.spec ---
Name: foo2zjs
Version: 0.20070822
Release: 2%{?dist}
Summary: Linux printer driver for ZjStream protocol
Group: System Environment/Libraries
License: GPL
URL: http://foo2zjs.rkkda.com/
Source0: http://foo2zjs.rkkda.com/foo2zjs.tar.gz
Patch0: foo2zjs-dynamic-jbig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: jbigkit-devel groff ghostscript
Requires: lcms
%package -n foo2hp
Summary: Linux printer driver for HP 1600, HP 2600n
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2xqx
Summary: Linux printer driver for HP LaserJet M1005 MFP
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2lava
Summary: Linux printer driver for Zenographics LAVAFLOW protocol
Group: System Environment/Libraries
Requires: lcms foo2zjs
%package -n foo2qpdl
Summary: Linux printer driver for Samsung CLP-300, CLP-600, CLP-3160
Group: System Environment/Libraries
Requires: lcms foo2zjs
%description
foo2zjs is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
Minolta/QMS magicolor 2300 DL or Konica Minolta magicolor 2430
DL. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, ZjStream printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. ZjStream is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2zjs.rkkda.com/ and consider contributing.
%description -n foo2hp
foo2hp is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data, such as the
HP Color LaserJet 2600n. These printers are often erroneously referred
to as winprinters or GDI printers. However, Microsoft GDI only
mandates the API between an application and the printer driver, not
the protocol on the wire between the printer driver and the
printer. In fact, ZjStream printers are raster printers which happen
to use a very efficient wire protocol which was developed by
Zenographics and licensed by most major printer manufacturers for at
least some of their product lines. ZjStream is just one of many wire
protocols that are in use today, such as Postscript, PCL, Epson, etc.
Users of this package are requested to visit the author's web page at
http://foo2hp.rkkda.com/ and consider contributing.
%description -n foo2xqx
foo2xqx is an open source printer driver for printers that use the
HP/Software Imaging "XQX" stream wire protocol for their print data,
such as the HP LaserJet M1005 MFP. These printers are often
erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, "XQX" printers are raster printers
which happen to use a very efficient wire protocol which was developed
by HP/Software Imaging. "XQX" is just one of many wire protocols that
are in use today, such as Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2xqx.rkkda.com/ and consider contributing.
%description -n foo2lava
foo2lava is an open source printer driver for printers that use the
Zenographics LAVAFLOW wire protocol for their print data, such as the
Konica Minolta magicolor 2530 DL or the Konica Minolta magicolor 2490
MF. These printers are often erroneously referred to as winprinters or
GDI printers. However, Microsoft GDI only mandates the API between an
application and the printer driver, not the protocol on the wire
between the printer driver and the printer. In fact, LAVAFLOW printers
are raster printers which happen to use a very efficient wire protocol
which was developed by Zenographics and licensed by most major printer
manufacturers for at least some of their product lines. LAVAFLOW is
just one of many wire protocols that are in use today, such as
Postscript, PCL, Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2lava.rkkda.com/ and consider contributing.
%description -n foo2qpdl
foo2qpdl is an open source printer driver for printers that use the
QPDL wire protocol for their print data, such as the Samsung CLP-300
or the Samsung CLP-600 or the Xerox Phaser 6110. These printers are
often erroneously referred to as winprinters or GDI printers. However,
Microsoft GDI only mandates the API between an application and the
printer driver, not the protocol on the wire between the printer
driver and the printer. In fact, QPDL printers are raster printers
which happen to use a very efficient wire protocol. QPDL is just one
of many wire protocols that are in use today, such as Postscript, PCL,
Epson, ZjStream, etc.
Users of this package are requested to visit the author's web page at
http://foo2lava.rkkda.com/ and consider contributing.
%prep
%setup -q -n foo2zjs
%patch0 -p1
sed -i -e s/foo2zjs-icc2ps/icc2ps/g *wrapper*
sed -i -e s/775/755/ Makefile
chmod -x COPYING
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer
mkdir -p $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt
mkdir -p $RPM_BUILD_ROOT%{_datadir}/cups/model
make PREFIX=$RPM_BUILD_ROOT%{_prefix} BINPROGS= install-prog \
FOODB=$RPM_BUILD_ROOT%{_datadir}/foomatic/db/source \
MODEL=$RPM_BUILD_ROOT/usr/share/cups/model \
PPD=$RPM_BUILD_ROOT/usr/share/ppd \
install-extra install-crd install-man install-foo install-ppd
# Remove remnants of GPL-violating foo2oak stuff.
rm -f $RPM_BUILD_ROOT%{_bindir}/*oak*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*oak*.1
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/opt/foo2oak*
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/driver/foo2oak.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/Generic-OAKT_Printer.xml
rm -f $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/Generic-OAKT_Printer.ppd.gz
rm -f $RPM_BUILD_ROOT/usr/share/cups/model/HP-Color_LaserJet_1500.ppd.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*zjs*
%{_datadir}/foo2zjs
%{_mandir}/man1/*zjs*
%{_datadir}/foomatic/db/source/driver/foo2zjs.xml
%{_datadir}/foomatic/db/source/opt/foo2zjs*.xml
%{_datadir}/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1000.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1005.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1018.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1020.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1022.xml
%{_datadir}/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
%{_datadir}/cups/model/Generic-ZjStream_Printer.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1000.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1005.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1018.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1020.ppd.gz
%{_datadir}/cups/model/HP-LaserJet_1022.ppd.gz
%{_datadir}/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2200_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2300_DL.ppd.gz
%{_datadir}/cups/model/Minolta-magicolor_2430_DL.ppd.gz
%files -n foo2hp
%{_bindir}/*hp*
%{_mandir}/man1/*hp*
%{_datadir}/foomatic/db/source/driver/foo2hp.xml
%{_datadir}/foomatic/db/source/opt/foo2hp*.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml
%{_datadir}/cups/model/HP-Color_LaserJet_1600.ppd.gz
%{_datadir}/cups/model/HP-Color_LaserJet_2600n.ppd.gz
%files -n foo2xqx
%{_bindir}/*xqx*
%{_mandir}/man1/*xqx*
%{_datadir}/foomatic/db/source/driver/foo2xqx.xml
%{_datadir}/foomatic/db/source/opt/foo2xqx*.xml
%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.xml
%{_datadir}/cups/model/HP-LaserJet_M1005_MFP.ppd.gz
%files -n foo2lava
%{_bindir}/*lava*
%{_bindir}/opldecode
%{_mandir}/man1/*lava*
%{_mandir}/man1/opldecode.1.gz
%{_datadir}/foomatic/db/source/driver/foo2lava.xml
%{_datadir}/foomatic/db/source/opt/foo2lava*.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2480_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2490_MF.xml
%{_datadir}/foomatic/db/source/printer/KonicaMinolta-magicolor_2530_DL.xml
%{_datadir}/cups/model/KonicaMinolta-magicolor_2480_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2490_MF.ppd.gz
%{_datadir}/cups/model/KonicaMinolta-magicolor_2530_DL.ppd.gz
%files -n foo2qpdl
%{_bindir}/*qpdl*
%{_mandir}/man1/*qpdl*
%{_datadir}/foomatic/db/source/driver/foo2qpdl.xml
%{_datadir}/foomatic/db/source/opt/foo2qpdl*.xml
%{_datadir}/foomatic/db/source/printer/Samsung-CL*.xml
%{_datadir}/foomatic/db/source/printer/Xerox-Phaser-611*.xml
%{_datadir}/cups/model/Samsung-CL*.ppd.gz
%{_datadir}/cups/model/Xerox-Phaser-611*.ppd.gz
%{_datadir}/foo2qpdl/crd/
%doc COPYING ChangeLog INSTALL README manual.pdf
%post
/bin/rm -f /var/cache/foomatic/*
%post -n foo2hp
/bin/rm -f /var/cache/foomatic/*
%post -n foo2xqx
/bin/rm -f /var/cache/foomatic/*
%post -n foo2lava
/bin/rm -f /var/cache/foomatic/*
%post -n foo2qpdl
/bin/rm -f /var/cache/foomatic/*
%changelog
* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.20070822-2
- rebuild
* Wed Aug 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070822-1
- Update to 2007-08-22 release
- Add foo2qpdl subpackage
- Add %%post script to remove foomatic cache
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070128-1
- Update to 2007-01-28 release
* Mon Jan 29 2007 David Woodhouse <dwmw2(a)infradead.org> 0.20070127-1
- Update to 2007-01-27 release
- Add foo2xqx, foo2lava subpackages
- Include foomatic files which are now absent from Fedora foomatic
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060929-1
- Review fixes
* Wed Sep 13 2006 David Woodhouse <dwmw2(a)infradead.org> 0.20060911-1
- Initial build.
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:50:22 -0000 1.1
+++ .cvsignore 3 Aug 2008 12:25:48 -0000 1.2
@@ -0,0 +1 @@
+foo2zjs.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/foo2zjs/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:50:22 -0000 1.1
+++ sources 3 Aug 2008 12:25:48 -0000 1.2
@@ -0,0 +1 @@
+b90465102df087afa33e8edd00b0a243 foo2zjs.tar.gz
16 years, 3 months