File ipp-usb.spec of Package ipp-usb

Name:           ipp-usb
Version:        0.0.0
Release:        1%{?dist}
Summary:        Daemon for IPP over USB printer support
License:        BSD 2-Clause License
URL:            https://github.com/OpenPrinting/ipp-usb
Source:         ipp-usb-%{version}.tar.gz
BuildRequires:  avahi-devel
BuildRequires:  git
BuildRequires:  make
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  pkgconf-pkg-config
BuildRequires:  libusbx-devel
BuildRequires:  golang
%endif
%if 0%{?suse_version}
BuildRequires:  pkg-config
BuildRequires:  libusb-devel
BuildRequires:  go
%endif

Conflicts:      ippusbxd

%description
ipp-usb is a userland driver for USB devices (printers, scanners, MFC),
supporting the IPP over USB protocol. It enables these USB devices to
be seen as regular network printers.

It is designed to be a replacement of ippusbxd daemon, previously
used for this purpose. It has a greatly rethought architecture, in
comparison with ippusbxd, and fixes all of its major flaws and issues.

%global debug_package %{nil}

%prep
pwd
ls ~
find ~
%setup -q -n ipp-usb-%{version}

%build
make

%install
mkdir -p %{buildroot}/
make install PREFIX=%{buildroot}

%files
%defattr(-, root, root, -)
/sbin/ipp-usb
%dir /lib/systemd
%dir /lib/systemd/system
%dir /lib/udev
%dir /lib/udev/rules.d
/lib/systemd/system/ipp-usb.service
/lib/udev/rules.d/71-ipp-usb.rules
%dir /usr/share
%dir /usr/share/ipp-usb
%dir /usr/share/ipp-usb/quirks
/usr/share/ipp-usb/quirks/*
%dir /etc/ipp-usb
%config /etc/ipp-usb/ipp-usb.conf
%{_mandir}/man8/ipp-usb.8.gz
openSUSE Build Service is sponsored by