package created using the webbuild interface [release 2.0.0-1mamba;Tue Oct 10 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 21:35:37 +01:00
parent 76b313eb05
commit 0352f3ebf7
2 changed files with 83 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# cups-browsed # cups-browsed
A daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers.

81
cups-browsed.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created using the webbuild interface