2020-09-09 14:19:23 +00:00
|
|
|
# Generated by go2rpm 1
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
# https://github.com/OpenPrinting/ipp-usb
|
|
|
|
%global goipath github.com/OpenPrinting/ipp-usb
|
2022-05-31 11:37:42 +00:00
|
|
|
Version: 0.9.22
|
|
|
|
%global tag 0.9.22
|
2020-09-09 14:19:23 +00:00
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
HTTP reverse proxy, backed by IPP-over-USB connection to device. It enables
|
|
|
|
driverless support for USB devices capable of using IPP-over-USB protocol.
|
|
|
|
}
|
|
|
|
|
|
|
|
%global golicenses LICENSE
|
|
|
|
%global godocs README.md
|
|
|
|
|
|
|
|
# we ship devel rpm too, which means it needs to require avahi and libusbx
|
|
|
|
# too to work correctly
|
|
|
|
%global godevelheader %{expand:
|
|
|
|
Requires: pkgconfig(avahi-client) >= 0.7
|
|
|
|
Requires: pkgconfig(libusb-1.0) >= 1.0
|
|
|
|
}
|
|
|
|
|
|
|
|
Name: %{goname}
|
2022-03-18 08:08:00 +00:00
|
|
|
Release: 1%{?dist}
|
2020-09-09 14:19:23 +00:00
|
|
|
Summary: HTTP reverse proxy, backed by IPP-over-USB connection to device
|
|
|
|
|
|
|
|
# Upstream license specification: BSD-2-Clause
|
|
|
|
License: BSD
|
|
|
|
URL: %{gourl}
|
|
|
|
Source0: %{gosource}
|
|
|
|
|
|
|
|
# needed for registering device on localhost
|
|
|
|
BuildRequires: pkgconfig(avahi-client) >= 0.7
|
|
|
|
# implements IPP protocol used in ipp-usb
|
|
|
|
BuildRequires: golang(github.com/OpenPrinting/goipp)
|
|
|
|
# for functions working with USB devices
|
|
|
|
BuildRequires: pkgconfig(libusb-1.0) >= 1.0
|
|
|
|
# for using pkg-config in spec
|
|
|
|
BuildRequires: pkgconf-pkg-config
|
|
|
|
# for macros in rpm scriptlets
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ipp-usb
|
|
|
|
Summary: HTTP reverse proxy capable of IPP-over-USB connection
|
|
|
|
# ipp-usb is a systemd service
|
|
|
|
Requires: systemd
|
|
|
|
# ipp-usb is started when USB device shows up and has a udev rule for it
|
|
|
|
Requires: systemd-udev
|
|
|
|
|
|
|
|
%description -n ipp-usb
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
%gopkg
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%goprep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%gobuild -o %{gobuilddir}/bin/ipp-usb %{goipath}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%gopkginstall
|
|
|
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_sbindir}
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_sbindir}/
|
|
|
|
install -m 0755 -vd %{buildroot}%{_udevrulesdir}
|
|
|
|
install -m 0644 -vp systemd-udev/*.rules %{buildroot}%{_udevrulesdir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{_unitdir}
|
|
|
|
install -m 0644 -vp systemd-udev/*.service %{buildroot}%{_unitdir}
|
|
|
|
install -m 0755 -vd %{buildroot}%{_sysconfdir}/ipp-usb
|
|
|
|
install -m 0644 -vp ipp-usb.conf %{buildroot}%{_sysconfdir}/ipp-usb/
|
2022-03-18 08:08:00 +00:00
|
|
|
install -m 0755 -vd %{buildroot}%{_sysconfdir}/ipp-usb/quirks
|
2020-09-09 14:19:23 +00:00
|
|
|
install -m 0755 -vd %{buildroot}%{_mandir}/man8
|
|
|
|
install -m 0644 -vp ipp-usb.8 %{buildroot}%{_mandir}/man8
|
2021-11-19 10:38:26 +00:00
|
|
|
install -m 0755 -vd %{buildroot}%{_datadir}/ipp-usb
|
|
|
|
install -m 0755 -vd %{buildroot}%{_datadir}/ipp-usb/quirks
|
|
|
|
install -m 0644 -vp ipp-usb-quirks/* %{buildroot}%{_datadir}/ipp-usb/quirks
|
2020-09-09 14:19:23 +00:00
|
|
|
|
|
|
|
%post -n ipp-usb
|
|
|
|
%systemd_post ipp-usb.service
|
|
|
|
|
|
|
|
%preun -n ipp-usb
|
|
|
|
%systemd_preun ipp-usb.service
|
|
|
|
|
|
|
|
%postun -n ipp-usb
|
|
|
|
%systemd_postun_with_restart ipp-usb.service
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%gocheck
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n ipp-usb
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2021-11-19 10:38:26 +00:00
|
|
|
%dir %{_datadir}/ipp-usb
|
|
|
|
%dir %{_datadir}/ipp-usb/quirks
|
|
|
|
%{_datadir}/ipp-usb/quirks/*
|
2020-09-09 14:19:23 +00:00
|
|
|
%{_mandir}/man8/ipp-usb.8.*
|
2022-05-31 11:37:42 +00:00
|
|
|
%{_sbindir}/*
|
2020-09-09 14:19:23 +00:00
|
|
|
%dir %{_sysconfdir}/ipp-usb/
|
|
|
|
%config(noreplace) %{_sysconfdir}/ipp-usb/ipp-usb.conf
|
2022-03-18 08:08:00 +00:00
|
|
|
%dir %{_sysconfdir}/ipp-usb/quirks
|
2020-09-09 14:19:23 +00:00
|
|
|
%{_udevrulesdir}/*.rules
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2022-05-31 11:37:42 +00:00
|
|
|
* Tue May 31 2022 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.22-1
|
|
|
|
- 0.99.22
|
|
|
|
|
2022-05-09 18:11:35 +00:00
|
|
|
* Mon May 09 2022 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.21-1
|
|
|
|
- 2082709 - golang-github-openprinting-ipp-usb-0.9.21 is available
|
|
|
|
|
2022-03-18 08:08:00 +00:00
|
|
|
* Fri Mar 18 2022 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.20-1
|
|
|
|
- 2065149 - golang-github-openprinting-ipp-usb-0.9.20 is available
|
|
|
|
|
2022-01-20 09:47:46 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.19-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-19 10:38:26 +00:00
|
|
|
* Fri Nov 19 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.19-3
|
|
|
|
- add quirk files
|
|
|
|
|
2021-07-22 05:16:06 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-26 09:44:21 +00:00
|
|
|
* Wed May 26 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.19-1
|
|
|
|
- 1963156 - golang-github-openprinting-ipp-usb-0.9.19 is available
|
|
|
|
|
2021-05-20 10:26:44 +00:00
|
|
|
* Thu May 20 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.18-1
|
|
|
|
- 1959620 - golang-github-openprinting-ipp-usb-0.9.18 is available
|
|
|
|
|
2021-03-02 15:13:44 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.17-2
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-02-04 06:42:04 +00:00
|
|
|
* Thu Feb 04 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.17-1
|
|
|
|
- 1922515 - golang-github-openprinting-ipp-usb-0.9.17 is available
|
|
|
|
|
2021-01-26 11:20:22 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.16-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-11 08:55:42 +00:00
|
|
|
* Mon Jan 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.16-1
|
|
|
|
- 1910921 - golang-github-openprinting-ipp-usb-0.9.16 is available
|
|
|
|
|
2020-10-06 05:52:28 +00:00
|
|
|
* Tue Oct 06 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.14-1
|
|
|
|
- 0.9.14-1
|
|
|
|
|
2020-09-09 14:19:23 +00:00
|
|
|
* Fri Sep 04 2020 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.13-1
|
|
|
|
- Initial import (#1875726)
|
|
|
|
|