Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 43ebb731c2898679000018886b56ecd4 > files > 21

avahi-0.8-10.1.mga9.src.rpm

%define gir_major        0.6
%define gir_name         %mklibname %{name}-gir %{gir_major}
%define gir_core_name    %mklibname %{name}core-gir %{gir_major}

%define event_major     1
%define event_name      %{name}-libevent
%define lib_event_name  %mklibname %{event_name} %{event_major}
%define develnameevent  %mklibname -d %event_name

%define client_major     3
%define client_name      %{name}-client
%define lib_client_name  %mklibname %{client_name} %{client_major}
%define develnameclient  %mklibname -d %client_name

%define common_major     3
%define common_name      %{name}-common
%define lib_common_name  %mklibname %{common_name} %{common_major}
%define develnamecommon  %mklibname -d %common_name

# If avahi_core_major changes, make sure to update avahi-gir-fixup.patch
%define core_major       7
%define core_name        %{name}-core
%define lib_core_name    %mklibname %{core_name} %{core_major}
%define develnamecore    %mklibname -d %core_name

%define dns_sd_major     1
%define dns_sd_name      %{name}-compat-libdns_sd
%define lib_dns_sd_name  %mklibname %{dns_sd_name} %{dns_sd_major}
%define develnamedns_sd  %mklibname -d %dns_sd_name

%define glib_major       1
%define glib_name        %{name}-glib
%define lib_glib_name    %mklibname %{glib_name} %{glib_major}
%define develnameglib    %mklibname -d %glib_name

%define gobject_major    0
%define gobject_name    %{name}-gobject
%define lib_gobject_name %mklibname %{gobject_name} %{gobject_major}
%define develnamegobject %mklibname -d %gobject_name

%define howl_major       0
%define howl_name	 %{name}-compat-howl
%define lib_howl_name    %mklibname %{howl_name} %{howl_major}
%define develnamehowl    %mklibname -d %howl_name

%define qt5_major        1
%define qt5_name         %{name}-qt5
%define lib_qt5_name     %mklibname %{qt5_name}_ %{qt5_major}
%define develnameqt5     %mklibname -d %qt5_name

%define gtk3_major       0
%define gtk3_name        %{name}-ui-gtk3
%define lib_gtk3_name    %mklibname %{gtk3_name}_ %{gtk3_major}
%define develnamegtk3    %mklibname -d %gtk3_name

%define ui_major         0
%define ui_name          %{name}-ui
%define lib_ui_name      %mklibname %{ui_name} %{ui_major}
%define develnameui      %mklibname -d %ui_name

%bcond_with bootstrap

%if %{without bootstrap}
%ifarch %arm %mips
%bcond_with mono
%else
%bcond_without mono
%endif
%bcond_without qt5
%bcond_without gtk3
%endif
%bcond_with python2

Name:           avahi
Version:        0.8
%define subrel 1
Release:        %mkrel 10
Summary:        Avahi service discovery (mDNS/DNS-SD) suite
License:        LGPLv2+
Group:          System/Servers
Url:            https://avahi.org/
Source0:        https://github.com/lathiat/avahi/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:        avahi-hostname.sh
Patch0:         avahi-0.6.31-automake-subdir-objects.patch
## upstream patches
Patch6:         0006-avahi-dnsconfd.service-Drop-Also-avahi-daemon.socket.patch
Patch7:         0007-man-add-missing-bshell.1-symlink.patch
Patch8:         0008-Ship-avahi-discover-1-bssh-1-and-bvnc-1-also-for-GTK.patch
Patch9:         0009-fix-requires-in-pc-file.patch
Patch10:        0010-fix-bytestring-decoding-for-proper-display.patch
Patch11:        0011-avahi_dns_packet_consume_uint32-fix-potential-undefi.patch
Patch12:        CVE-2021-3468.patch
Patch13:        CVE-2021-3502.patch
Patch14:        0017-Emit-error-if-requested-service-is-not-found.patch
Patch15:        CVE-2023-38469-1.patch
Patch16:        CVE-2023-38469-2.patch
Patch17:        CVE-2023-38470-1.patch
Patch18:        CVE-2023-38470-2.patch
Patch19:        CVE-2023-38471-1.patch
Patch20:        CVE-2023-38471-2.patch
Patch21:        CVE-2023-38472.patch
Patch22:        CVE-2023-38473.patch
BuildRequires:  xmltoman
BuildRequires:  pkgconfig(libdaemon)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(libevent)
BuildRequires:  pkgconfig(expat) >= 2.0.1
BuildRequires:  libgdbm-devel
BuildRequires:  pkgconfig(libglade-2.0)
%if %{with python2}
BuildRequires:  pygtk2.0
BuildRequires:  python2-dbus
%endif
BuildRequires:  pkgconfig(libcap)
#needed by autoreconf
BuildRequires:  intltool
%if %{with qt5}
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
%endif
%if %{with gtk3}
BuildRequires:  pkgconfig(gtk+-3.0)
%endif
BuildRequires:  systemd-units
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
Requires(post): rpm-helper >= 0.24.8-1
Requires(preun):rpm-helper >= 0.24.8-1
Requires(post): dbus
Requires(preun):dbus
Recommends:     nss_mdns

%if ! %{with python2}
Obsoletes:      avahi-python < %{version}-%{release}
%endif

%description
Avahi is a system which facilitates service discovery on a local
network -- this means that you can plug your laptop or computer into a
network and instantly be able to view other people who you can chat
with, find printers to print to or find files being shared. This kind
of technology is already found in MacOS X (branded 'Rendezvous',
'Bonjour' and sometimes 'ZeroConf') and is very convenient.

%package dnsconfd
Group:          System/Servers
Summary:        Avahi DNS configuration server
Requires:       %{name} = %{version}
Requires(post):  rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
Conflicts:       avahi < 0.6.31-3

%description dnsconfd
avahi-dnsconfd is a small daemon which may be used to configure
conventional DNS servers using mDNS in a DHCP-like fashion.
Especially useful on IPv6.

%package x11
Group:          System/Servers
Summary:        Graphical tools for Avahi
Requires:       %{name} = %{version}

%description x11
Graphical tools for Avahi.
It includes avahi-discover-standalone.

%if %{with python2}
%package python
Group:          System/Libraries
Summary:        Python bindings and utilities for Avahi
BuildRequires:  pkgconfig(pygobject-3.0)
Requires:       pygtk2.0-libglade
Requires:       python2-twisted-core
Requires:       python2-twisted-web
Requires:       python2-dbus
Requires:       avahi
Requires:       %{name}-x11

%description python
Python bindings and utilities for Avahi.
It includes avahi-bookmarks and avahi-discover.
%endif

%if %{with mono}
%package sharp
Group:          System/Libraries
Summary:        Mono bindings for Avahi
BuildRequires:  pkgconfig(mono)
BuildRequires:  pkgconfig(monodoc)
BuildRequires:  mono-tools
#gw this is needed by mono-find-requires:
# BuildRequires:  pkgconfig(avahi-ui)
Requires:       %lib_client_name = %version
Requires:       %lib_common_name = %version
Requires:       %lib_glib_name = %version

%description sharp
Mono bindings for Avahi.

%package sharp-doc
Summary:        Development documentation for avahi-sharp
Group:          Development/Other
Requires(post): mono-tools >= 1.1.9
Requires(postun): mono-tools >= 1.1.9

%description sharp-doc
This package contains the API documentation for the avahi-sharp in
Monodoc format.
%endif

%package -n %{lib_client_name}
Group:           System/Libraries
Summary:         Library for avahi-client
# (eatdirt) see mga#13542
#Requires:       #{name} >= #{version}

%description -n %{lib_client_name}
Library for avahi-client.

%package -n %develnameclient
Group:          Development/C
Summary:        Devel library for avahi-client
Provides:       %{client_name}-devel = %{version}-%{release}
Provides:       lib%{client_name}-devel = %{version}-%{release}
Requires:       %{lib_client_name} = %{version}

%description -n %develnameclient
Devel library for avahi-client.

%package -n %{lib_event_name}
Group:           System/Libraries
Summary:         Library for avahi-event
# (eatdirt) see mga#13542
#Requires:       #{name} >= #{version}

%description -n %{lib_event_name}
Library for avahi-event.

%package -n %develnameevent
Group:          Development/C
Summary:        Devel library for avahi-event
Provides:       %{event_name}-devel = %{version}-%{release}
Provides:       lib%{event_name}-devel = %{version}-%{release}
Requires:       %{lib_event_name} = %{version}

%description -n %develnameevent
Devel library for avahi-event.

%package -n %{lib_common_name}
Group:          System/Libraries
Summary:        Library for avahi-common

%description -n %{lib_common_name}
Library for avahi-common.

%package -n %develnamecommon
Group:          Development/C
Summary:        Devel library for avahi-common
Provides:       %{common_name}-devel = %{version}-%{release}
Provides:       lib%{common_name}-devel = %{version}-%{release}
Requires:       %{lib_common_name} = %{version}

%description -n %develnamecommon
Devel library for avahi-common.

%package -n %{lib_core_name}
Group:          System/Libraries
Summary:        Library for avahi-core

%description -n %{lib_core_name}
Library for avahi-core.

%package -n %develnamecore
Group:          Development/C
Summary:        Devel library for avahi-core
Provides:       %{core_name}-devel = %{version}-%{release}
Provides:       lib%{core_name}-devel = %{version}-%{release}
Requires:       %{lib_core_name} = %{version}
Requires:       %{gir_core_name} = %{version}

%description -n %develnamecore
Devel library for avahi-core.

%package -n %{lib_dns_sd_name}
Group:          System/Libraries
Summary:        Avahi compatibility library for libdns_sd

%description -n %{lib_dns_sd_name}
Avahi compatibility library for libdns_sd

%package -n %develnamedns_sd
Group:          Development/C
Summary:        Avahi devel compatibility library for libdns_sd
Provides:       %{dns_sd_name}-devel = %{version}-%{release}
Provides:       lib%{dns_sd_name}-devel = %{version}-%{release}
Requires:       %{lib_dns_sd_name} = %{version}

%description -n %develnamedns_sd
Avahi devel compatibility library for libdns_sd.

%package -n %{lib_glib_name}
Group:          System/Libraries
Summary:        Library for avahi-glib

%description -n %{lib_glib_name}
Library for avahi-glib.

%package -n %develnameglib
Group:          Development/C
Summary:        Devel library for avahi-glib
Provides:       %{glib_name}-devel = %{version}-%{release}
Provides:       lib%{glib_name}-devel = %{version}-%{release}
Requires:       %{lib_glib_name} = %{version}

%description -n %develnameglib
Devel library for avahi-glib.

%package -n %{lib_gobject_name}
Group:          System/Libraries
Summary:        Library for avahi-gobject

%description -n %{lib_gobject_name}
Library for avahi-gobject.

%package -n %develnamegobject
Group:          Development/C
Summary:        Devel library for avahi-gobject
Provides:       %{gobject_name}-devel = %{version}-%{release}
Provides:       lib%{gobject_name}-devel = %{version}-%{release}
Requires:       %{lib_gobject_name} = %{version}
Requires:       %{gir_name} = %{version}

%description -n %develnamegobject
Devel library for avahi-gobject.

%package -n %{lib_howl_name}
Group:          System/Libraries
Summary:        Avahi compatibility library for howl

%description -n %{lib_howl_name}
Avahi compatibility library for howl.

%package -n %develnamehowl
Group:          Development/C
Summary:        Avahi devel compatibility library for libdns_sd for howl
Provides:       %{howl_name}-devel = %{version}-%{release}
Provides:       lib%{howl_name}-devel = %{version}-%{release}
Provides:       howl-devel = %{version}-%{release}
Provides:       libhowl-devel = %{version}-%{release}
Requires:       %{lib_howl_name} = %{version}

%description -n %develnamehowl
Avahi devel compatibility library for libdns_sd for howl.

%if %{with qt5}
%package -n %{lib_qt5_name}
Group:          System/Libraries
Summary:        Library for avahi-qt5

%description -n %{lib_qt5_name}
Library for avahi-qt5.

%package -n %develnameqt5
Group:          Development/C
Summary:        Devel library for avahi-qt5
Provides:       %{qt5_name}-devel = %{version}-%{release}
Provides:       lib%{qt5_name}-devel = %{version}-%{release}
Requires:       %{lib_qt5_name} = %{version}

%description -n %develnameqt5
Devel library for avahi-qt5.
%endif

%if %{with gtk3}
%package -n %{lib_gtk3_name}
Group:          System/Libraries
Summary:        Library for avahi-gtk3

%description -n %{lib_gtk3_name}
Library for avahi-gtk3.

%package -n %develnamegtk3
Group:          Development/C
Summary:        Devel library for avahi-gtk3
Provides:       %{gtk3_name}-devel = %{version}-%{release}
Provides:       lib%{gtk3_name}-devel = %{version}-%{release}
Requires:       %{lib_gtk3_name} = %{version}

%description -n %develnamegtk3
Devel library for avahi-gtk3.
%endif

%package -n %{gir_core_name}
Summary:        GObject Introspection interface description for AvahiCore
Group:          System/Libraries
Requires:       %{lib_core_name} = %{version}-%{release}

%description -n %{gir_core_name}
GObject Introspection interface description for AvahiCore.

%package -n %{gir_name}
Summary:        GObject Introspection interface description for Avahi
Group:          System/Libraries
Requires:       %{lib_gobject_name} = %{version}-%{release}

%description -n %{gir_name}
GObject Introspection interface description for Avahi.

%prep
%setup -q
%autopatch -p1
cp %{SOURCE1} avahi-hostname.sh

%build
autoreconf -vfi
export PKG_CONFIG_PATH=/usr/lib/qt5/%{_lib}/pkgconfig
%configure \
    --disable-static \
%if %{without mono}
    --disable-mono \
%endif
%if %{without qt5}
    --disable-qt5 \
%endif
%if ! %{with python2}
  --disable-python \
%endif
  --localstatedir=%{_var} \
  --with-avahi-priv-access-group="avahi" \
  --enable-compat-libdns_sd \
  --enable-compat-howl \
  --enable-introspection=yes \
%if %{without gtk3}
  --disable-gtk3 \
%endif
  --disable-qt3

%make_build

%install
%make_install

ln -s avahi-compat-howl.pc %buildroot%_libdir/pkgconfig/howl.pc
ln -s avahi-compat-libdns_sd.pc %buildroot%_libdir/pkgconfig/libdns_sd.pc

%if "%_lib" != "lib" && 0%{?with_mono:1}
    mkdir -p %buildroot%_prefix/lib
    mv %buildroot%_libdir/mono %buildroot%_prefix/lib
    perl -pi -e "s/%_lib/lib/" %buildroot%_libdir/pkgconfig/avahi-{,ui-}sharp.pc
%endif

# install hostname.d hook
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/hostname.d/
install -m755 avahi-hostname.sh %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/hostname.d/avahi

%find_lang avahi

#we don't want these
find %{buildroot} -name "*.la" -delete

# remove example
# see : https://bugs.mageia.org/show_bug.cgi?id=3419
rm -f %{buildroot}%{_sysconfdir}/avahi/services/sftp-ssh.service

mkdir -p %{buildroot}%{_localstatedir}/avahi

rm -f %{buildroot}%{_initrddir}/%{name}-daemon
rm -f %{buildroot}%{_initrddir}/%{name}-dnsconfd

%pre
%_pre_useradd %{name} %{_var}/run/%{name}-daemon /bin/false
%_pre_useradd %{name}-autoipd %{_var}/lib/%{name}-autoipd /bin/false
# Correct home directories if users already exists (mga#10004)
if [ "`grep -E '^%{name}:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then
    %{_sbindir}/usermod -d %{_var}/run/%{name}-daemon %{name}
fi
if [ "`grep -E '^%{name}-autoipd:' < /etc/passwd | cut -f6 -d:`" = %{_var}/avahi ]; then
        %{_sbindir}/usermod -d %{_var}/lib/%{name}-autoipd %{name}-autoipd
fi

%postun
# Note postun_userdel is a dummy script. It does not do anything!
%_postun_userdel %{name}
%_postun_userdel %{name}-autoipd

%post
%_post_service %{name}-daemon

%preun
%_preun_service %{name}-daemon

%post dnsconfd
%_post_service %{name}-dnsconfd

%preun dnsconfd
%_preun_service %{name}-dnsconfd

%if %{with mono}
%post sharp-doc
%_bindir/monodoc --make-index > /dev/null

%postun sharp-doc
if [ "$1" = "0" -a -x %_bindir/monodoc ]; then %_bindir/monodoc --make-index > /dev/null
fi
%endif

%files -f avahi.lang
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/services/
%config(noreplace) %{_sysconfdir}/%{name}/hosts
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-daemon.conf
%config(noreplace) %{_sysconfdir}/%{name}/avahi-autoipd.action
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/%{name}-dbus.conf
%config(noreplace) %{_sysconfdir}/%{name}/services/ssh.service
%attr(0755,avahi,avahi) %dir %{_localstatedir}/avahi
%{_sysconfdir}/sysconfig/network-scripts/hostname.d/avahi
%{_bindir}/%{name}-browse
%{_bindir}/%{name}-browse-domains
%{_bindir}/%{name}-publish
%{_bindir}/%{name}-publish-address
%{_bindir}/%{name}-publish-service
%{_bindir}/%{name}-resolve
%{_bindir}/%{name}-resolve-address
%{_bindir}/%{name}-resolve-host-name
%{_bindir}/%{name}-set-host-name
%{_sbindir}/%{name}-daemon
%{_sbindir}/avahi-autoipd
%{_datadir}/%{name}/%{name}-service.dtd
%{_datadir}/dbus-1/interfaces/*.xml
#%%{_datadir}/%%{name}/introspection/AddressResolver.introspect
#%%{_datadir}/%%{name}/introspection/DomainBrowser.introspect
#%%{_datadir}/%%{name}/introspection/EntryGroup.introspect
#%%{_datadir}/%%{name}/introspection/HostNameResolver.introspect
#%%{_datadir}/%%{name}/introspection/RecordBrowser.introspect
#%%{_datadir}/%%{name}/introspection/Server.introspect
#%%{_datadir}/%%{name}/introspection/ServiceBrowser.introspect
#%%{_datadir}/%%{name}/introspection/ServiceResolver.introspect
#%%{_datadir}/%%{name}/introspection/ServiceTypeBrowser.introspect
#%%{_datadir}/%%{name}/service-types
%{_mandir}/man1/%{name}-browse-domains.1*
%{_mandir}/man1/%{name}-browse.1*
%{_mandir}/man1/%{name}-publish.1*
%{_mandir}/man1/%{name}-publish-address.1*
%{_mandir}/man1/%{name}-publish-service.1*
%{_mandir}/man1/%{name}-resolve.1*
%{_mandir}/man1/%{name}-resolve-address.1*
%{_mandir}/man1/%{name}-resolve-host-name.1*
%{_mandir}/man1/%{name}-set-host-name.1*
%{_mandir}/man5/%{name}-daemon.conf.5*
%{_mandir}/man5/%{name}.hosts.5*
%{_mandir}/man5/%{name}.service.5*
%{_mandir}/man8/%{name}-daemon.8*
%{_mandir}/man8/avahi-autoipd*
%dir %{_datadir}/%{name}
%{_unitdir}/avahi-daemon.service
%{_unitdir}/avahi-daemon.socket
%{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
%if %{with python2}
%{_libdir}/avahi/service-types.db
%endif

%files dnsconfd
%{_sysconfdir}/%{name}/%{name}-dnsconfd.action
%{_sbindir}/%{name}-dnsconfd
%{_mandir}/man8/%{name}-dnsconfd.8*
%{_mandir}/man8/%{name}-dnsconfd.action.8*
%{_unitdir}/avahi-dnsconfd.service

%files x11
%{_bindir}/%{name}-discover-standalone
%{_bindir}/bshell
%{_bindir}/bssh
%{_bindir}/bvnc
%{_datadir}/applications/bssh.desktop
%{_datadir}/applications/bvnc.desktop
%{_datadir}/%{name}/interfaces/%{name}-discover.ui
%{_mandir}/man1/bshell.1*
%{_mandir}/man1/bssh.1*
%{_mandir}/man1/bvnc.1*

%if %{with python2}
%files python
%{_bindir}/%{name}-bookmarks
%{_bindir}/%{name}-discover
%{_datadir}/applications/%{name}-discover.desktop
%{python2_sitelib}/%{name}/
%{python2_sitelib}/avahi_discover/
%{_mandir}/man1/%{name}-discover.1*
%{_mandir}/man1/%{name}-bookmarks.1*
%endif

%if %{with mono}
%files sharp
%{_prefix}/lib/mono/%{name}-sharp/%{name}-sharp.dll
%{_prefix}/lib/mono/gac/%{name}-sharp/
%{_libdir}/pkgconfig/%{name}-sharp.pc
%{_libdir}/pkgconfig/%{name}-ui-sharp.pc

%files sharp-doc
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.source
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.tree
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.zip
%endif

%files -n %{lib_client_name}
%{_libdir}/lib%{name}-client.so.%{client_major}{,.*}

%files -n %{lib_event_name}
%{_libdir}/lib%{name}-libevent.so.%{event_major}{,.*}

%files -n %{lib_common_name}
%{_libdir}/lib%{name}-common.so.%{common_major}{,.*}

%files -n %{lib_core_name}
%{_libdir}/lib%{name}-core.so.%{core_major}{,.*}

%files -n %{lib_dns_sd_name}
%{_libdir}/libdns_sd.so.%{dns_sd_major}{,.*}

%files -n %{lib_glib_name}
%{_libdir}/lib%{name}-glib.so.%{glib_major}{,.*}

%files -n %{lib_gobject_name}
%{_libdir}/lib%{name}-gobject.so.%{gobject_major}{,.*}

%files -n %{lib_howl_name}
%{_libdir}/libhowl.so.%{howl_major}{,.*}

%if %{with qt5}
%files -n %{lib_qt5_name}
%{_libdir}/lib%{name}-qt5.so.%{qt5_major}{,.*}
%endif

%if %{with gtk3}
%files -n %{lib_gtk3_name}
%{_libdir}/lib%{name}-ui-gtk3.so.%{gtk3_major}{,.*}
%endif

%files -n %develnameclient
%{_includedir}/%{name}-client
%{_libdir}/lib%{name}-client.so
%{_libdir}/pkgconfig/%{name}-client.pc

%files -n %develnameevent
%{_includedir}/%{name}-libevent
%{_libdir}/lib%{name}-libevent.so
%{_libdir}/pkgconfig/%{name}-libevent.pc

%files -n %develnamecommon
%{_includedir}/%{name}-common
%{_libdir}/lib%{name}-common.so

%files -n %develnamecore
%{_includedir}/%{name}-core
%{_libdir}/lib%{name}-core.so
%{_libdir}/pkgconfig/%{name}-core.pc
%{_datadir}/gir-1.0/AvahiCore-%{gir_major}.gir

%files -n %develnamedns_sd
%{_includedir}/%{name}-compat-libdns_sd
%{_libdir}/libdns_sd.so
%{_libdir}/pkgconfig/%{name}-compat-libdns_sd.pc
%{_libdir}/pkgconfig/libdns_sd.pc

%files -n %develnameglib
%{_includedir}/%{name}-glib
%{_libdir}/lib%{name}-glib.so
%{_libdir}/pkgconfig/%{name}-glib.pc

%files -n %develnamegobject
%{_includedir}/%{name}-gobject
%{_libdir}/lib%{name}-gobject.so
%{_libdir}/pkgconfig/%{name}-gobject.pc
%{_datadir}/gir-1.0/Avahi-%{gir_major}.gir

%files -n %develnamehowl
%{_includedir}/%{name}-compat-howl
%{_libdir}/libhowl.so
%{_libdir}/pkgconfig/%{name}-compat-howl.pc
%{_libdir}/pkgconfig/howl.pc

%if %{with qt5}
%files -n %develnameqt5
%{_includedir}/%{name}-qt5
%{_libdir}/lib%{name}-qt5.so
%{_libdir}/pkgconfig/%{name}-qt5.pc
%endif

%if %{with gtk3}
%files -n %develnamegtk3
%{_includedir}/%{name}-ui/
%{_libdir}/libavahi-ui-gtk3.so
%{_libdir}/pkgconfig/avahi-ui-gtk3.pc
%endif

%files -n %gir_name
%{_libdir}/girepository-1.0/Avahi-%{gir_major}.typelib

%files -n %gir_core_name
%{_libdir}/girepository-1.0/AvahiCore-%{gir_major}.typelib


%changelog
* Mon Jan 08 2024 ns80 <ns80> 0.8-10.1.mga9
+ Revision: 2028915
- add patches from Ubuntu for CVE-2023-38469, CVE-2023-3847[0-3] (mga#32363)

* Wed Apr 19 2023 ns80 <ns80> 0.8-10.mga9
+ Revision: 1953621
- add a patch from Fedora for CVE-2023-1981 (mga#31811)

* Wed Apr 06 2022 umeabot <umeabot> 0.8-9.mga9
+ Revision: 1845586
- Mageia 9 Mass Rebuild

* Fri Jul 09 2021 ns80 <ns80> 0.8-8.mga9
+ Revision: 1735218
- add Ubuntu patch for CVE-2021-3502 (mga#29239)

* Wed May 12 2021 ns80 <ns80> 0.8-7.mga9
+ Revision: 1722574
- add upstream patch for CVE-2021-3468 (mga#28901)

* Sat Oct 31 2020 joequant <joequant> 0.8-6.mga8
+ Revision: 1640801
- bump version
+ tv <tv>
- rebuild for new mono

* Mon Mar 23 2020 daviddavid <daviddavid> 0.8-4.mga8
+ Revision: 1559058
- gtk2 support no longer built so move ui header files to ui gtk3 support

* Mon Mar 23 2020 daviddavid <daviddavid> 0.8-3.mga8
+ Revision: 1559052
- pull in some upstream fixes

* Fri Mar 20 2020 shlomif <shlomif> 0.8-2.mga8
+ Revision: 1558438
- fix broken requires

* Fri Mar 20 2020 shlomif <shlomif> 0.8-1.mga8
+ Revision: 1558262
- New version 0.8

* Sun Feb 16 2020 umeabot <umeabot> 0.7-6.mga8
+ Revision: 1533253
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Fri Sep 20 2019 daviddavid <daviddavid> 0.7-5.mga8
+ Revision: 1443958
- disable python2 bindings support

* Sat Feb 02 2019 luigiwalser <luigiwalser> 0.7-4.mga7
+ Revision: 1362663
- add upstream patch to fix CVE-2017-6519

* Fri Sep 21 2018 umeabot <umeabot> 0.7-3.mga7
+ Revision: 1295188
- Mageia 7 Mass Rebuild

* Sun Jun 17 2018 luigiwalser <luigiwalser> 0.7-2.mga7
+ Revision: 1237478
- rebuild for gdbm

* Sun Oct 15 2017 joequant <joequant> 0.7-1.mga7
+ Revision: 1172016
- upgrade to 0.7

* Wed Aug 23 2017 ovitters <ovitters> 0.6.32-1.mga7
+ Revision: 1144001
+ rebuild (emptylog)

* Sat Mar 12 2016 shlomif <shlomif> 0.6.32-1.mga6
+ Revision: 989607
- New version 0.6.32

* Mon Feb 15 2016 luigiwalser <luigiwalser> 0.6.31-18.mga6
+ Revision: 961587
- BR pkgconfig(monodoc)
+ umeabot <umeabot>
- Mageia 6 Mass Rebuild

* Sun Jun 28 2015 wally <wally> 0.6.31-17.mga6
+ Revision: 847146
- add requires for gir pkg to devel pkg

* Thu Apr 09 2015 shlomif <shlomif> 0.6.31-16.mga5
+ Revision: 819949
- Fix for MGA15650 : msec flagging violation by avahi.

* Wed Oct 15 2014 umeabot <umeabot> 0.6.31-15.mga5
+ Revision: 749252
- Second Mageia 5 Mass Rebuild

* Wed Oct 08 2014 eatdirt <eatdirt> 0.6.31-14.mga5
+ Revision: 737504
- Overrequire removed to fix bug mga#13542

* Sat Sep 27 2014 wally <wally> 0.6.31-13.mga5
+ Revision: 730597
- add patch from Suse to fix gir pkg requires

* Sat Sep 27 2014 tv <tv> 0.6.31-12.mga5
+ Revision: 725977
- rebuild for missing pythoneggs deps

* Thu Sep 18 2014 umeabot <umeabot> 0.6.31-11.mga5
+ Revision: 693469
- Rebuild to fix library dependencies

* Tue Sep 16 2014 umeabot <umeabot> 0.6.31-10.mga5
+ Revision: 678070
- Mageia 5 Mass Rebuild
+ tv <tv>
- s/uggests:/Recommends:/

* Sat May 31 2014 pterjan <pterjan> 0.6.31-9.mga5
+ Revision: 628111
- Rebuild for new Python

* Sun Oct 20 2013 umeabot <umeabot> 0.6.31-8.mga4
+ Revision: 536717
- Mageia 4 Mass Rebuild

* Tue Sep 24 2013 colin <colin> 0.6.31-7.mga4
+ Revision: 485428
- Add the main pkgconfig file from libdns_sd seeing as we provide a compat lib.

* Wed Aug 14 2013 wally <wally> 0.6.31-6.mga4
+ Revision: 466261
- drop old Mdv era obsoletes/provides

* Wed Aug 14 2013 wally <wally> 0.6.31-5.mga4
+ Revision: 466253
- enable introspection support

* Wed Aug 14 2013 wally <wally> 0.6.31-4.mga4
+ Revision: 466246
- add patch to undef GTK_DISABLE_DEPRECATED to workaround build failures with new gtk3
- add patch to suppress automake warnings
+ luigiwalser <luigiwalser>
- actually create avahi user home directory (mga#3574)

* Mon Jun 24 2013 djennings <djennings> 0.6.31-3.mga4
+ Revision: 446249
- Move dnsconfd systemd unit file to correct subpkg (mga#10469)

* Fri Jan 11 2013 umeabot <umeabot> 0.6.31-2.mga3
+ Revision: 346700
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Aug 08 2012 guillomovitch <guillomovitch> 0.6.31-1.mga3
+ Revision: 279955
- new version

* Wed Aug 08 2012 guillomovitch <guillomovitch> 0.6.30-9.mga3
+ Revision: 279939
- drop sysinit support
- make systemd support mandatory

* Sat Apr 28 2012 tmb <tmb> 0.6.30-8.mga2
+ Revision: 234113
- fix filelists
- fix build with newer automake (yoctoproject, P0)
- Require rpm-helper >= 0.24.8-1 for systemd support
- rebuild for versioned rpm-helper requires

* Wed Dec 07 2011 dmorgan <dmorgan> 0.6.30-6.mga2
+ Revision: 178135
- Create /var/avahi folder ( mga #3574)

* Mon Dec 05 2011 fwang <fwang> 0.6.30-5.mga2
+ Revision: 176921
- update br
+ dmorgan <dmorgan>
- Fix file list
- Do not package example file ( mga #3419)

* Mon Sep 19 2011 wally <wally> 0.6.30-4.mga2
+ Revision: 145618
- disable static build

* Sun Jul 17 2011 dmorgan <dmorgan> 0.6.30-3.mga2
+ Revision: 125319
- Enable systemd

* Fri Jun 10 2011 dmorgan <dmorgan> 0.6.30-2.mga2
+ Revision: 103126
- Add back missing macro

* Fri Jun 10 2011 dmorgan <dmorgan> 0.6.30-1.mga2
+ Revision: 103125
- Enable gtk3 package
- Remove buildroot

* Thu Apr 14 2011 pterjan <pterjan> 0.6.30-1.mga1
+ Revision: 85474
- Update to 0.6.30

* Mon Apr 11 2011 rtp <rtp> 0.6.28-5.mga1
+ Revision: 83228
- fix build (fix howl compat .pc version field)

* Thu Feb 24 2011 mikala <mikala> 0.6.28-4.mga1
+ Revision: 58743
- Add patch0 to fix CVE-2011-1002 & Avahi #325 :
 Fix denial of service (infinite loop) vian an empty IPV4 or IPV6 UDP packet to port 5353

* Tue Jan 25 2011 dmorgan <dmorgan> 0.6.28-3.mga1
+ Revision: 38863
- Bump release
- Add systemd support from mdv ( disabled by now)

* Sun Jan 16 2011 misc <misc> 0.6.28-2.mga1
+ Revision: 20436
- remove old Obsoletes/Provides ( no longer needed since 2006.0 )
+ dmorgan <dmorgan>
- Bump release
- Do not build with bootstrap

* Wed Jan 12 2011 dmorgan <dmorgan> 0.6.28-1.mga1
+ Revision: 7770
- Disable Qt3
- imported package avahi


* Fri Nov 05 2010 Eugeni Dodonov <eugeni@mandriva.com> 0.6.28-1mdv2011.0
+ Revision: 593734
- Updated to 0.6.28.

* Sun Oct 31 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.27-5mdv2011.0
+ Revision: 591176
- python-devel isn't a BR, python Makefile is going to be moved to python main package

* Sun Oct 31 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.27-4mdv2011.0
+ Revision: 590920
- add missing BR, python-devel

  + Michael Scherer <misc@mandriva.org>
    - rebuild for python 2.7

* Sun Oct 10 2010 Funda Wang <fwang@mandriva.org> 0.6.27-2mdv2011.0
+ Revision: 584584
- rebuild for new mono

* Tue Aug 17 2010 Emmanuel Andry <eandry@mandriva.org> 0.6.27-1mdv2011.0
+ Revision: 570971
- New version 0.6.27
- new avahi core major 7
- disable gtk3 and introspection for now
- update files list

* Thu Apr 08 2010 Eugeni Dodonov <eugeni@mandriva.com> 0.6.25-5mdv2010.1
+ Revision: 532971
- Install hostname.d file (#25617).
  Suggest nss_mdns to help resolve .local names.
  Fix glade packaging issue between avahi-x11 and avahi-python.

* Mon Mar 15 2010 Oden Eriksson <oeriksson@mandriva.com> 0.6.25-4mdv2010.1
+ Revision: 520015
- rebuilt for 2010.1

* Fri Sep 25 2009 Olivier Blin <oblin@mandriva.com> 0.6.25-3mdv2010.0
+ Revision: 448777
- do not build mono support on arm and mips (from Arnaud Patard)

* Sun Jun 28 2009 Raphaël Gertz <rapsys@mandriva.org> 0.6.25-2mdv2010.0
+ Revision: 390222
- Fix chroot install bug when $NETWORKING is not set

* Thu May 28 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.6.25-1mdv2010.0
+ Revision: 380502
- Updated to 0.6.25.
  Dropped P0 (integrated upstream).

* Sun Apr 19 2009 Frederik Himpe <fhimpe@mandriva.org> 0.6.24-2mdv2009.1
+ Revision: 368029
- Add upstream patch fixng CVE-2009-0758

* Thu Dec 25 2008 Adam Williamson <awilliamson@mandriva.org> 0.6.24-1mdv2009.1
+ Revision: 318718
- new major
- rebuild for python 2.6
- new release 0.6.24

* Sat Nov 08 2008 Adam Williamson <awilliamson@mandriva.org> 0.6.23-2mdv2009.1
+ Revision: 300969
- rebuild for changed xcb

* Fri Jul 18 2008 Götz Waschk <waschk@mandriva.org> 0.6.23-1mdv2009.0
+ Revision: 238063
- new version
- drop patch
- update license

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon Jun 02 2008 Frederic Crozat <fcrozat@mandriva.com> 0.6.22-5mdv2009.0
+ Revision: 214326
- Fix BuildRequires
- Patch0 (SVN): fix typo in Makefile.am, fixing build
- Remove old obsolete (and false) option in configure

  + Funda Wang <fwang@mandriva.org>
    - rebuild for new qtlibs location

* Mon Mar 03 2008 Olivier Blin <oblin@mandriva.com> 0.6.22-3mdv2008.1
+ Revision: 177826
- add avahi-autoipd user and group (#33885)

  + Götz Waschk <waschk@mandriva.org>
    - fix dep on avahi in libavahi-client

* Fri Dec 21 2007 Götz Waschk <waschk@mandriva.org> 0.6.22-2mdv2008.1
+ Revision: 136229
- fix devel obsoletes

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Mon Dec 17 2007 Götz Waschk <waschk@mandriva.org> 0.6.22-1mdv2008.1
+ Revision: 131028
- new version
- drop patches
- update file list
- add package for libavahi-gobject

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Thu Dec 06 2007 Götz Waschk <waschk@mandriva.org> 0.6.21-5mdv2008.1
+ Revision: 115983
- fix buildrequires

* Thu Dec 06 2007 Götz Waschk <waschk@mandriva.org> 0.6.21-3mdv2008.1
+ Revision: 115849
- new devel name

* Fri Aug 17 2007 Funda Wang <fwang@mandriva.org> 0.6.21-2mdv2008.0
+ Revision: 65177
- fix desktop conflict bewteen x11 and python sub package

* Mon Aug 13 2007 Olivier Blin <oblin@mandriva.com> 0.6.21-1mdv2008.0
+ Revision: 62591
- add patch to allow build with dbus < 1.1.1 (from upstream SVN)
- 0.6.21

* Sun Jun 24 2007 Olivier Blin <oblin@mandriva.com> 0.6.20-2mdv2008.0
+ Revision: 43749
- 0.6.20 (and drop upstream patches)

* Thu Jun 07 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.6.19-2mdv2008.0
+ Revision: 36904
- rebuild for expat

* Mon May 14 2007 Olivier Blin <oblin@mandriva.com> 0.6.19-1mdv2008.0
+ Revision: 26632
- 0.6.19
- fix zssh build (patches from upstream SVN)
- zssh/zvnc are renamed bssh/bvnc
- package avahi-ui-sharp files in main avahi-sharp package (for now)

* Thu Apr 19 2007 Olivier Blin <oblin@mandriva.com> 0.6.18-1mdv2008.0
+ Revision: 14986
- add ui applications in avahi-x11 and create ui library packages
- really use qt4 major macro
- use linux inotify header instead of glibc one to get up-to-date inotify (for IN_ONLYDIR)
- workaround pkgconfig path for qt4
- 0.6.18


* Mon Feb 05 2007 Götz Waschk <waschk@mandriva.org> 0.6.17-1mdv2007.0
+ Revision: 116186
- new version
- new major for libavahi-core
- drop the patches, the problems are fixed upstream

* Fri Jan 19 2007 Götz Waschk <waschk@mandriva.org> 0.6.16-3mdv2007.1
+ Revision: 110596
- don't log broken packets

* Wed Jan 10 2007 Götz Waschk <waschk@mandriva.org> 0.6.16-2mdv2007.1
+ Revision: 106954
- don't restart dbus on package installation

* Thu Dec 28 2006 Olivier Blin <oblin@mandriva.com> 0.6.16-1mdv2007.1
+ Revision: 102392
- use --with-avahi-priv-access-group configure option instead of patch0
- drop dbus patch (merged upstream)
- 0.6.16

* Mon Dec 18 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.6.15-4mdv2007.1
+ Revision: 98368
- Rebuild against new Python

  + Gwenole Beauchesne <gbeauchesne@mandriva.com>
    - help bootstrap builds
    - generate debug packages on x86_64

  + Frederic Crozat <fcrozat@mandriva.com>
    - Patch1 (Fedora): fix build with dbus 1.0
      Patch2 (Fedora) ia64: unaligned access errors seen  during startup of avahi-daemon

* Mon Nov 06 2006 Olivier Blin <oblin@mandriva.com> 0.6.15-2mdv2007.1
+ Revision: 77003
- 0.6.15

* Sat Nov 04 2006 Götz Waschk <waschk@mandriva.org> 0.6.14-2mdv2007.1
+ Revision: 76544
- fix avahi-sharp-doc content

* Fri Oct 27 2006 Götz Waschk <waschk@mandriva.org> 0.6.14-1mdv2007.0
+ Revision: 72946
- Import avahi

* Fri Oct 27 2006 Götz Waschk <waschk@mandriva.org> 0.6.14-1mdv2007.1
- add autoipd to the avahi package
- new version

* Fri Sep 22 2006 Götz Waschk <waschk@mandriva.org> 0.6.13-5mdv2007.0
- split monodoc docs to separate package

* Wed Sep 20 2006 Götz Waschk <waschk@mandriva.org> 0.6.13-4mdv2007.0
- fix avahi-sharp pkgconfig file for x86_64

* Thu Sep 14 2006 Götz Waschk <waschk@mandriva.org> 0.6.13-3mdv2007.0
- fix avahi-sharp path on x86_64

* Mon Aug 28 2006 Olivier Blin <blino@mandriva.com> 0.6.13-2mdv2007.0
- Patch0: don't use NetworkManager-specific netdev group to grant
  access to all methods, use avahi group instead (this means don't
  allow full access to anyone by default)

* Sun Aug 27 2006 Götz Waschk <waschk@mandriva.org> 0.6.13-1mdv2007.0
- update file list
- New release 0.6.13

* Wed Aug 02 2006 Frederic Crozat <fcrozat@mandriva.com> 0.6.12-2mdv2007.0
- Rebuild with latest dbus

* Sun Jul 23 2006 Olivier Blin <blino@mandriva.com> 0.6.12-1mdv2007.0
- New release 0.6.12

* Wed Jul 19 2006 Götz Waschk <waschk@mandriva.org> 0.6.11-4mdv2007.0
- fix postun script of the sharp binding

* Sun Jul 02 2006 Stefan van der Eijk <stefan@mandriva.org> 0.6.11-3
- fix typo

* Sun Jul 02 2006 Stefan van der Eijk <stefan@mandriva.org> 0.6.11-2
- BuildRequires

* Tue Jun 27 2006 Götz Waschk <waschk@mandriva.org> 0.6.11-1
- New release 0.6.11

* Thu Jun 22 2006 Laurent MONTEL <lmontel@mandriva.com> 0.6.10-4
- Rebuild

* Tue Jun 20 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.6.10-3mdv2007.0
- rebuild for new png lib on x86_64

* Thu May 18 2006 Laurent MONTEL <lmontel@mandriva.com> 0.6.10-2
- Rebuild

* Sun May 07 2006 Götz Waschk <waschk@mandriva.org> 0.6.10-1mdk
- New release 0.6.10

* Thu May 04 2006 Frederic Crozat <fcrozat@mandriva.com> 0.6.9-5mdk
- add requires on dbus for post/preun

* Wed Apr 19 2006 Götz Waschk <waschk@mandriva.org> 0.6.9-4mdk
- enable mono

* Wed Mar 08 2006 Olivier Blin <oblin@mandriva.com> 0.6.9-3mdk
- move avahi-discover-standalone in new sub-package avahi-x11
  (not to make avahi command line tools require X, thanks Pixel)
- move avahi-discover.glade in avahi-python

* Sat Mar 04 2006 Michael Scherer <misc@mandriva.org> 0.6.9-2mdk
-add qt4 subpackage, now this is in main

* Fri Mar 03 2006 Götz Waschk <waschk@mandriva.org> 0.6.9-1mdk
- New release 0.6.9

* Thu Mar 02 2006 Götz Waschk <waschk@mandriva.org> 0.6.8-3mdk
- spec fixes
- fix howl compat package

* Wed Mar 01 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.6.8-2mdk
- fix major

* Thu Feb 23 2006 Götz Waschk <waschk@mandriva.org> 0.6.8-1mdk
- New release 0.6.8

* Wed Feb 15 2006 Götz Waschk <waschk@mandriva.org> 0.6.7-1mdk
- update file list
- New release 0.6.7

* Fri Feb 10 2006 Michael Scherer <misc@mandriva.org> 0.6.6-3mdk
- do not advertise ssh service by default ( and place the file in openssh itself )

* Tue Jan 31 2006 Olivier Blin <oblin@mandriva.com> 0.6.6-2mdk
- obsolete our old daemons (howl/tmdns/mDNSResponder)
- don't restart messagebus service twice on upgrade
  (thanks to Frederic Crozat for all these points)
- fake provides version for howl compat package, to allow libhowl0 to
  be replaced by libavahi-compat-howl0

* Tue Jan 31 2006 Olivier Blin <oblin@mandriva.com> 0.6.6-1mdk
- 0.6.6
- buildrequire dbus-python

* Fri Jan 27 2006 Michael Scherer <misc@mandriva.org> 0.6.5-9mdk
- fix requires on python package ( no need to pull the whole twisted stack )
- exchange avahi-bookmarks and avahi-browse ( the python script was not in the python package )

* Thu Jan 26 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.6.5-8mdk
- don't built qt4 bindings by default as long as qt4 is in contrib

* Wed Jan 25 2006 Olivier Blin <oblin@mandriva.com> 0.6.5-7mdk
- make the client library require the daemon
- make the compat packages obsolete howl and mDNSResponder libraries
- split dnsconfd in a sub package

* Tue Jan 24 2006 Götz Waschk <waschk@mandriva.org> 0.6.5-6mdk
- fix buildrequires

* Tue Jan 24 2006 Götz Waschk <waschk@mandriva.org> 0.6.5-5mdk
- fix buildrequires

* Tue Jan 24 2006 Götz Waschk <waschk@mandriva.org> 0.6.5-4mdk
- fix buildrequires

* Mon Jan 23 2006 Olivier Blin <oblin@mandriva.com> 0.6.5-3mdk
- remove the "don't install me" watchdog (who said forgetfulness?)
  in compat libraries, i.e. don't conflict with our own Provides

* Mon Jan 23 2006 Olivier Blin <oblin@mandriva.com> 0.6.5-2mdk
- don't call autogen.sh, no longer needed

* Mon Jan 23 2006 Olivier Blin <oblin@mandriva.com> 0.6.5-1mdk
- New release 0.6.5
- drop Patch0,1,2 (merged upstream)

* Fri Jan 20 2006 Olivier Blin <oblin@mandriva.com> 0.6.4-3mdk
- Patch0: use initscript lock subsys

* Thu Jan 19 2006 Oden Eriksson <oeriksson@mandriva.com> 0.6.4-2mdk
- added lib64 fixes in the pkgconfig files (P2)

* Wed Jan 18 2006 Olivier Blin <oblin@mandriva.com> 0.6.4-1mdk
- initial Mandriva release
- Patch0: create Mandriva initscripts
- Patch1: fix typo in avahi-dnsconfd(8) (thanks to Michael Scherer)