Summary: lm1100 - Driver for the Lexmark 1000, 1020, and 1100 printers Name: openprinting-lm1100 Version: 1.0.2a Release: 6lsb3.2 License: GPL Group: Applications/System URL: http://www.openprinting.org/download/printing/lm1100/ %define drivername lm1100 %define filternames lm1100 %define extraversion %nil #define extraversion -beta2 %define driverstr lm1100 %define supplierstr OpenPrinting %define supplier %{supplierstr}-%{driverstr} %define lsbver 3.2 %define ppdnickname , %{driverstr} %{version}%{extraversion} (%{supplierstr} LSB %{lsbver}) BuildRequires: lsb-build-cc, lsb-build-c++, lsb-appchk BuildRequires: perl, gzip Requires: lsb >= %{lsbver} Source0: http://www.openprinting.org/download/printing/lm1100/lm1100.1.0.2a.tar.gz Source1: http://www.openprinting.org/download/foomatic/foomatic-db-4.0-20090514.tar.gz Source2: http://www.openprinting.org/download/foomatic/foomatic-db-engine-4.0-20090514.tar.gz Source3: http://www.openprinting.org/download/printing/lm1100/lm1100maint.tar.gz Patch0: http://www.openprinting.org/download/printing/lm1100/lm1100.1.0.2a-fix-compile-gcc-3.4.patch.gz BuildRoot: %_tmppath/%name-%version-%release-root %description Driver for the Lexmark 1000, 1020, and 1100 color inkjet printers # Packaging settings %install_into_opt %has_bin_executables %prep # remove old directory rm -rf $RPM_BUILD_DIR/%{drivername}-%{version}%{extraversion} %setup -q -n %{drivername}.%{version}%{extraversion} %setup -q -T -D -a 1 -n %{drivername}.%{version}%{extraversion} %setup -q -T -D -a 2 -n %{drivername}.%{version}%{extraversion} %setup -q -T -D -a 3 -n %{drivername}.%{version}%{extraversion} # Update of C code to be compatible with current compilers # See http://openprinting.org/show_driver.cgi?driver=lm1100 %patch0 -p0 perl -p -i -e 's/friend Lexmark/friend class Lexmark/' *.h perl -p -i -e 's/\b[^\s:]+:://' *.h %build # Build driver %make CC="$CXX -O2 $CXXFLAGS $LDFLAGS" # Build PPDs %build_foomatic_ppds # Set paths in the maintenance tools %if %{optinstall} perl -p -i -e "s:/usr/share/lm1100maint:%{_datadir}:g" lm1100maint/lm* %endif %install rm -rf %{buildroot} # Make directories install -d %{buildroot}%{_cupsppd}/Lexmark install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir} install -d %{buildroot}%{_docdir} # Install the driver and the maintenance tools install -m 755 lm1100 %{buildroot}%{_bindir} install -m 755 lm1100maint/lm* %{buildroot}%{_bindir} %if %{optinstall} install -m 755 lm1100maint/lex* %{buildroot}%{_datadir} %else install -d %{buildroot}%{_datadir}/lm1100maint install -m 755 lm1100maint/lex* %{buildroot}%{_datadir}/lm1100maint %endif # Install the PPDs install -m 644 foomatic-db-engine*/ppd/*.ppd %{buildroot}%{_cupsppd} %adjust_ppds # Documentation cp -r LICENSE README RELEASE.txt %{buildroot}%{_docdir} cp -r lm1100maint/README %{buildroot}%{_docdir}/README.maintenance %pre %init_scriptlet %create_opt_dirs %post %init_scriptlet %set_opt_paths %set_ppd_links %update_ppds_fast %restart_cups %preun %init_scriptlet %not_on_rpm_update %remove_opt_paths %end_not_on_rpm_update %postun %init_scriptlet %not_on_rpm_update %remove_ppd_links %restart_cups %end_not_on_rpm_update %clean rm -rf %{buildroot} %files %defattr(-,root,root) %if %{optinstall} %{_prefix} %else %{_bindir}/* %{_datadir}/* %{_docdir} %{_cupsppd} %endif %docdir %{_docdir} %changelog * Thu May 14 2009 Till Kamppeter 1.0.2a-6lsb3.2 - Rebuilt with new LSB DDK macro set to improve automatic update of the PPDs of existing print queues. - Updated Foomatic packages to generate the PPD files. * Wed Nov 28 2008 Till Kamppeter 1.0.2a-5lsb3.2 - Built with new RPM macro set, now the automatic PPD update does not cause error messages if CUPS is not running or no CUPS queues are on the system and in addition the default settings of the PPD options are conserved. * Wed Nov 12 2008 Till Kamppeter 1.0.2a-4lsb3.2 - Let PPDs of existing print queues using this driver getting updated automatically. * Sat Nov 1 2008 Till Kamppeter 1.0.2a-3lsb3.2 - Renamed package and changed supplier name, to avoid conflicts with packages from Linux distributions. - Updated Foomatic packages to generate the PPD files. * Tue May 27 2008 Till Kamppeter 1.0.2a-2lsb3.2 - Used new LSB DDK macro set with bug fixes * Tue May 6 2008 Till Kamppeter 1.0.2a-1lsb3.2 - Updated for building LSB-3.2 packages. * Fri May 11 2007 Till Kamppeter 1.0.2a-1lsb3.1 - Initial release