rpms/c2050/devel 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
Mon Jul 2 09:55:43 UTC 2007
- Previous message (by thread): rpms/c2050 import.log,1.1,1.2
- Next message (by thread): rpms/lyx/F-7 lyx-1.5.0rc2-xdg-open.patch, NONE, 1.1 .cvsignore, 1.20, 1.21 lyx.spec, 1.55, 1.56 sources, 1.18, 1.19 lyx-1.5.0beta2-xdg_open.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lkundrak
Update of /cvs/extras/rpms/c2050/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30192/devel
Modified Files:
.cvsignore sources
Added Files:
c2050-0.3a-signedness.patch c2050.spec
Log Message:
Initial import of the c2050 package.
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/devel/.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 2 Jul 2007 09:55:08 -0000 1.2
@@ -0,0 +1 @@
+c2050-0.3a.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/c2050/devel/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 2 Jul 2007 09:55:08 -0000 1.2
@@ -0,0 +1 @@
+1b19ad0a6980cd47a9404148b3b00f35 c2050-0.3a.tar.gz
- Previous message (by thread): rpms/c2050 import.log,1.1,1.2
- Next message (by thread): rpms/lyx/F-7 lyx-1.5.0rc2-xdg-open.patch, NONE, 1.1 .cvsignore, 1.20, 1.21 lyx.spec, 1.55, 1.56 sources, 1.18, 1.19 lyx-1.5.0beta2-xdg_open.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list