2007-01-15 23:51:59 +01:00
#
2011-02-17 17:29:09 +01:00
# spec file for package avahi
2007-01-15 23:51:59 +01:00
#
2022-01-12 20:39:18 +01:00
# Copyright (c) 2022 SUSE LLC
2007-01-15 23:51:59 +01:00
#
2008-09-05 20:18:45 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2019-08-22 14:14:35 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-15 23:51:59 +01:00
#
2012-02-17 09:45:50 +01:00
2008-03-10 02:27:42 +01:00
# WARNING: After editing this file please call Re, rpmbuild or
# bash avahi_spec-prepare.sh "$PWD" avahi
# to update spec files:
2007-10-11 18:55:38 +02:00
%define _name avahi
2008-03-11 17:01:42 +01:00
# In automatic build systems you want to enable just one of following options.
2008-03-10 02:27:42 +01:00
# For build all at once, set all to 1.
2010-05-14 00:16:02 +02:00
# If you set build_core to 0, you cannot set more than one other option to 1.
2008-03-10 02:27:42 +01:00
%define build_core 1
2022-01-19 18:27:54 +01:00
# NOTE: build_glib2 also controls build of gobject, gtk3 and pygobject code.
2008-07-18 22:22:24 +02:00
%define build_glib2 0
2020-10-26 09:10:07 +01:00
%define build_qt5 0
2018-03-12 11:48:32 +01:00
%define avahi_client_sover 3
%define avahi_common_sover 3
%define avahi_core_sover 7
2020-10-26 09:10:07 +01:00
%define avahi_libevent_sover 1
%define avahi_libhowl_sover 0
2018-03-12 11:48:32 +01:00
%define avahi_ui_sover 0
%define avahi_glib_sover 1
%define avahi_gobject_sover 0
%define avahi_gtk3_sover 0
2020-10-26 09:10:07 +01:00
%define avahi_qt5_sover 1
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2018-03-12 11:48:32 +01:00
%define debug_package_requires libavahi-ui%{avahi_ui_sover} = %{version}-%{release}
2008-08-04 01:11:11 +02:00
%endif
2021-02-10 13:44:14 +01:00
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%define oldpython python
2018-03-09 11:13:28 +01:00
Name : avahi
2020-10-26 09:10:07 +01:00
Version : 0.8
2018-03-09 11:13:28 +01:00
Release : 0
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2018-03-05 14:46:30 +01:00
License : LGPL-2.1-or-later
2011-12-21 05:14:17 +01:00
Group : System/Daemons
2019-04-17 17:31:55 +02:00
URL : http://www.avahi.org/
2018-03-05 14:46:30 +01:00
Source : http://avahi.org/download/%{_name}-%{version} .tar.gz
2021-02-19 22:27:57 +01:00
# From http://packages.debian.org/sid/avahi-daemon http://ftp.debian.org/debian/pool/main/a/avahi/avahi_0.8-3.debian.tar.xz
2013-03-07 15:50:23 +01:00
Source1 : avahi-daemon-check-dns.sh
# Copy of glib-2.0.m4 from glib2-devel to not depend on glib2-devel.
Source4 : avahi-glib-gettext.m4
Source5 : avahi.sysconfig
Source6 : avahi-autoipd.sysconfig
# From http://packages.debian.org/sid/avahi-daemon http://ftp.debian.org/debian/pool/main/a/avahi/avahi_0.6.31-1.debian.tar.gz
Source7 : avahi-daemon.if-up
Source8 : %{_name}_spec-prepare.sh
Source9 : avahi-autoipd.README.SUSE
Source10 : avahi-autoipd.if-up
Source11 : avahi-autoipd.if-down
2022-02-03 22:54:42 +01:00
Source13 : avahi.sysusers
Source14 : avahi-autoipd.sysusers
2020-10-26 09:10:07 +01:00
# File missing from 0.8 tarball
Source12 : https://raw.githubusercontent.com/lathiat/avahi/master/service-type-database/build-db
2009-08-17 14:20:47 +02:00
Source100 : attributes
Source101 : update_spec.pl
2009-12-16 11:22:51 +01:00
Source102 : baselibs.conf
2021-10-19 14:04:01 +02:00
Source103 : avahi-rpmlintrc
2013-01-30 09:31:36 +01:00
# PATCH-FIX-OPENSUSE avahi-gacdir.patch -- Mono libs are in $prefix/lib on suse
2007-07-05 00:41:55 +02:00
Patch0 : avahi-gacdir.patch
2013-03-07 15:50:23 +01:00
# PATCH-FIX-UPSTREAM avahi-desktop.patch bnc254654 Avahi#365 -- sbrabec@suse.cz
2007-07-05 00:41:55 +02:00
Patch1 : avahi-desktop.patch
2013-03-07 15:50:23 +01:00
# PATCH-FEATURE-OPENSUSE avahi-daemon-check-dns-suse.patch bnc431704 sbrabec@suse.cz -- Port Debian avahi-daemon-check-dns.sh to SUSE, see also http://avahi.org/wiki/AvahiAndUnicastDotLocal
Patch4 : avahi-daemon-check-dns-suse.patch
2022-02-17 18:43:31 +01:00
# PATCH-FIX-OPENSUSE avahi-add-resolv-conf-to-inotify.patch bsc#982317 boo#1194561 mgorse@suse.com -- reconfigure when resolv.conf changes.
Patch19 : avahi-add-resolv-conf-to-inotify.patch
2020-10-26 09:10:07 +01:00
# PATCH-FIX-UPSTREAM add-IT_PROG_INTLTOOL.patch alarrosa@suse.com -- add IT_PROG_INTLTOOL so intltool works
Patch20 : add-IT_PROG_INTLTOOL.patch
2021-04-22 10:27:33 +02:00
# PATCH-FIX-UPSTREAM avahi-CVE-2021-3468.patch boo#1184521 mgorse@suse.com -- avoid infinite loop by handling HUP event in client_work.
Patch21 : avahi-CVE-2021-3468.patch
2021-07-05 15:36:28 +02:00
# PATCH-FIX-UPSTREAM avahi-CVE-2021-3502.patch boo#1184846 mgorse@suse.com -- fix NULL pointer crashes.
Patch22 : avahi-CVE-2021-3502.patch
2022-01-19 18:27:54 +01:00
# PATCH-FIX-UPSTREAM 0001-man-fix-reference-to-avahi-autoipd.action-8-in-avahi.patch mgorse@suse.com -- fix a manpage reference.
Patch23 : 0001-man-fix-reference-to-avahi-autoipd.action-8-in-avahi.patch
# PATCH-FIX-UPSTREAM 0005-avahi-dnsconfd.service-Drop-Also-avahi-daemon.socket.patch mgorse@suse.com -- disabling avahi-dnsconfd should not also disable avahi-daemon.socket.
Patch24 : 0005-avahi-dnsconfd.service-Drop-Also-avahi-daemon.socket.patch
# PATCH-FIX-UPSTREAM 0006-man-add-missing-bshell.1-symlink.patch mgorse@suse.com -- add manpage symlink.
Patch25 : 0006-man-add-missing-bshell.1-symlink.patch
# PATCH-FIX-UPSTREAM 0007-Ship-avahi-discover-1-bssh-1-and-bvnc-1-also-for-GTK.patch mgorse@suse.com -- ship some manpages that were missing when gtk 2 is disabled.
Patch26 : 0007-Ship-avahi-discover-1-bssh-1-and-bvnc-1-also-for-GTK.patch
# PATCH-FIX-UPSTREAM 0009-fix-bytestring-decoding-for-proper-display.patch mgorse@suse.com -- fix bytestring decoding for proper display.
Patch27 : 0009-fix-bytestring-decoding-for-proper-display.patch
2011-12-21 05:14:17 +01:00
BuildRequires : fdupes
BuildRequires : gcc-c++
BuildRequires : gdbm-devel
BuildRequires : intltool
BuildRequires : libdaemon-devel
BuildRequires : libexpat-devel
2022-02-03 22:54:42 +01:00
BuildRequires : sysuser-tools
2018-03-09 11:13:28 +01:00
# libtool is needed to build all variants: bootstrap is unconditional in the build section
BuildRequires : libtool
BuildRequires : pkgconfig
2022-01-19 18:27:54 +01:00
BuildRequires : xmltoman
2022-02-18 02:06:16 +01:00
%if !%{build_glib2} && !%{build_qt5}
2018-03-09 11:13:28 +01:00
# Create split spec files only when building per partes:
#%(sh %{_sourcedir}/%{_name}_spec-prepare.sh %{_sourcedir} %{name})
%endif
2017-05-10 17:29:24 +02:00
BuildRequires : strip-nondeterminism
2018-03-09 11:13:28 +01:00
%if %{build_core}
2011-12-21 05:14:17 +01:00
BuildRequires : dbus-1-devel
BuildRequires : doxygen
BuildRequires : graphviz
2020-10-26 09:10:07 +01:00
BuildRequires : libevent-devel >= 2.1.5
2011-12-21 05:14:17 +01:00
BuildRequires : zlib-devel
2012-10-23 22:22:00 +02:00
BuildRequires : pkgconfig(systemd)
2007-07-24 09:31:52 +02:00
Requires : nss-mdns
2021-02-19 22:27:57 +01:00
Requires : sudo
2022-02-03 22:54:42 +01:00
%sysusers_requires
2009-01-14 17:46:55 +01:00
#
2007-10-11 18:55:38 +02:00
# mDNSResponder was used for <= 10.2:
2007-07-24 09:31:52 +02:00
Provides : mDNSResponder = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder < 107.5
2015-10-19 12:12:06 +02:00
# Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released.
2013-03-07 15:50:23 +01:00
# File conflict for service-types.db openSUSE <= 12.3 SLE <= 11SP2
2015-10-19 12:12:06 +02:00
#Conflicts: avahi-utils <= 0.6.31-9.2
2008-03-10 02:27:42 +01:00
%endif
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2011-12-21 05:14:17 +01:00
BuildRequires : gobject-introspection-devel
BuildRequires : gtk3-devel
2020-10-26 09:10:07 +01:00
BuildRequires : libavahi-devel = %{version}
2011-12-21 05:14:17 +01:00
BuildRequires : update-desktop-files
2018-03-05 14:46:30 +01:00
BuildRequires : pkgconfig(pygobject-3.0)
2008-07-18 22:22:24 +02:00
%endif
2020-10-26 09:10:07 +01:00
%if %{build_qt5}
BuildRequires : dbus-1-devel
BuildRequires : libavahi-devel = %{version}
BuildRequires : pkgconfig(Qt5Core)
Requires : libavahi-client%{avahi_client_sover} >= %{version}
2007-07-24 09:31:52 +02:00
%endif
2022-01-19 18:27:54 +01:00
BuildRequires : python-rpm-macros
2021-02-10 13:44:14 +01:00
%if %{build_core}
BuildRequires : %{python_module dbm}
BuildRequires : %{python_module dbus-python}
2021-10-26 12:03:11 +02:00
%if 0%{?suse_version} >= 1550
# TW: generate subpackages for every python3 flavor
2021-02-10 13:44:14 +01:00
%define python_subpackage_only 1
%python_subpackages
%else
# Same defaults for all build targets
%define python_sitelib %python3_sitelib
%define python_files() -n python3-%{**}
%endif
%else
# Even if we don't install the python bindings outside of build_core, we need the default python3 to build the service types database:
%define pythons python3
BuildRequires : python3-dbm
BuildRequires : python3-dbus-python
# avoid error from unused python_subpackages
%define python_files() -n python3-%{**}
%endif
2007-01-15 23:51:59 +01:00
%description
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-03-18 19:06:06 +01:00
DNS specifications for Zeroconf Computing. It uses D-Bus for
2007-01-15 23:51:59 +01:00
communication between user applications and a system daemon. The daemon
is used to coordinate application efforts in caching replies, necessary
to minimize the traffic imposed on networks.
2007-08-09 23:39:07 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%package -n libavahi-client%{avahi_client_sover}
Summary : D-Bus Service for Zeroconf and Bonjour
Group : System/Libraries
%description -n libavahi-client%{avahi_client_sover}
Avahi is an implementation of the DNS Service Discovery and Multicast
DNS specifications for Zeroconf Computing.
%package -n libavahi-common%{avahi_common_sover}
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2007-10-25 02:45:48 +02:00
Group : System/Libraries
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%description -n libavahi-common%{avahi_common_sover}
2007-10-25 02:45:48 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%package -n libavahi-core%{avahi_core_sover}
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2007-10-25 02:45:48 +02:00
Group : System/Libraries
2007-07-16 10:17:26 +02:00
2020-10-26 09:10:07 +01:00
%description -n libavahi-core%{avahi_core_sover}
2007-10-25 02:45:48 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2020-10-26 09:10:07 +01:00
%package -n libavahi-libevent%{avahi_libevent_sover}
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2007-10-25 02:45:48 +02:00
Group : System/Libraries
2007-10-11 18:55:38 +02:00
2020-10-26 09:10:07 +01:00
%description -n libavahi-libevent%{avahi_libevent_sover}
2007-10-25 02:45:48 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%package -n libdns_sd
2019-03-18 19:06:06 +01:00
Summary : mDNSResponder Compatibility Package for the Zeroconf/Bonjour D-Bus service
2008-07-18 22:22:24 +02:00
# mDNSResponder-lib used unversioned soname.
# Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package):
2009-01-14 17:46:55 +01:00
#
2008-07-18 22:22:24 +02:00
# mDNSResponder-lib was used for <= 10.2:
2018-03-12 11:48:32 +01:00
Group : System/Libraries
2008-07-18 22:22:24 +02:00
Provides : mDNSResponder-lib = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder-lib < 107.5
2008-07-18 22:22:24 +02:00
# Old name used for <= 10.3:
Provides : avahi-compat-mDNSResponder = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-compat-mDNSResponder < %{version}
2018-03-09 11:13:28 +01:00
%ifarch ia64 x86_64 ppc64 s390x
Provides : libdns_sd.so()(64bit)
%else
Provides : libdns_sd.so
%endif
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%description -n libdns_sd
2019-08-23 12:23:55 +02:00
Apple mDNSResponder compatibility layer for Avahi.
2008-07-18 22:22:24 +02:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2020-10-26 09:10:07 +01:00
%package -n libhowl%{avahi_libhowl_sover}
2019-03-18 19:06:06 +01:00
Summary : Howl Compatibility Package for the Zeroconf/Bonjour D-Bus service
2007-10-11 18:55:38 +02:00
# Old name used for <= 10.3:
2017-02-18 00:05:07 +01:00
Group : System/Libraries
2008-07-18 22:22:24 +02:00
Provides : avahi-compat-howl = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-compat-howl < %{version}
2007-10-11 18:55:38 +02:00
2020-10-26 09:10:07 +01:00
%description -n libhowl%{avahi_libhowl_sover}
2019-08-23 12:23:55 +02:00
Howl compatibility layer for Avahi.
2007-10-11 18:55:38 +02:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2007-03-15 01:13:12 +01:00
2021-02-10 13:44:14 +01:00
%if 0%{?python_subpackage_only}
%package -n python-avahi
Summary : A set of Avahi utilities written in Python
Group : Development/Languages/Python
Requires : %{name} = %{version}
Requires : python-Twisted
Requires : python-dbm
Requires : python-dbus-python
# Old name used for <= 10.3:
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides : avahi-python = %{version}
Obsoletes : %{oldpython} -avahi < %{version}
Obsoletes : avahi-python < %{version}
%endif
%description -n python-avahi
Avahi is an implementation of the DNS Service Discovery and Multicast
DNS specifications for Zeroconf Computing.
%else
2021-04-22 10:27:33 +02:00
2018-04-25 10:12:30 +02:00
%package -n python3-avahi
2008-07-18 22:22:24 +02:00
Summary : A set of Avahi utilities written in Python
2011-12-21 05:14:17 +01:00
Group : Development/Languages/Python
2012-02-28 00:11:24 +01:00
Requires : %{name} = %{version}
2018-04-25 10:12:30 +02:00
Requires : python3-Twisted
Requires : python3-dbm
2020-04-15 20:17:08 +02:00
Requires : python3-dbus-python
2008-07-18 22:22:24 +02:00
# Old name used for <= 10.3:
Provides : avahi-python = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-python < %{version}
2021-02-10 13:44:14 +01:00
Obsoletes : python-avahi < %{version}
2007-12-19 22:31:05 +01:00
2018-04-25 10:12:30 +02:00
%description -n python3-avahi
2008-07-18 22:22:24 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2021-02-10 13:44:14 +01:00
%endif
2008-07-18 22:22:24 +02:00
2013-03-07 15:50:23 +01:00
%package autoipd
Summary : IPv4LL Service for Zeroconf and Bonjour
# Split provides for upgrade from openSUSE <= 12.3 and SLE <= 11.
2015-10-19 12:12:06 +02:00
# Disable this conflict for now, it breaks staging, and it's pretty much obsolete, but can go back in if needed once a new version of avahi is released.
2013-03-07 15:50:23 +01:00
# File conflict for avahi-autoipd openSUSE <= 12.3 SLE <= 11
2015-10-19 12:12:06 +02:00
#Conflicts: avahi <= 0.6.31-9.2
2013-09-25 20:33:03 +02:00
# coreutils contains /usr/bin/chown
2018-03-12 11:48:32 +01:00
Group : Productivity/Networking/Other
2013-09-25 20:33:03 +02:00
Requires(post) : coreutils
2022-02-03 22:54:42 +01:00
%sysusers_requires
2018-03-09 11:13:28 +01:00
Provides : avahi:%{_sbindir} /avahi-autoipd
2013-03-07 15:50:23 +01:00
%description autoipd
avahi-autoipd is an implementation of Dynamic Configuration of IPv4
Link-Local Addresses.
avahi-autoipd doesn't depend on any other Avahi library, hence it makes
2017-11-23 15:59:13 +01:00
sense to install it even if Avahi itself is not installed.
2013-03-07 15:50:23 +01:00
2008-07-18 22:22:24 +02:00
%package utils
2019-03-18 19:06:06 +01:00
Summary : Command Line Utilities for the Zeroconf/Bonjour D-Bus service
2008-07-18 22:22:24 +02:00
Group : Productivity/Networking/Other
2011-12-21 05:14:17 +01:00
Requires : %{_name} >= %{version}
2008-07-18 22:22:24 +02:00
%description utils
2007-12-19 22:31:05 +01:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-12-19 22:31:05 +01:00
2008-07-18 22:22:24 +02:00
%package -n libavahi-devel
2019-03-18 19:06:06 +01:00
Summary : Header files for the Zeroconf/Bonjour D-Bus service
2017-02-18 00:05:07 +01:00
Group : Development/Libraries/C and C++
2012-02-28 00:11:24 +01:00
Requires : %{_name} = %{version}
Requires : dbus-1-devel
Requires : glibc-devel
2020-10-26 09:10:07 +01:00
Requires : libavahi-client%{avahi_client_sover} = %{version}
Requires : libavahi-common%{avahi_common_sover} = %{version}
Requires : libavahi-core%{avahi_core_sover} = %{version}
2021-06-03 12:40:06 +02:00
Requires : libavahi-libevent%{avahi_libevent_sover} = %{version}
2008-07-18 22:22:24 +02:00
# Last appeared in OpenSUSE 10.3:
Provides : avahi-devel = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-devel < %{version}
2008-07-18 22:22:24 +02:00
%description -n libavahi-devel
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2008-07-18 22:22:24 +02:00
%package compat-mDNSResponder-devel
2019-03-18 19:06:06 +01:00
Summary : mDNSResponder Compatibility Package for the Zeroconf/Bonjour D-Bus service
2008-07-18 22:22:24 +02:00
Group : Development/Libraries/C and C++
2012-02-28 00:11:24 +01:00
Requires : libavahi-devel = %{version}
Requires : libdns_sd = %{version}
2008-07-18 22:22:24 +02:00
Provides : mDNSResponder-devel = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder-devel < 107.5
2007-01-15 23:51:59 +01:00
2008-07-18 22:22:24 +02:00
%description compat-mDNSResponder-devel
2019-08-23 12:23:55 +02:00
Apple mDNSResponder compatibility layer for Avahi.
2007-01-15 23:51:59 +01:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2007-01-15 23:51:59 +01:00
2008-07-18 22:22:24 +02:00
%package compat-howl-devel
2019-03-18 19:06:06 +01:00
Summary : Howl Compatibility Package for the Zeroconf/Bonjour D-Bus service
2008-07-18 22:22:24 +02:00
Group : Development/Libraries/C and C++
2012-02-28 00:11:24 +01:00
Requires : libavahi-devel = %{version}
2020-10-26 09:10:07 +01:00
Requires : libhowl%{avahi_libhowl_sover} = %{version}
2008-07-18 22:22:24 +02:00
%description compat-howl-devel
2019-08-23 12:23:55 +02:00
Howl compatibility layer for Avahi.
2008-07-18 22:22:24 +02:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2008-07-18 22:22:24 +02:00
2018-03-12 11:48:32 +01:00
%package -n libavahi-ui-gtk3-%{avahi_gtk3_sover}
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2011-04-20 13:46:12 +02:00
Group : System/Libraries
2018-03-12 11:48:32 +01:00
%description -n libavahi-ui-gtk3-%{avahi_gtk3_sover}
2011-04-20 13:46:12 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2011-04-20 13:46:12 +02:00
2020-10-26 09:10:07 +01:00
%package -n libavahi-glib%{avahi_glib_sover}
2019-03-18 19:06:06 +01:00
Summary : Glib Bindings for avahi, the D-Bus Service for Zeroconf and Bonjour
2007-10-11 18:55:38 +02:00
# Old name used for <= 10.3:
2017-02-18 00:05:07 +01:00
Group : System/Libraries
2008-07-18 22:22:24 +02:00
Provides : avahi-glib = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-glib < %{version}
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%description -n libavahi-glib%{avahi_glib_sover}
2019-08-23 12:23:55 +02:00
GLib support for Avahi.
2007-01-15 23:51:59 +01:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%package -n libavahi-gobject%{avahi_gobject_sover}
2019-03-18 19:06:06 +01:00
Summary : D-Bus Service for Zeroconf and Bonjour
2013-09-21 20:25:51 +02:00
Group : System/Libraries
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%description -n libavahi-gobject%{avahi_gobject_sover}
2007-10-11 18:55:38 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2011-12-20 09:57:06 +01:00
%package -n typelib-1_0-Avahi-0_6
2019-03-18 19:06:06 +01:00
Summary : Introspection bindings for the Zeroconf/Bonjour D-Bus service
2011-12-20 09:57:06 +01:00
Group : System/Libraries
%description -n typelib-1_0-Avahi-0_6
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2011-12-20 09:57:06 +01:00
2011-12-21 05:14:17 +01:00
This package provides the GObject Introspection bindings for Avahi.
2009-01-14 17:46:55 +01:00
%package -n avahi-utils-gtk
2019-03-18 19:06:06 +01:00
Summary : GTK+ Utilities for the Zeroconf/Bonjour D-Bus service
2007-10-25 02:45:48 +02:00
Group : Productivity/Networking/Other
2011-12-21 05:14:17 +01:00
Requires : %{_name} >= %{version}
2009-01-14 17:46:55 +01:00
# Due to a mistake in the spec file build staging, this package had
2008-12-16 15:41:07 +01:00
# name avahi-glib2-utils-gtk in 11.1 and SLE11 and avahi-utils-gtk in
2009-01-14 17:46:55 +01:00
# all other products.
2008-12-16 15:41:07 +01:00
Provides : avahi-glib2-utils-gtk = %{version}
Obsoletes : avahi-glib2-utils-gtk < %{version}
2007-01-15 23:51:59 +01:00
2009-01-14 17:46:55 +01:00
%description -n avahi-utils-gtk
2007-10-11 18:55:38 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2022-02-18 02:06:16 +01:00
# This is the avahi-discover command, only provided for the primary python3 flavor
2022-02-19 17:54:47 +01:00
2018-04-25 10:12:30 +02:00
%package -n python3-avahi-gtk
2008-07-18 22:22:24 +02:00
Summary : A set of Avahi utilities written in Python Using python-gtk
2011-12-21 05:14:17 +01:00
Group : Development/Languages/Python
2018-04-25 10:12:30 +02:00
Requires : python3-avahi = %{version}
Requires : python3-gobject
2019-03-18 19:06:06 +01:00
Requires(post) : coreutils
2021-04-22 10:27:33 +02:00
Requires(postun) : coreutils
2021-02-10 13:44:14 +01:00
Provides : %{oldpython} -avahi-gtk = %{version}
Obsoletes : %{oldpython} -avahi-gtk < %{version}
2008-07-18 22:22:24 +02:00
# Provide split-provides for update from <= 11.0:
2021-02-10 13:44:14 +01:00
Provides : %{oldpython} -avahi:%{_bindir} /avahi-discover
2007-10-11 18:55:38 +02:00
2018-04-25 10:12:30 +02:00
%description -n python3-avahi-gtk
2007-10-11 18:55:38 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
%package -n libavahi-glib-devel
2019-03-18 19:06:06 +01:00
Summary : Header files for Avahi's Glib bindings
2011-12-21 05:14:17 +01:00
Group : Development/Libraries/C and C++
2011-04-20 13:46:12 +02:00
Requires : libavahi-devel = %{version}
2020-10-26 09:10:07 +01:00
Requires : libavahi-glib%{avahi_glib_sover} = %{version}
2018-03-12 11:48:32 +01:00
Requires : libavahi-ui-gtk3-%{avahi_gtk3_sover} = %{version}
2011-12-20 09:57:06 +01:00
Requires : typelib-1_0-Avahi-0_6 = %{version}
2007-10-11 18:55:38 +02:00
# Last appeared in OpenSUSE 10.3:
2008-07-18 22:22:24 +02:00
Provides : avahi-devel:%{_libdir} /libavahi-glib.so
2007-01-15 23:51:59 +01:00
2007-10-11 18:55:38 +02:00
%description -n libavahi-glib-devel
2019-08-23 12:23:55 +02:00
GLib support for Avahi.
2007-10-25 02:45:48 +02:00
2019-08-23 12:23:55 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
2007-10-11 18:55:38 +02:00
2007-12-19 22:31:05 +01:00
%package -n libavahi-gobject-devel
2019-03-18 19:06:06 +01:00
Summary : Header files for Avahi's GObject bindings
2007-12-19 22:31:05 +01:00
Group : System/Daemons
2012-02-28 00:11:24 +01:00
Requires : glib2-devel
Requires : libavahi-devel = %{version}
Requires : libavahi-glib-devel
2020-10-26 09:10:07 +01:00
Requires : libavahi-gobject%{avahi_gobject_sover} = %{version}
2007-12-19 22:31:05 +01:00
%description -n libavahi-gobject-devel
Avahi is an implementation of the DNS Service Discovery and Multicast
2019-08-23 12:23:55 +02:00
DNS specifications for Zeroconf Computing.
2007-12-19 22:31:05 +01:00
2018-03-09 11:13:28 +01:00
%if %{build_core}
2007-12-19 22:31:05 +01:00
%lang_package
%endif
2020-10-26 09:10:07 +01:00
%if %{build_qt5}
%package -n libavahi-qt5-%{avahi_qt5_sover}
Summary : Qt5 Bindings for avahi, the D-Bus Service for Zeroconf and Bonjour
Group : System/Libraries
%description -n libavahi-qt5-%{avahi_qt5_sover}
Qt5 support for Avahi.
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
%package -n libavahi-qt5-devel
Summary : Header files for Avahi's Qt5 bindings
Group : Development/Libraries/C and C++
Requires : libavahi-devel = %{version}
Requires : libavahi-qt5-%{avahi_qt5_sover} = %{version}
%description -n libavahi-qt5-devel
Development files for the Qt5 support for Avahi.
Avahi is an implementation of the DNS Service Discovery and Multicast DNS
specifications for Zeroconf Computing.
%endif
2007-01-15 23:51:59 +01:00
%prep
2007-10-11 18:55:38 +02:00
%setup -q -n %{_name}-%{version}
2018-03-09 11:13:28 +01:00
cp -a %{SOURCE1} %{SOURCE7} .
cp -a %{SOURCE5} sysconfig.avahi
sed " s : @ d o c d i r @ : %{_docdir} : g " <%{SOURCE6} >sysconfig.avahi-autoipd
cp -a %{SOURCE9} avahi-autoipd/README.SUSE
sed " s : @ s b i n d i r @ : %{_sbindir} : g " <%{SOURCE10} >avahi-autoipd/avahi-autoipd.if-up
sed " s : @ s b i n d i r @ : %{_sbindir} : g " <%{SOURCE11} >avahi-autoipd/avahi-autoipd.if-down
2020-10-26 09:10:07 +01:00
sed -ie " s / l i b e v e n t - [ 0 - 9 \ . ] * / l i b e v e n t / " avahi-libevent.pc.in
cp -a %{SOURCE12} service-type-database/build-db
2007-07-05 00:41:55 +02:00
%patch0
%patch1 -p1
2013-03-07 15:50:23 +01:00
%patch4
2016-06-23 20:46:52 +02:00
%patch19 -p1
2018-04-25 10:12:30 +02:00
%patch20 -p1
2021-04-22 10:27:33 +02:00
%patch21 -p1
2021-07-05 15:36:28 +02:00
%patch22 -p1
2022-01-19 18:27:54 +01:00
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
2013-01-30 09:31:36 +01:00
2018-03-09 11:13:28 +01:00
%if !%{build_core}
2008-07-18 22:22:24 +02:00
# Replace all .la references from local .la files to installed versions
# with exception of libavahi-glib.la.
2008-03-10 02:27:42 +01:00
# It allows to build only the binding subpackage.
2008-07-18 22:22:24 +02:00
sed -i 's:libavahi-glib\.la:@@SKIP LIBAVAHI GLIB@@:g
s:\(\.\.\|\$(top_builddir)\)/[^/]*/\(lib[^ ]*\.la\):%{_libdir} /\2:g
s:@@SKIP LIBAVAHI GLIB@@:libavahi-glib.la:g
' */Makefile.am
%endif
if ! test -f %{_datadir} /aclocal/glib-gettext.m4 ; then
2018-03-09 11:13:28 +01:00
cat %{SOURCE4} >>acinclude.m4
2008-07-18 22:22:24 +02:00
fi
2007-01-15 23:51:59 +01:00
%build
2022-02-03 22:54:42 +01:00
%sysusers_generate_pre %{SOURCE13} avahi avahi.conf
%sysusers_generate_pre %{SOURCE14} autoipd avahi-autoipd.conf
2007-12-19 22:31:05 +01:00
autoreconf -f -i
2008-07-18 22:22:24 +02:00
intltoolize -f
2021-02-10 13:44:14 +01:00
%{python_expand # configure for every python flavor
export PYTHON=%{_bindir} /$python
2007-01-24 18:48:36 +01:00
%configure \
2007-02-15 18:09:17 +01:00
--disable-static\
2007-01-15 23:51:59 +01:00
--with-distro=suse\
2022-01-19 18:27:54 +01:00
--enable-xmltoman\
2018-03-09 11:13:28 +01:00
%if %{build_core}
2008-03-10 02:27:42 +01:00
--enable-compat-libdns_sd\
--enable-compat-howl\
2020-10-26 09:10:07 +01:00
--enable-libevent\
2008-03-10 02:27:42 +01:00
%else
2007-07-16 10:17:26 +02:00
--disable-compat-libdns_sd\
--disable-compat-howl\
2020-10-26 09:10:07 +01:00
--disable-libevent\
2008-03-10 02:27:42 +01:00
%endif
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2008-07-18 22:22:24 +02:00
--enable-glib\
--enable-gobject\
2019-08-22 14:14:35 +02:00
--disable-gtk\
2011-04-20 13:46:12 +02:00
--enable-gtk3\
2018-03-05 14:46:30 +01:00
--enable-pygobject\
2008-07-18 22:22:24 +02:00
%else
--disable-glib\
--disable-gobject\
2018-03-05 14:46:30 +01:00
--disable-pygobject\
2008-07-18 22:22:24 +02:00
--disable-gtk\
2010-09-11 11:40:14 +02:00
--disable-gtk3\
2008-07-18 22:22:24 +02:00
%endif
--disable-qt3\
--disable-qt4\
--disable-mono\
2020-10-26 09:10:07 +01:00
%if %{build_qt5}
--enable-qt5\
%else
--disable-qt5\
2021-12-10 19:50:48 +01:00
%endif
%ifarch ppc64 ppc64le s390x
--disable-monodoc\
2007-07-16 10:17:26 +02:00
%endif
2007-03-02 09:07:04 +01:00
--with-avahi-priv-access-group=avahi\
2013-03-07 15:50:23 +01:00
--with-autoipd-user=avahi-autoipd\
--with-autoipd-group=avahi-autoipd
2021-02-10 13:44:14 +01:00
cp -r avahi-python avahi-python-%{$python_bin_suffix}
}
2018-03-09 11:13:28 +01:00
%if %{build_glib2} && !%{build_core}
2008-07-18 22:22:24 +02:00
for DIR in avahi-glib avahi-gobject avahi-ui avahi-discover-standalone avahi-python man ; do
cd $DIR
2020-01-08 19:58:21 +01:00
%make_build
2008-07-18 22:22:24 +02:00
cd ..
done
%endif
2021-02-10 13:44:14 +01:00
%if %{build_core}
%{python_expand # build for every python flavor
cd avahi-python-%{$python_bin_suffix}
%make_build
cd ..
}
%endif
2020-01-08 19:58:21 +01:00
%make_build
2007-01-15 23:51:59 +01:00
%install
2018-03-09 11:13:28 +01:00
%if %{build_glib2} && !%{build_core}
2008-07-18 22:22:24 +02:00
for DIR in avahi-glib avahi-gobject avahi-ui avahi-discover-standalone avahi-python man ; do
cd $DIR
2018-03-09 11:13:28 +01:00
%make_install
2008-07-18 22:22:24 +02:00
cd ..
done
cd -
%endif
2020-10-26 09:10:07 +01:00
%if %{build_qt5} && !%{build_core}
cd avahi-qt
%endif
2018-03-09 11:13:28 +01:00
%make_install
2016-01-27 23:51:28 +01:00
# do not install sysv init scripts
rm -rf %{buildroot} %{_sysconfdir} /init.d/
2022-01-12 20:39:18 +01:00
# Do not install ssh and sftp services
rm -rf %{buildroot} %{_sysconfdir} /avahi/services/ssh.service
rm -rf %{buildroot} %{_sysconfdir} /avahi/services/sftp-ssh.service
2018-03-09 11:13:28 +01:00
%if !%{build_core}
2008-03-10 02:27:42 +01:00
cd ..
2020-01-08 19:58:21 +01:00
%make_build install-pkgconfigDATA DESTDIR=%{buildroot}
2008-03-10 02:27:42 +01:00
%endif
2018-03-09 11:13:28 +01:00
%if %{build_core}
2021-02-10 13:44:14 +01:00
%{python_expand # install for every python flavor
cd avahi-python-%{$python_bin_suffix}
%make_install
cd ..
}
%python_clone -a %{buildroot} %{_bindir} /avahi-bookmarks
%python_clone -a %{buildroot} %{_mandir} /man1/avahi-bookmarks.1
2009-01-16 12:08:15 +01:00
# do not remove this unless you plan to fix _all_ the references to
# it. all (multiple) previous attempts have failed already
2017-06-01 11:06:25 +02:00
#rm "%{buildroot}/%{_libdir}/libavahi-common.la"
install -d %{buildroot} /%{_localstatedir} /run/avahi-daemon
ln -s avahi-compat-libdns_sd/dns_sd.h %{buildroot} /%{_includedir} /
ln -s avahi-compat-howl.pc %{buildroot} /%{_libdir} /pkgconfig/howl.pc
install -d %{buildroot} /%{_prefix} /lib/avahi
install avahi-daemon-check-dns.sh %{buildroot} /%{_prefix} /lib/avahi/
2018-03-09 11:13:28 +01:00
install -d %{buildroot} %{_sysconfdir} /sysconfig/network/if-{up,down}.d
2013-03-07 15:50:23 +01:00
# Note: We do not install the script to if-down.d. Only very obscure use
# cases may fail. (And Debian does the same.)
# (You would have an AUTOIP-only fallback network, then connect network
# to network with .local in DNS without disconnecting from the fallback,
# then disconnect from network with .local in DNS.)
2018-03-09 11:13:28 +01:00
install avahi-daemon.if-up %{buildroot} %{_sysconfdir} /sysconfig/network/if-up.d/avahi-daemon
install avahi-autoipd/avahi-autoipd.if-up %{buildroot} %{_sysconfdir} /sysconfig/network/if-up.d/avahi-autoipd
install avahi-autoipd/avahi-autoipd.if-down %{buildroot} %{_sysconfdir} /sysconfig/network/if-down.d/avahi-autoipd
2017-06-01 11:06:25 +02:00
install -d %{buildroot} /%{_localstatedir} /lib/avahi-autoipd
2019-07-09 23:31:22 +02:00
mkdir -p %{buildroot} /%{_sbindir}
2017-06-01 11:06:25 +02:00
ln -s %{_sbindir} /service %{buildroot} /%{_sbindir} /rcavahi-daemon
ln -s %{_sbindir} /service %{buildroot} /%{_sbindir} /rcavahi-dnsconfd
install -d %{buildroot} /%{_datadir} /pixmaps
2017-11-23 15:59:13 +01:00
install -d %{buildroot} %{_fillupdir}
install -m 644 sysconfig.avahi* %{buildroot} %{_fillupdir} /
2022-02-03 22:54:42 +01:00
install -Dm0644 %{SOURCE13} %{buildroot} %{_sysusersdir} /avahi.conf
install -Dm0644 %{SOURCE14} %{buildroot} %{_sysusersdir} /avahi-autoipd.conf
2018-03-09 11:13:28 +01:00
%if ! %{build_glib2}
2018-04-25 10:12:30 +02:00
# Note: This file is intentionally installed here. It is needed for avahi-utils-gtk and python3-avahi-gtk:
2017-06-01 11:06:25 +02:00
install -d %{buildroot} /%{_datadir} /avahi/interfaces
install -m 644 avahi-discover-standalone/avahi-discover.ui %{buildroot} /%{_datadir} /avahi/interfaces
2008-12-16 15:41:07 +01:00
%endif
2011-02-13 22:03:36 +01:00
%find_lang %{name} %{?no_lang_C}
2008-03-10 02:27:42 +01:00
%else
2008-07-18 22:22:24 +02:00
# There is no simple way to not install core files. Remove them here.
2008-03-10 02:27:42 +01:00
# The rest is enabled/disabled in configure as needed.
2017-06-01 11:06:25 +02:00
rm %{buildroot} /%{_libdir} /pkgconfig/avahi-client.pc
rm %{buildroot} /%{_libdir} /pkgconfig/avahi-core.pc
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2017-06-01 11:06:25 +02:00
rm %{buildroot} /%{_bindir} /avahi-bookmarks
2018-04-25 10:12:30 +02:00
rm -r %{buildroot} /%{python3_sitelib} /avahi
2017-06-01 11:06:25 +02:00
rm %{buildroot} /%{_mandir} /man1/avahi-bookmarks.1*
rm %{buildroot} /%{_mandir} /man1/avahi-browse-domains.1*
rm %{buildroot} /%{_mandir} /man1/avahi-browse.1*
rm %{buildroot} /%{_mandir} /man1/avahi-publish-address.1*
rm %{buildroot} /%{_mandir} /man1/avahi-publish-service.1*
rm %{buildroot} /%{_mandir} /man1/avahi-publish.1*
rm %{buildroot} /%{_mandir} /man1/avahi-resolve-address.1*
rm %{buildroot} /%{_mandir} /man1/avahi-resolve-host-name.1*
rm %{buildroot} /%{_mandir} /man1/avahi-resolve.1*
rm %{buildroot} /%{_mandir} /man1/avahi-set-host-name.1*
rm %{buildroot} /%{_mandir} /man5/avahi-daemon.conf.5*
rm %{buildroot} /%{_mandir} /man5/avahi.hosts.5*
rm %{buildroot} /%{_mandir} /man5/avahi.service.5*
rm %{buildroot} /%{_mandir} /man8/avahi-autoipd.8*
rm %{buildroot} /%{_mandir} /man8/avahi-autoipd.action.8*
rm %{buildroot} /%{_mandir} /man8/avahi-daemon.8*
rm %{buildroot} /%{_mandir} /man8/avahi-dnsconfd.8*
rm %{buildroot} /%{_mandir} /man8/avahi-dnsconfd.action.8*
2018-04-25 10:12:30 +02:00
# Note: This file was intentionally moved to avahi. It is needed for avahi-utils-gtk and python3-avahi-gtk:
2017-06-01 11:06:25 +02:00
rm %{buildroot} /%{_datadir} /avahi/interfaces/avahi-discover.ui
rmdir %{buildroot} /%{_datadir} /avahi/interfaces
rmdir %{buildroot} /%{_datadir} /avahi
2008-07-18 22:22:24 +02:00
%endif
%endif
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2013-03-07 15:50:23 +01:00
%suse_update_desktop_file avahi-discover
2009-02-06 21:58:55 +01:00
%suse_update_desktop_file bvnc
%suse_update_desktop_file bssh
2008-07-18 22:22:24 +02:00
%endif
2017-06-01 11:06:25 +02:00
%fdupes %{buildroot} /%{_libdir}
2007-01-15 23:51:59 +01:00
2022-02-03 22:54:42 +01:00
%pre -f avahi.pre
2011-10-12 09:02:43 +02:00
%service_add_pre avahi-dnsconfd.service avahi-daemon.service
2014-03-19 13:45:22 +01:00
# bnc#853845,bnc#851953: do not start by default under
# sysconfig as this breaks vlan,bridge,bonding setups
# in pre to revert old default setting from template.
2017-11-23 15:59:13 +01:00
if test -f %{_fillupdir} /sysconfig.avahi-autoipd -a \
2014-03-19 13:45:22 +01:00
-f etc/sysconfig/avahi ; then
2017-11-23 15:59:13 +01:00
. %{_fillupdir} /sysconfig.avahi-autoipd
2014-03-19 13:45:22 +01:00
if test " X $ A V A H I _ A U T O I P D _ E N A B L E " = " X y e s " ; then
sed -i etc/sysconfig/avahi \
-e 's/^\(AVAHI_AUTOIPD_ENABLE\)=.*/\1="no"/'
fi
fi
2007-01-15 23:51:59 +01:00
2007-09-10 12:01:29 +02:00
%post
2013-03-07 15:50:23 +01:00
%{fillup_only -n avahi}
%{fillup_only -ns security checksig}
2011-10-12 09:02:43 +02:00
%service_add_post avahi-dnsconfd.service avahi-daemon.service
2007-09-10 12:01:29 +02:00
2007-01-15 23:51:59 +01:00
%preun
2011-10-12 09:02:43 +02:00
%service_del_preun avahi-dnsconfd.service avahi-daemon.service
2007-01-15 23:51:59 +01:00
%postun
2011-10-12 09:02:43 +02:00
%service_del_postun avahi-dnsconfd.service avahi-daemon.service
2013-03-07 15:50:23 +01:00
2022-02-03 22:54:42 +01:00
%pre autoipd -f autoipd.pre
2013-03-07 15:50:23 +01:00
%post autoipd
%{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11.
2020-08-07 10:16:23 +02:00
find %{_localstatedir} /lib/avahi-autoipd -user avahi -exec chown avahi-autoipd:avahi-autoipd {} +
2007-09-10 12:01:29 +02:00
2020-10-26 09:10:07 +01:00
%post -n libavahi-client%{avahi_client_sover} -p /sbin/ldconfig
%postun -n libavahi-client%{avahi_client_sover} -p /sbin/ldconfig
%post -n libavahi-common%{avahi_common_sover} -p /sbin/ldconfig
%postun -n libavahi-common%{avahi_common_sover} -p /sbin/ldconfig
%post -n libavahi-core%{avahi_core_sover} -p /sbin/ldconfig
%postun -n libavahi-core%{avahi_core_sover} -p /sbin/ldconfig
%post -n libavahi-libevent%{avahi_libevent_sover} -p /sbin/ldconfig
%postun -n libavahi-libevent%{avahi_libevent_sover} -p /sbin/ldconfig
2008-07-18 22:22:24 +02:00
%post -n libdns_sd -p /sbin/ldconfig
%postun -n libdns_sd -p /sbin/ldconfig
2020-10-26 09:10:07 +01:00
%post -n libhowl%{avahi_libhowl_sover} -p /sbin/ldconfig
%postun -n libhowl%{avahi_libhowl_sover} -p /sbin/ldconfig
2018-03-12 11:48:32 +01:00
%post -n libavahi-ui-gtk3-%{avahi_gtk3_sover} -p /sbin/ldconfig
%postun -n libavahi-ui-gtk3-%{avahi_gtk3_sover} -p /sbin/ldconfig
2020-10-26 09:10:07 +01:00
%post -n libavahi-gobject%{avahi_gobject_sover} -p /sbin/ldconfig
%postun -n libavahi-gobject%{avahi_gobject_sover} -p /sbin/ldconfig
%post -n libavahi-glib%{avahi_glib_sover} -p /sbin/ldconfig
%postun -n libavahi-glib%{avahi_glib_sover} -p /sbin/ldconfig
%if %{build_qt5}
%post -n libavahi-qt5-%{avahi_qt5_sover} -p /sbin/ldconfig
%postun -n libavahi-qt5-%{avahi_qt5_sover} -p /sbin/ldconfig
%endif
2019-03-18 19:06:06 +01:00
2018-04-25 10:12:30 +02:00
%post -n python3-avahi-gtk
2011-02-13 22:03:36 +01:00
%desktop_database_post
2018-04-25 10:12:30 +02:00
%postun -n python3-avahi-gtk
2011-02-13 22:03:36 +01:00
%desktop_database_post
%post -n avahi-utils-gtk
%desktop_database_post
%postun -n avahi-utils-gtk
%desktop_database_post
2007-07-16 10:17:26 +02:00
2018-03-09 11:13:28 +01:00
%if %{build_core}
2021-02-10 13:44:14 +01:00
%if 0%{?python_subpackage_only}
# this is rewritten by python_subpackages into the appropriate flavor
%post -n python-avahi
%python_install_alternative avahi-bookmarks avahi-bookmarks.1
%postun -n python-avahi
%python_uninstall_alternative avahi-bookmarks
%else
2021-04-22 10:27:33 +02:00
2021-02-10 13:44:14 +01:00
%post -n python3-avahi
%python_install_alternative avahi-bookmarks avahi-bookmarks.1
%postun -n python3-avahi
%python_uninstall_alternative avahi-bookmarks
%endif
2007-01-15 23:51:59 +01:00
%files
2018-03-05 14:46:30 +01:00
%license LICENSE
2022-01-12 20:39:18 +01:00
%doc docs/* avahi-daemon/sftp-ssh.service avahi-daemon/ssh.service
2013-03-07 15:50:23 +01:00
%dir %{_libdir} /avahi/
2018-04-25 10:12:30 +02:00
# Note: This file is intentionally packaged here. It is needed for python3-avahi and avahi-utils:
2013-03-07 15:50:23 +01:00
%{_libdir} /avahi/service-types.db
2010-05-14 00:16:02 +02:00
# avahi creates the directory itself, we do not package it
# since it might be on tmpfs
2014-04-15 21:37:37 +02:00
%attr (-,avahi,avahi) %ghost /run/avahi-daemon
2018-03-09 11:13:28 +01:00
%{_mandir} /man5/*.5%{ext_man}
%{_mandir} /man8/*.8%{ext_man}
%exclude %{_mandir} /man8/avahi-autoipd.8.*
2007-03-15 01:13:12 +01:00
%{_sbindir} /avahi-*
2013-03-07 15:50:23 +01:00
%exclude %{_sbindir} /avahi-autoipd
2007-03-15 01:13:12 +01:00
%{_sbindir} /rcavahi-daemon
%{_sbindir} /rcavahi-dnsconfd
2007-01-15 23:51:59 +01:00
%dir %{_sysconfdir} /avahi
%config %{_sysconfdir} /avahi/avahi-daemon.conf
%{_sysconfdir} /avahi/avahi-dnsconfd.action
2007-01-24 18:48:36 +01:00
%dir %{_sysconfdir} /avahi/services
2012-10-04 11:14:37 +02:00
%config (noreplace) %{_sysconfdir} /avahi/hosts
2007-01-15 23:51:59 +01:00
%{_sysconfdir} /dbus-1/system.d/*.conf
2012-02-17 09:45:50 +01:00
%{_datadir} /dbus-1/interfaces/org.freedesktop.Avahi.*.xml
2010-09-11 11:40:14 +02:00
%{_datadir} /dbus-1/system-services/org.freedesktop.Avahi.service
2013-03-07 15:50:23 +01:00
%dir %{_prefix} /lib/avahi
%{_prefix} /lib/avahi/avahi-daemon-check-dns.sh
2012-02-28 00:11:24 +01:00
%{_unitdir} /avahi-daemon.service
%{_unitdir} /avahi-daemon.socket
%{_unitdir} /avahi-dnsconfd.service
2022-02-03 22:54:42 +01:00
%{_sysusersdir} /avahi.conf
2018-04-25 10:12:30 +02:00
# Common file for avahi-utils-gtk and python3-avahi-gtk:
2008-12-16 15:41:07 +01:00
%dir %{_datadir} /avahi/
%{_datadir} /avahi/interfaces
2018-03-09 11:13:28 +01:00
%{_sysconfdir} /sysconfig/network/*/avahi-daemon
2017-11-23 15:59:13 +01:00
%{_fillupdir} /sysconfig.avahi
2007-12-19 22:31:05 +01:00
%files lang -f %{name}.lang
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%files -n libavahi-client%{avahi_client_sover}
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-client*.so.*
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%files -n libavahi-common%{avahi_common_sover}
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-common*.so.*
2007-03-15 01:13:12 +01:00
2020-10-26 09:10:07 +01:00
%files -n libavahi-core%{avahi_core_sover}
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-core*.so.*
2007-10-11 18:55:38 +02:00
2020-10-26 09:10:07 +01:00
%files -n libavahi-libevent%{avahi_libevent_sover}
%{_libdir} /libavahi-libevent*.so.*
2007-10-11 18:55:38 +02:00
%files -n libdns_sd
# libdns_sd.so must be in non-devel package to provide mDNSResponder-lib compatibility:
2007-01-24 18:48:36 +01:00
%{_libdir} /libdns_sd.so
%{_libdir} /libdns_sd.so.*
2007-01-15 23:51:59 +01:00
2020-10-26 09:10:07 +01:00
%files -n libhowl%{avahi_libhowl_sover}
2007-10-11 18:55:38 +02:00
%{_libdir} /libhowl.so.*
2007-01-15 23:51:59 +01:00
2021-02-10 13:44:14 +01:00
%files %{python_files avahi}
%python_alternative %{_bindir} /avahi-bookmarks
%python_alternative %{_mandir} /man1/avahi-bookmarks.1%{ext_man}
%{python_sitelib} /avahi
2008-07-18 22:22:24 +02:00
2013-03-07 15:50:23 +01:00
%files autoipd
%doc avahi-autoipd/README.SUSE
2018-03-09 11:13:28 +01:00
%{_mandir} /man8/avahi-autoipd.8%{ext_man}
2013-03-07 15:50:23 +01:00
%attr (-,avahi-autoipd,avahi-autoipd)%{_localstatedir} /lib/avahi-autoipd
%{_sbindir} /avahi-autoipd
%{_sysconfdir} /avahi/avahi-autoipd.action
2018-03-09 11:13:28 +01:00
%{_sysconfdir} /sysconfig/network/*/avahi-autoipd
2017-11-23 15:59:13 +01:00
%{_fillupdir} /sysconfig.avahi-autoipd
2022-02-03 22:54:42 +01:00
%{_sysusersdir} /avahi-autoipd.conf
2013-03-07 15:50:23 +01:00
2007-10-11 18:55:38 +02:00
%files utils
%{_bindir} /avahi-browse*
%{_bindir} /avahi-publish*
%{_bindir} /avahi-resolve*
%{_bindir} /avahi-set-host-name
2007-12-19 22:31:05 +01:00
%dir %{_datadir} /avahi/
%{_datadir} /avahi/avahi-service.dtd
2018-03-09 11:13:28 +01:00
%{_mandir} /man1/avahi-browse*.1*
%{_mandir} /man1/avahi-publish*.1*
%{_mandir} /man1/avahi-resolve*.1*
%{_mandir} /man1/avahi-set-host-name.1*
2007-01-15 23:51:59 +01:00
2007-10-11 18:55:38 +02:00
%files -n libavahi-devel
2007-01-24 18:48:36 +01:00
# FIXME: Maybe split to particular subpackages.
2007-01-15 23:51:59 +01:00
#%doc doc/api/html
#%doc doc/*.html doc/*.txt doc/file-boilerplate.c doc/TODO
%{_includedir} /avahi-client
%{_includedir} /avahi-common
%{_includedir} /avahi-core
2020-10-26 09:10:07 +01:00
%{_includedir} /avahi-libevent
2007-01-15 23:51:59 +01:00
# avahi devel files
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-client.*a
%{_libdir} /libavahi-client*.so
%{_libdir} /libavahi-core.*a
%{_libdir} /libavahi-core*.so
%{_libdir} /libavahi-common*.so
2009-01-16 12:08:15 +01:00
# do not remove unless you fix the resulting problems
# reference is in libavahi-client.la
%{_libdir} /libavahi-common*.*a
2020-10-26 09:10:07 +01:00
%{_libdir} /libavahi-libevent.*a
%{_libdir} /libavahi-libevent*.so
2007-10-11 18:55:38 +02:00
%{_libdir} /pkgconfig/avahi-client.pc
%{_libdir} /pkgconfig/avahi-core.pc
2020-10-26 09:10:07 +01:00
%{_libdir} /pkgconfig/avahi-libevent.pc
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%files compat-mDNSResponder-devel
%{_includedir} /avahi-compat-libdns_sd
%{_includedir} /dns_sd.h
%{_libdir} /libdns_sd.*a
%{_libdir} /pkgconfig/avahi-compat-libdns_sd.pc
%files compat-howl-devel
%{_includedir} /avahi-compat-howl
%{_libdir} /libhowl.so
%{_libdir} /libhowl.*a
%{_libdir} /pkgconfig/avahi-compat-howl.pc
%{_libdir} /pkgconfig/howl.pc
%endif
2018-03-09 11:13:28 +01:00
%if %{build_glib2}
2018-03-12 11:48:32 +01:00
%files -n libavahi-ui-gtk3-%{avahi_gtk3_sover}
%{_libdir} /libavahi-ui-gtk3.so.%{avahi_gtk3_sover} *
2008-07-18 22:22:24 +02:00
2020-10-26 09:10:07 +01:00
%files -n libavahi-glib%{avahi_glib_sover}
2008-07-18 22:22:24 +02:00
%{_libdir} /libavahi-glib*.so.*
2020-10-26 09:10:07 +01:00
%files -n libavahi-gobject%{avahi_gobject_sover}
2008-07-18 22:22:24 +02:00
%{_libdir} /libavahi-gobject*.so.*
2011-12-20 09:57:06 +01:00
%files -n typelib-1_0-Avahi-0_6
2010-09-11 11:40:14 +02:00
%{_libdir} /girepository-1.0/Avahi-0.6.typelib
%{_libdir} /girepository-1.0/AvahiCore-0.6.typelib
2008-07-18 22:22:24 +02:00
2018-04-25 10:12:30 +02:00
%files -n python3-avahi-gtk
2008-07-18 22:22:24 +02:00
%{_bindir} /avahi-discover
%{_datadir} /applications/avahi-discover.desktop
2022-01-19 18:27:54 +01:00
%{_mandir} /man1/avahi-discover.1*
2008-07-18 22:22:24 +02:00
2009-01-14 17:46:55 +01:00
%files -n avahi-utils-gtk
2008-07-18 22:22:24 +02:00
%{_bindir} /bshell
%{_bindir} /bssh
%{_bindir} /bvnc
%{_bindir} /avahi-discover-standalone
%{_datadir} /applications/bssh.desktop
%{_datadir} /applications/bvnc.desktop
2022-01-19 18:27:54 +01:00
%{_mandir} /man1/bshell.1*
%{_mandir} /man1/bssh.1*
%{_mandir} /man1/bvnc.1*
2008-07-18 22:22:24 +02:00
2007-10-11 18:55:38 +02:00
%files -n libavahi-glib-devel
%{_includedir} /avahi-glib
%{_includedir} /avahi-ui
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-glib*.*a
%{_libdir} /libavahi-glib*.so
%{_libdir} /libavahi-ui*.*a
%{_libdir} /libavahi-ui*.*so
2007-01-15 23:51:59 +01:00
%{_libdir} /pkgconfig/avahi-glib.pc
2011-04-20 13:46:12 +02:00
%{_libdir} /pkgconfig/avahi-ui-gtk3.pc
2007-10-11 18:55:38 +02:00
2007-12-19 22:31:05 +01:00
%files -n libavahi-gobject-devel
%{_includedir} /avahi-gobject
%{_libdir} /libavahi-gobject*.*a
%{_libdir} /libavahi-gobject*.so
%{_libdir} /pkgconfig/avahi-gobject.pc
2010-09-11 11:40:14 +02:00
%{_datadir} /gir-1.0/*.gir
2008-03-10 02:27:42 +01:00
%endif
2020-10-26 09:10:07 +01:00
%if %{build_qt5}
%files -n libavahi-qt5-%{avahi_qt5_sover}
%{_libdir} /libavahi-qt5.so.*
%files -n libavahi-qt5-devel
%{_includedir} /avahi-qt5
%{_libdir} /libavahi-qt5.*a
%{_libdir} /libavahi-qt5.so
%{_libdir} /pkgconfig/avahi-qt5.pc
%endif
2007-02-22 14:11:21 +01:00
%changelog