%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: ftp://download.canon.jp/pub/driver/lasershot/linux/cndrvcups-common-%version-%REL.tar.gz Packager: Michael Shigorin 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 1.20-alt1 - 1.20 - split off devel subpackage - added Url and FTP location - added buildrequires - FHS fixes * Thu Mar 16 2006 Michael Shigorin 1.10-1 - built for ALT Linux - fixed Group: - spec *cleanup*