cups-browsed/cups-browsed.spec

86 lines
2.2 KiB
RPMSpec

Name: cups-browsed
Version: 2.1.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: libppd-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
* Fri Oct 18 2024 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
- automatic version update by autodist
* Thu Aug 15 2024 Automatic Build System <autodist@openmamba.org> 2.0.1-1mamba
- automatic version update by autodist
* Tue Oct 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created using the webbuild interface