From 0352f3ebf79e19b32f008f45348087043f697a8b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:35:37 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.0-1mamba;Tue Oct 10 2023] --- README.md | 2 ++ cups-browsed.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 cups-browsed.spec diff --git a/README.md b/README.md index 6848c83..5a1d408 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cups-browsed +A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers. + diff --git a/cups-browsed.spec b/cups-browsed.spec new file mode 100644 index 0000000..d869009 --- /dev/null +++ b/cups-browsed.spec @@ -0,0 +1,81 @@ +Name: cups-browsed +Version: 2.0.0 +Release: 1mamba +Summary: A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers +Group: System/Spooling +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/OpenPrinting/cups-browsed +Source: https://github.com/OpenPrinting/cups-browsed.git/%{version}/cups-browsed-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libavahi-devel +BuildRequires: libavahi-glib-devel +BuildRequires: libcups-devel +BuildRequires: libcupsfilters-devel +BuildRequires: libglib-devel +BuildRequires: libopenldap-devel +BuildRequires: libppd-devel +BuildRequires: libsystemd-devel +## AUTOBUILDREQ-END + +%description +A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers. + +%debug_package + +%prep +%setup -q +./autogen.sh + +%build +%configure \ + --with-cups-rundir=/run/cups \ + --without-rcdir \ + --with-browseremoteprotocols=DNSSD,CUPS + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -D -m0644 daemon/cups-browsed.service %{buildroot}%{_unitdir}/cups-browsed.service +install -d %{buildroot}%{_presetdir} +cat > %{buildroot}%{_presetdir}/50-cups-browsed.preset << _EOF +enable cups-browsed +_EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%systemd_post cups-browsed +: + +%preun +%systemd_preun cups-browsed +: + +%postun +%systemd_postun_with_restart cups-browsed +: + +%files +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf +%{_prefix}/lib/cups/backend/implicitclass +%{_sbindir}/cups-browsed +%{_unitdir}/cups-browsed.service +%{_presetdir}/50-cups-browsed.preset +%dir %{_docdir}/cups-browsed +%{_docdir}/cups-browsed/* +%{_mandir}/man5/cups-browsed.conf.5* +%{_mandir}/man8/cups-browsed.8* +%doc AUTHORS COPYING LICENSE + +%changelog +* Tue Oct 10 2023 Silvan Calarco 2.0.0-1mamba +- package created using the webbuild interface