commit b90ef36eb50a2d6f1689970ed64db38ce32907a9 Author: MSVSphere Packaging Team Date: Tue Nov 26 16:11:19 2024 +0300 import golang-github-openprinting-ipp-usb-0.9.27-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..711f967 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ipp-usb-0.9.27.tar.gz diff --git a/.golang-github-openprinting-ipp-usb.metadata b/.golang-github-openprinting-ipp-usb.metadata new file mode 100644 index 0000000..3cfad5b --- /dev/null +++ b/.golang-github-openprinting-ipp-usb.metadata @@ -0,0 +1 @@ +1cc4522eb2f9c3e33a8ad7702b1d50127376ba44 SOURCES/ipp-usb-0.9.27.tar.gz diff --git a/SPECS/golang-github-openprinting-ipp-usb.spec b/SPECS/golang-github-openprinting-ipp-usb.spec new file mode 100644 index 0000000..19bb240 --- /dev/null +++ b/SPECS/golang-github-openprinting-ipp-usb.spec @@ -0,0 +1,202 @@ +# Generated by go2rpm 1 +%bcond_without check + +# https://github.com/OpenPrinting/ipp-usb +%global goipath github.com/OpenPrinting/ipp-usb +Version: 0.9.27 +%global tag 0.9.27 + +%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: 1%{?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} + +# 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/ +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 +* Thu Jul 25 2024 Zdenek Dohnal - 0.9.27-1 +- RHEL-49445 Rebase ipp-usb to 0.9.27 + +* Mon Jul 22 2024 Zdenek Dohnal - 0.9.26-1 +- RHEL-49445 Rebase ipp-usb to 0.9.26 + +* Mon Jun 24 2024 Troy Dawson - 0.9.24-5 +- Bump release for June 2024 mass rebuild + +* 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) +