rpms/c2050/FC-6 c2050-0.3a-signedness.patch, NONE, 1.1 c2050.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lubomir Kundrak (lkundrak) fedora-extras-commits at redhat.com
Fri Aug 3 08:56:57 UTC 2007


Author: lkundrak

Update of /cvs/extras/rpms/c2050/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5926/FC-6

Modified Files:
	.cvsignore sources 
Added Files:
	c2050-0.3a-signedness.patch c2050.spec 
Log Message:
Import from devel.


c2050-0.3a-signedness.patch:

--- NEW FILE c2050-0.3a-signedness.patch ---
Change the type of some variables from 'char' to 'signed char' to make it
working on arm, powerpc and s390.

(From Debian's c20500.3-3, by the upstream author Marco Nenciarini)

--- c2050.c.orig	2007-06-11 12:27:54.000000000 +0200
+++ c2050.c	2007-06-11 12:28:04.000000000 +0200
@@ -170,7 +170,7 @@ void PrintSweep(char *buffer, char *head
 /*
  * This finds out if there is anything but zeros in a string
  */
-int LineSum(char line[], int length)
+int LineSum(signed char line[], int length)
 {
   register i = 0;
   while (i < length)
@@ -182,7 +182,7 @@ int LineSum(char line[], int length)
  * This is the main printing routine. Wicked and insane. Nonetheless working.
  */
 void LexPrint(FILE *in, FILE *out) {
-  char line[GS_PAGE_WIDTH / 2];
+  signed char line[GS_PAGE_WIDTH / 2];
   int done_page, cur_height = 0, page_height = 0, numpages = 0;
   char lex_blkhd[BYTES_PER_HEADER] = {0x1b,0x2a,0x04,0xff,0xff,0x00,0x01,
 				      0x00,0x01,0x06,0x31,0xff,0xff,0xff,0xff,
@@ -198,7 +198,7 @@ void LexPrint(FILE *in, FILE *out) {
   int CurrentColBuffer = 0;
   int blkwidth, colwidth;
   int empty_lines, skipcolors;
-  char nibble;
+  signed char nibble;
   int yellowcounter = 0;
 
   /* The printer may not be able to print every GhostScript pixel */


--- NEW FILE c2050.spec ---
Name:           c2050
Version:        0.3a
Release:        2%{?dist}
Summary:        Converts bitcmyk data to Lexmark 2050 printer language

Group:          System Environment/Libraries
License:        GPL
URL:            http://www.prato.linux.it/~mnencia/lexmark2050/
Source0:        http://www.prato.linux.it/~mnencia/lexmark2050/files/%{name}-%{version}.tar.gz
Patch0:         c2050-0.3a-signedness.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This is a filter to convert bitcmyk data such as produced by ghostscript to
the printer language of Lexmark 2050 printers.  It is meant to be used
by the PostScript Description files of the drivers from the foomatic package.

%prep
%setup -q
%patch0

%build
# The included Makefile is badly written
%{__cc} %{optflags} -o c2050 c2050.c

%install
rm -rf $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT/%{_bindir}
%{__install} c2050 $RPM_BUILD_ROOT/%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/c2050
%doc COPYING README

%changelog
* Mon Jun 11 2007 Lubomir Kundrak <lkundrak at redhat.com> 0.3a-2
- Silence the %setup (#243947)

* Mon Jun 11 2007 Lubomir Kundrak <lkundrak at redhat.com> 0.3a-1
- Upstream added missing copyright notice upon request
- Patch for correcting signedness issues on some Archs

* Thu Jun 7 2007 Lubomir Kundrak <lkundrak at redhat.com> 0.3-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/c2050/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Jun 2007 23:04:11 -0000	1.1
+++ .cvsignore	3 Aug 2007 08:56:25 -0000	1.2
@@ -0,0 +1 @@
+c2050-0.3a.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/c2050/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Jun 2007 23:04:11 -0000	1.1
+++ sources	3 Aug 2007 08:56:25 -0000	1.2
@@ -0,0 +1 @@
+1b19ad0a6980cd47a9404148b3b00f35  c2050-0.3a.tar.gz




More information about the scm-commits mailing list