rpms/pbm2l7k/FC-6 pbm2l7k-990321-paths.patch, NONE, 1.1 pbm2l7k.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 09:03:59 UTC 2007


Author: lkundrak

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

Modified Files:
	.cvsignore sources 
Added Files:
	pbm2l7k-990321-paths.patch pbm2l7k.spec 
Log Message:
Import from devel.


pbm2l7k-990321-paths.patch:

--- NEW FILE pbm2l7k-990321-paths.patch ---
Look for the prologues in system-wide scope.
(Lubomir Kundrak <lkundrak at redhat.com>)

--- pbm2l7k.c.orig	2007-06-08 12:05:53.000000000 +0200
+++ pbm2l7k.c	2007-06-08 12:29:56.000000000 +0200
@@ -21,12 +21,16 @@
                 /* temporarily set to 5700 */
 
 struct lx_smodel{
-   char printer_name[16];
-   char prologoue_name[64];
+   char *printer_name;
+   char *prologoue_name;
 };
 
-struct lx_smodel lx[]={{"Lexmark 7000","pr7000.prn"},
-                            {"Lexmark 5700","pr5700.prn"}};
+#ifndef DATADIR
+# define DATADIR "/usr/share/pbm2l7k"
+#endif
+
+struct lx_smodel lx[]={{"Lexmark 7000", DATADIR"/pr7000.prn"},
+                            {"Lexmark 5700", DATADIR"/pr5700.prn"}};
 
 
 


--- NEW FILE pbm2l7k.spec ---
Name:           pbm2l7k
Version:        990321
Release:        2%{?dist}
Summary:        Converts PBM stream to Lexmark 7000, 7200 and 5700 printer language

Group:          System Environment/Libraries
License:        GPL
URL:            http://www.ibiblio.org/pub/linux/hardware/drivers/lexmark7000linux-%{version}.lsm
Source0:        http://www.ibiblio.org/pub/linux/hardware/drivers/lexmark7000linux-%{version}.tar.gz
Patch0:         pbm2l7k-990321-paths.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

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

%prep
%setup -q -c
%patch

%build
# The included Makefile is badly written
%{__cc} -DDATADIR=\"%{_datadir}/%{name}\" %{optflags} -o pbm2l7k pbm2l7k.c

%install
rm -rf $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT/%{_bindir}
%{__install} pbm2l7k $RPM_BUILD_ROOT/%{_bindir}
# Foomatic driver refers to this filter as pbm2lex
%{__ln_s} pbm2l7k $RPM_BUILD_ROOT/%{_bindir}/pbm2lex
%{__mkdir} -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
%{__install} pr5700.prn $RPM_BUILD_ROOT/%{_datadir}/%{name}
%{__install} pr7000.prn $RPM_BUILD_ROOT/%{_datadir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/pbm2l7k
%{_bindir}/pbm2lex
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/pr5700.prn
%{_datadir}/%{name}/pr7000.prn
%doc README lexmarkprotocol.txt

%changelog
* Mon Jul 2 2007 Lubomir Kundrak <lkundrak at redhat.com> 990321-2
- Changed one absolute symlink to relative (#243951)
- Fixed the patch filename

* Fri Jun 8 2007 Lubomir Kundrak <lkundrak at redhat.com> 990321-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/pbm2l7k/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Jul 2007 02:36:58 -0000	1.1
+++ .cvsignore	3 Aug 2007 09:03:27 -0000	1.2
@@ -0,0 +1 @@
+lexmark7000linux-990321.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/pbm2l7k/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Jul 2007 02:36:58 -0000	1.1
+++ sources	3 Aug 2007 09:03:27 -0000	1.2
@@ -0,0 +1 @@
+0f255d21fa2608094a2e40f5130ceee1  lexmark7000linux-990321.tar.gz




More information about the fedora-extras-commits mailing list