SPECS: foo2zjs.spec (NEW) - initial spec - works
Kamil Jakubowski
jakubowski.kamil w 3vnet.pl
Czw, 8 Mar 2007, 12:43:04 CET
Dnia 08-03-2007, czw o godzinie 12:26 +0100, Daniel MrĂłz napisaĹ(a):
> TĹumaczenia w SPECu masz zdefiniowane jako UTF8, a sÄ
zakodowane w ISO.
>
Korzystanie z poczty zawsze mi sprawialo problemy.
Moze teraz jest dobrze, acz pewnosci nie mam ;]
-------------- następna część ---------
# $Revision: $, $Date: $
Summary: Linux printer driver for ZjStream protocol
Summary(pl.UTF-8):Linuksowy sterownik drukarek dla protokołu ZjStream
Name: foo2zjs
Version: 0.0
Release: 1
License: GPL v2
Group: Applications/System
Source0: http://foo2zjs.rkkda.com/%{name}.tar.gz
# Source0-md5: 68a1547c33d22f293986805ecec7146a
Source1: http://foo2zjs.rkkda.com/sihp1000.tar.gz
# Source1-md5:
Source2: http://foo2zjs.rkkda.com/sihp1005.tar.gz
# Source2-md5:
Source3: http://foo2zjs.rkkda.com/sihp1018.tar.gz
# Source3-md5:
Source4: http://foo2zjs.rkkda.com/sihp1020.tar.gz
# Source4-md5:
Patch0: %{name}-make.patch
Patch1: %{name}-udev-rules.patch
Patch2: %{name}-hplj1000.patch
URL: http//foo2zjs.rkkda.com
BuildRequires: cups-filter-foomatic
BuildRequires: ghostscript
Requires: foomatic-db
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
foo2zjs is an open source printer driver for printers that use the
Zenographics ZjStream wire protocol for their print data. With
foo2zjs, you can print to some HP and Minolta/QMS ZjStream printers,
such as these:
- HP LaserJet 1000 B/W
- HP LaserJet 1005 B/W
- HP LaserJet 1018 B/W
- HP LaserJet 1020 B/W
- Konica Minolta magicolor 2430 DL B/W and color
- Minolta/QMS 2300 DL B/W and color
- Minolta/QMS 2200 DL B/W and color
%description -l pl.UTF-8
foo2zjs to otwarty sterownik dla drukarek używających do druku
protokołu Zenographics ZjStream. Dzięki foo2zjs możesz drukować na
drukarkach HP oraz Minolta/QMS ZjStream takich jak:
- HP LaserJet 1000 B/W
- HP LaserJet 1005 B/W
- HP LaserJet 1018 B/W
- HP LaserJet 1020 B/W
- Konica Minolta magicolor 2430 DL B/W and color
- Minolta/QMS 2300 DL B/W and color
- Minolta/QMS 2200 DL B/W and color
%package firmware
Summary: Firmware for HP LaserJet 10xx printers
Summary(pl.UTF-8):Firmware dla drukarek HP LaserJet 10xx
License: distributable
Group: Applications/System
Requires: %{name}-udev-rules
%description firmware
Firmware for HP LaserJet 10xx printers
- HP LaserJet 1000, 1005, 1018, 1020
%description firmware -l pl.UTF-8
Firmware dla drukarek HP LaserJet 10xx
- HP LaserJet 1000, 1005, 1018, 1020
%package udev-rules
Summary: udev rules for HP LaserJet 10xx printers
Summary(pl.UTF-8):reguły udev dla drukarek HP LaserJet 10xx
Group: Applications/System
Requires: %{name}-firmware
Requires: cups-foomatic-db-HP
Requires: foo2zjs
Requires: udev
%description udev-rules
udev rules for printers:
- HP LaserJet 1000, 1005, 1018, 1020
%description udev-rules -l pl.UTF-8
reguły udev dla drukarek:
- HP LaserJet 1000, 1005, 1018, 1020
%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{firmware,crd}
install -d $RPM_BUILD_ROOT/etc/udev/rules.d
install -d $RPM_BUILD_ROOT%{_mandir}/man1
install {arm2hpdl,foo2zjs,foo2zjs-wrapper,zjsdecode,usb_printerid} \
$RPM_BUILD_ROOT%{_bindir}/
install hplj1000 $RPM_BUILD_ROOT%{_bindir}/hplj10xx
install hplj10xx.rules $RPM_BUILD_ROOT/etc/udev/rules.d/11-hplj10xx.rules
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .
cp %{SOURCE4} .
for i in sihp1000 sihp1005 sihp1018 sihp1020; do
tar -xf $i.tar.gz --use=gzip
rm $i.tar.gz
./arm2hpdl $i.img > $i.dl
install $i.dl $RPM_BUILD_ROOT%{_datadir}/%{name}/firmware/
done
install *.ps $RPM_BUILD_ROOT%{_datadir}/%{name}
install crd/zjs/*.{crd,ps} \
$RPM_BUILD_ROOT%{_datadir}/%{name}/crd
install {foo2zjs,foo2zjs-wrapper,zjsdecode}.1 \
$RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%post
%service -q cups restart
%files
%defattr(644,root,root,755)
%doc ChangeLog README manual.pdf
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}/*.ps
%{_datadir}/%{name}/crd/*.crd
%{_datadir}/%{name}/crd/*.ps
%{_mandir}/man1/*.1*
%files firmware
%defattr(644,root,root,755)
%{_datadir}/%{name}/firmware/*.dl
%files udev-rules
%defattr(644,root,root,755)
/etc/udev/rules.d/11-hplj10xx.rules
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log: $
Więcej informacji o liście dyskusyjnej pld-devel-pl