Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:microchip
epson-inkjet-printer-escpr
epson-inkjet-printer-escpr.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File epson-inkjet-printer-escpr.spec of Package epson-inkjet-printer-escpr
# # spec file for package epson-inkjet-printer-escpr # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: epson-inkjet-printer-escpr BuildRequires: cups BuildRequires: cups-devel BuildRequires: ghostscript Version: 1.8.5 Release: %mkver 1 URL: http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX Summary: Epson ESC/P-R Inkjet Printer Driver License: GPL-2.0-only Group: Hardware/Printing Source0: epson-inkjet-printer-escpr-%{version}-1.tar.gz # PATCH-FIX-UPSTREAM bug_x86_64.patch -- fix a segfault on x64_64 (probably manifested with GCC7 use) # https://aur.archlinux.org/cgit/aur.git/plain/bug_x86_64.patch?h=epson-inkjet-printer-escpr Patch0: bug_x86_64.patch Requires: cups BuildRequires: automake BuildRequires: autoconf BuildRequires: lib64cups2-devel BuildRequires: lib64cups-filters-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The ESC/P-R driver works as a filter program used with CUPS. It offers high quality printing with Seiko Epson color inkjet printers. This driver can only be used with printers that support the Epson ESC/P-R language. For a list of supported printers by a currently installed package see the PPD files in this directory: /usr/share/cups/model/manufacturer-PPDs/epson-inkjet-printer-escpr %prep # Be quiet when unpacking: %setup -q %patch0 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" ./configure aclocal make %install install -d %{buildroot}/usr/lib/cups/filter install -d %{buildroot}%{_libdir} install -d %{buildroot}%{_datadir} install -d %{buildroot}%{_defaultdocdir}/%{name} make install DESTDIR=%{buildroot} install -m 644 README README.ja COPYING AUTHORS NEWS %{buildroot}%{_defaultdocdir}/%{name} rm -f %{buildroot}%{_libdir}/libescpr.a rm -f %{buildroot}%{_libdir}/libescpr.la # Compress PPDs: pushd %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/epson-inkjet-printer-escpr # Do not pollute the build log file with meaningless messages: set +x # For now keep all PPDs even if cupstestppd FAILs. # Reason: # With each CUPS version upgrade cupstestppd finds more and more errors # so that more and more PPDs would be no longer included in the RPM # which have been included before which results a regression. # As far as we know there have been no problems at all because of # not strictly compliant PPDs so that it is much better to provide all PPDs # so that the matching printers can be used than to be rigorous regarding # enforcing compliance to the PPD specification: for p in *.ppd do echo -n "$p: " grep -E -v '^\*UIConstraints:|^\*NonUIConstraints:|^\*cupsFilter:' $p | cupstestppd - || true gzip -n9 $p done # Switch back to the usual build log messages: set -x popd %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libescpr.* %dir /usr/lib/cups %dir /usr/lib/cups/filter /usr/lib/cups/filter/epson-escpr /usr/lib/cups/filter/epson-escpr-wrapper %dir %{_datadir}/cups %dir %{_datadir}/cups/model %dir %{_datadir}/cups/model/manufacturer-PPDs %{_datadir}/cups/model/manufacturer-PPDs/epson-inkjet-printer-escpr/ %doc %{_defaultdocdir}/%{name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor