# Generated by go2rpm 1 %bcond_without check # https://github.com/OpenPrinting/ipp-usb %global goipath github.com/OpenPrinting/ipp-usb Version: 0.9.24 %global tag 0.9.24 %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} Release: 4%{?dist} Summary: HTTP reverse proxy, backed by IPP-over-USB connection to device # Upstream license specification: BSD-2-Clause License: BSD-2-Clause URL: %{gourl} Source0: %{gosource} # reverting the change which introduced support for Pantum printers, which # broke conformation to IPP standards and has security implications # https://lore.kernel.org/printing-architecture/b2c6c270-4933-4bde-a299-52802e6e8d88@shentel.net/T/#u Patch001: pantum-support-revert.patch # 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 %autopatch %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/ install -m 0755 -vd %{buildroot}%{_sysconfdir}/ipp-usb/quirks install -m 0755 -vd %{buildroot}%{_mandir}/man8 install -m 0644 -vp ipp-usb.8 %{buildroot}%{_mandir}/man8 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 %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 %dir %{_datadir}/ipp-usb %dir %{_datadir}/ipp-usb/quirks %{_datadir}/ipp-usb/quirks/* %{_mandir}/man8/ipp-usb.8.* %{_sbindir}/ipp-usb %dir %{_sysconfdir}/ipp-usb/ %config(noreplace) %{_sysconfdir}/ipp-usb/ipp-usb.conf %dir %{_sysconfdir}/ipp-usb/quirks %{_udevrulesdir}/*.rules %{_unitdir}/*.service %gopkgfiles %changelog * Sun Feb 11 2024 Maxwell G - 0.9.24-4 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 0.9.24-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.9.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Zdenek Dohnal - 0.9.24-1 - 2253764 - golang-github-openprinting-ipp-usb-0.9.24 is available * Thu Nov 23 2023 Zdenek Dohnal - 0.9.23-5 - Rebuild for any CVE fixed in Golang * Wed Jul 26 2023 Zdenek Dohnal - 0.9.23-4 - SPDX migration * Thu Jul 20 2023 Fedora Release Engineering - 0.9.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.9.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 21 2022 Zdenek Dohnal - 0.9.23-1 - 2143482 - golang-github-openprinting-ipp-usb-0.9.23 is available * Thu Jul 21 2022 Fedora Release Engineering - 0.9.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.9.22-2 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Tue May 31 2022 Zdenek Dohnal - 0.9.22-1 - 0.99.22 * Mon May 09 2022 Zdenek Dohnal - 0.9.21-1 - 2082709 - golang-github-openprinting-ipp-usb-0.9.21 is available * Fri Mar 18 2022 Zdenek Dohnal - 0.9.20-1 - 2065149 - golang-github-openprinting-ipp-usb-0.9.20 is available * Thu Jan 20 2022 Fedora Release Engineering - 0.9.19-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 19 2021 Zdenek Dohnal - 0.9.19-3 - add quirk files * Thu Jul 22 2021 Fedora Release Engineering - 0.9.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed May 26 2021 Zdenek Dohnal - 0.9.19-1 - 1963156 - golang-github-openprinting-ipp-usb-0.9.19 is available * Thu May 20 2021 Zdenek Dohnal - 0.9.18-1 - 1959620 - golang-github-openprinting-ipp-usb-0.9.18 is available * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.9.17-2 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Thu Feb 04 2021 Zdenek Dohnal - 0.9.17-1 - 1922515 - golang-github-openprinting-ipp-usb-0.9.17 is available * Tue Jan 26 2021 Fedora Release Engineering - 0.9.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 11 2021 Zdenek Dohnal - 0.9.16-1 - 1910921 - golang-github-openprinting-ipp-usb-0.9.16 is available * Tue Oct 06 2020 Zdenek Dohnal - 0.9.14-1 - 0.9.14-1 * Fri Sep 04 2020 Zdenek Dohnal - 0.9.13-1 - Initial import (#1875726)