File dymo-cups-drivers.spec of Package dymo-cups-drivers

#
# spec file for package dymo-cups-drivers
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%define _version 1.4.0.5
%define _tarball_version 1.4.0
Name:           dymo-cups-drivers
Version:        %{_version}
Release:        0
Summary:        DYMO LabelWriter Drivers for CUPS
License:        GPL-2.0-only
Group:          Hardware/Printing
URL:            http://www.dymo.com
Source:         dymo-cups-drivers-%{_tarball_version}.tar.gz
# https://aur.archlinux.org/cgit/aur.git/plain/cups-ppd-header.patch?h=dymo-cups-drivers
Patch0:         cups-ppd-header.patch
Patch1:         stdio-header.patch
Patch2:         PPD-install-dir.patch
BuildRequires:  cups-devel
BuildRequires:  gcc-c++
# Install into this non-root directory (required when norootforbuild is used):
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
DYMO LabelWriter and DYMO LabelMANAGER series drivers for CUPS

%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2

%build
%configure
%make_build || make %{?_smp_mflags}

%install
%make_install

%files
%defattr(-,root,root)
%dir %{_libexecdir}/cups
%dir %{_libexecdir}/cups/filter
%{_libexecdir}/cups/filter/raster2dymolm
%{_libexecdir}/cups/filter/raster2dymolw
%dir %{_datadir}/cups
%dir %{_datadir}/cups/model
%dir %{_datadir}/cups/model/manufacturer-PPDs
%dir %{_datadir}/cups/model/manufacturer-PPDs/dymo
%{_datadir}/cups/model/manufacturer-PPDs/dymo/*.ppd

%changelog
openSUSE Build Service is sponsored by