Summary: Manufacturer-supplied PPD files for Kyocera's PostScript printers Name: openprinting-ppds-postscript-kyocera Version: 20160218 Release: 1lsb3.2 License: MIT Group: Applications/System URL: http://www.kyocera.com/ %define drivername Postscript-Kyocera %define extraversion %nil %define driverstr Postscript-Kyocera %define supplierstr OpenPrinting %define supplier OpenPrinting-Kyocera %define ppdnickname , %{driverstr} %{version}%{extraversion} (%{supplierstr} LSB 3.2) BuildRequires: lsb-build-cc, lsb-build-c++, lsb-appchk BuildRequires: perl, gzip, cupsddk Source0: openprinting-ppds-postscript-kyocera-20160218.tar.gz Source1: openprinting-ppds-postscript-kyocera-20160218-README Source2: openprinting-ppds-postscript-kyocera-20160218-COPYING BuildRoot: %_tmppath/%name-%version-%release-root BuildArch: noarch %description Manufacturer-supplied PPD files for Kyocera's PostScript printers This package is automatically created from the PPD files which are assigned to the "Postscript-Kyocera" driver entry in the OpenPrinting database. The PPDs can also be downloaded as single files, but with the packaged file all advantages of the package managers of the distros can be made use of: Clean uninstallation, automatic updates, ... # Packaging settings %install_into_opt %prep # remove old directory rm -rf $RPM_BUILD_DIR/%{name}-%{version}%{extraversion} mkdir $RPM_BUILD_DIR/%{name}-%{version}%{extraversion} %setup -q -T -D -a 0 -n %{name}-%{version}%{extraversion} %build # Nothing to build %install rm -rf %{buildroot} install -d %{buildroot}%{_cupsppd} install -d %{buildroot}%{_docdir}/openprinting-ppds-postscript-kyocera cp -r ppds/. %{buildroot}%{_cupsppd}/ chmod -R u+rwX,go+rX %{buildroot}%{_cupsppd} # Rename PPDs appropriate to LSB agreements and compress the PPD files %adjust_ppds cat %{SOURCE1} > %{buildroot}%{_docdir}/openprinting-ppds-postscript-kyocera/README cat %{SOURCE2} > %{buildroot}%{_docdir}/openprinting-ppds-postscript-kyocera/COPYING %pre %create_opt_dirs %post %set_ppd_links %update_ppds_fast %restart_cups %preun %not_on_rpm_update : %end_not_on_rpm_update %postun %not_on_rpm_update %remove_ppd_links %restart_cups %end_not_on_rpm_update %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_prefix} %docdir %{_docdir} %changelog * Thu Feb 18 2016 OpenPrinting Database Server 20160218-1lsb3.2 - Automatically generated to reflect the changes in the PPD repository for the driver "Postscript-Kyocera". * Tue Mar 19 2013 OpenPrinting Database Server 20130319-1lsb3.2 - Automatically generated to reflect the changes in the PPD repository for the driver "Postscript-Kyocera". * Tue Feb 26 2013 OpenPrinting Database Server 20130226-1lsb3.2 - Automatically generated to reflect the changes in the PPD repository for the driver "Postscript-Kyocera".