[Hardware] I: Canon LBP-1120 таки работает (specs)
Michael Shigorin
mike на osdn.org.ua
Ср Мар 22 16:05:37 MSK 2006
On Mon, Mar 20, 2006 at 06:40:28PM +0200, Michael Shigorin wrote:
> - cndrvcups-capt-1.20-1 -- работает бинарная сборка
> производителя, собирать для ALT ещё не пробовал
Спеки прилагаются. В бою не проверены, принтер сильно удалённый
и экспериментировать на нём малоудобно. Надеюсь, до следующей
недели станет ясно...
TODO:
- проверить работу, включая перетянутые из /usr/local бинарники
- если решим, что в Sisyphus, то переписать инитксрипт и подумать
насчёт /var/ccpd
--
---- WBR, Michael Shigorin <mike at altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
-------------- next part --------------
%define REL 1
Name: cndrvcups-common
Version: 1.20
Release: alt1
# Copyright: Copyright CANON INC. 2004-2005. All Rights Reserved.
Summary: Canon Printer Driver Common Module for Linux v%VERSION
License: See the LICENSE*.txt file.
Group: Publishing
Url: http://software.canon-europe.com
Source: cndrvcups-common-%version-%REL.tar.gz
Packager: Michael Shigorin <mike at altlinux.org>
BuildRequires: glib2-devel gtk+-devel libcups-devel
Requires: gtk+
%description
Official Canon CAPT driver for GDI winprinters like LBP-1120 or LBP-3200
rebuilt for ALT Linux
%package devel
Summary: Canon Printer Driver Common Module for Linux development
Group: Development/C
Requires: %name = %version
%description devel
Development headers and libraries for Canon Printer Driver
Common Module for Linux
%prep
%setup -q
cd buftool
./autogen.sh --prefix=%prefix --enable-progpath=%_bindir --libdir=%_libdir --disable-shared --enable-static
cd ../cpca
./autogen.sh --prefix=%prefix --enable-progpath=%_bindir --libdir=%_libdir --enable-shared --disable-static
cd ../cngplp
set `automake --version`
am_ver=`expr substr $4 1 3`
case $am_ver in
"1.4" | "1.5" )
./autogen-old.sh --libdir=%_libdir ;;
* )
./autogen.sh --libdir=%_libdir ;;
esac
%build
# argh: make i586 fails in cngplp/
unset target
make
%install
mkdir -pv %buildroot%_bindir
#mkdir -pv %buildroot%prefix/local/bin
mkdir -pv %buildroot%_libdir
mkdir -pv %buildroot%_includedir
#mkdir -pv %buildroot%prefix/local/share/locale/ja/LC_MESSAGES
mkdir -pv %buildroot%_datadir/locale/ja/LC_MESSAGES
subst 's,/usr/local,%prefix,g' `find -name Makefile`
make install DESTDIR=%buildroot
# install -c -s -m 755 libs/cnpkmodule %buildroot%_bindir
install -c libs/cnpkmodule %buildroot%_bindir
%files
%_libdir/libcnpk.so.*
%_datadir/locale/*/*/*.mo
%_bindir/cngplp
%_bindir/cnpkmodule
%doc LICENSE-common-%{version}J.txt
%doc LICENSE-common-%{version}E.txt
%files devel
# static library needed for cndrvcups-capt/statusio build
%_libdir/libcnpk.so
%_libdir/libbuftool.a
%_includedir/buftool.h
%_includedir/buflist.h
%_includedir/cnpklib.h
%changelog
* Wed Mar 22 2006 Michael Shigorin <mike at altlinux.org> 1.20-alt1
- 1.20
- split off devel subpackage
- added Url and FTP location
- added buildrequires
- FHS fixes
* Thu Mar 16 2006 Michael Shigorin <mike at altlinux.org> 1.10-1
- built for ALT Linux
- fixed Group:
- spec *cleanup*
-------------- next part --------------
%define REL 1
Name: cndrvcups-capt
Version: 1.20
Release: alt1
# Copyright: Copyright CANON INC. 2004-2005. All Rights Reserved.
Summary: Canon CAPT Printer Driver for Linux v%VERSION
License: See the LICENSE*.txt file.
Group: Publishing
Url: http://software.canon-europe.com
Source0: ftp://download.canon.jp/pub/driver/lasershot/linux/cndrvcups-capt-%version-%REL.tar.gz
Requires: cndrvcups-common >= %version
Requires: libxml2 gtk+
BuildRequires: cndrvcups-common-devel >= %version
BuildRequires: libxml2-devel gtk+-devel glib2-devel libcups-devel
%description
Canon CAPT Printer Driver for Linux.
This CAPT printer driver provides printing functions for Canon LBP printers
operating under the CUPS (Common UNIX Printing System) environment.
%prep
%setup -q
cd backend
./autogen.sh --prefix=%prefix --libdir=%_libdir --enable-progpath=%_bindir
cd ../pstocapt
./autogen.sh --prefix=%prefix --libdir=%_libdir --enable-progpath=%_bindir
cd ../ppd
./autogen.sh --prefix=%prefix
cd ../statusui
set `automake --version`
am_ver=`expr substr $4 1 3`
case $am_ver in
"1.4" | "1.5" )
./autogen-old.sh --libdir=%_libdir ;;
* )
./autogen.sh --libdir=%_libdir ;;
esac
%build
# argh
unset target
make
%install
mkdir -pv %buildroot%_bindir/
mkdir -pv %buildroot%_sbindir/
#mkdir -pv %buildroot%prefix/local/bin
mkdir -pv %buildroot%_libdir/cups/backend/
mkdir -pv %buildroot%_libdir/cups/filter/
#mkdir -pv %buildroot%prefix/local/share/locale/ja/LC_MESSAGES
mkdir -pv %buildroot%_datadir/locale/ja/LC_MESSAGES/
mkdir -pv %buildroot%_datadir/ccpd/
mkdir -pv %buildroot%_datadir/captmon/
mkdir -pv %buildroot%_datadir/captmon2/
mkdir -pv %buildroot%_datadir/cups/model/
mkdir -pv %buildroot%_datadir/doc/%name-%version/JP/
mkdir -pv %buildroot%_datadir/doc/%name-%version/EN/
mkdir -pv %buildroot%_initdir/
subst 's,/usr/local,%prefix,g' `find -name Makefile`
make install DESTDIR=%buildroot
install -c -s -m 755 libs/captmon/captmon %buildroot%_bindir/
install -c -s -m 755 libs/captmon2/captmon2 %buildroot%_bindir/
install -c -s -m 755 libs/captfilter %buildroot%_bindir/
install -c -s -m 644 libs/ccpddata/CNAB1CL.BIN %buildroot%_datadir/ccpd
install -c -s -m 644 libs/captmon/msgtable.xml %buildroot%_datadir/captmon
install -c -s -m 644 libs/captmon2/msgtable2.xml %buildroot%_datadir/captmon2
install -c -s -m 755 libs/ccpd %buildroot%_sbindir/
install -c -s -m 755 libs/ccpdadmin %buildroot%_sbindir/
install -c -s -m 644 samples/ccpd.conf %buildroot%_sysconfdir/
install -c -s -m 755 samples/ccpd %buildroot%_initdir/
%post
if [ ! -d /var/ccpd ] ; then
mkdir /var/ccpd
mkfifo -m 600 /var/ccpd/fifo0
mkfifo -m 600 /var/ccpd/fifo1
mkfifo -m 600 /var/ccpd/fifo2
mkfifo -m 600 /var/ccpd/fifo3
mkfifo -m 600 /var/ccpd/fifo4
mkfifo -m 600 /var/ccpd/fifo5
mkfifo -m 600 /var/ccpd/fifo6
mkfifo -m 600 /var/ccpd/fifo7
chown lp.lp /var/ccpd/*
fi
if [ ! -d /var/captmon ] ; then
mkdir /var/captmon
chown lp.lp /var/captmon
fi
# /sbin/chkconfig --add ccpd
%preun
# if [ "$1" = 0 ] ; then
# /sbin/service ccpd stop > /dev/null 2>&1
# /sbin/chkconfig --del ccpd
# fi
# exit 0
%postun
if [ "$1" = 0 ] ; then
rm -Rf /var/ccpd
rm -Rf /var/captmon
# else
# /sbin/service ccpd restart > /dev/null 2>&1
fi
%files
%_libdir/cups/backend/ccp
%_libdir/cups/filter/pstocapt
%_bindir/captstatusui
%_datadir/locale/ja/LC_MESSAGES/captstatusui.mo
%_datadir/cups/model/CNCUPS*CAPT*.PPD
%_datadir/ccpd/CNAB1CL.BIN
%_datadir/captmon/msgtable.xml
%_datadir/captmon2/msgtable2.xml
%_bindir/captmon
%_bindir/captmon2
%_bindir/captfilter
%_sbindir/ccpd
%_sbindir/ccpdadmin
%config(noreplace) %_sysconfdir/ccpd.conf
%config %_initdir/ccpd
%doc README-capt-1.2xE.txt
%doc README-capt-1.2xJ.txt
%doc LICENSE-capt-%{version}E.txt
%doc LICENSE-capt-%{version}J.txt
%changelog
* Wed Mar 22 2006 Michael Shigorin <mike at altlinux.org> 1.20-alt1
- built for ALT Linux
- spec *cleanup* (more needed)
- added Url and FTP location
- buildrequires
- FHS fixes
- data/config files no more marked executable
Подробная информация о списке рассылки Hardware