%product Brother CUPS PTouch Printer Definitions
%copyright 2004 Brother Industries, Ltd. All Rights Reserved
%vendor Brother Industries, Ltd.
%license COPYING
%readme README
%description Brother PTouch printer CUPS Driver
%version EPM_VERSION 
%release EPM_RELEASE

%requires DEP_PACKAGE
%incompat CONFLICT_PACKAGE

$PRINTER=PT_PRINTER_NAME
$PT_SYSTEM=PT_SYSTEM_VALUE

%preinstall mkdir -p /usr/local/Brother/Printer/${PRINTER}/cupswrapper
%postinstall /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER}
%preremove  /usr/local/Brother/Printer/${PRINTER}/cupswrapper/cupswrapper${PRINTER} -e
%postremove rm -rf /usr/local/Brother/Printer/${PRINTER}/cupswrapper

$LANGUAGE=EPM_LANGUAGE

$RELEASE_DIR=../../../cupswrapperfilter

$LUT_DIR=../../../lut

$LIB_DIR=/usr/lib

$INF_DIR=/usr/local/Brother/Printer/${PRINTER}/inf

$WRAPPER_DIR=/usr/local/Brother/Printer/${PRINTER}/cupswrapper

f 755 root root ${WRAPPER_DIR}/cupswrapper${PRINTER} ${RELEASE_DIR}/cupswrapper${PRINTER}$PT_SYSTEM
f 755 root root ${WRAPPER_DIR}/brcupsconfpt1 ${RELEASE_DIR}/brcupsconfpt1
