# # spec file for package avahi (Version 0.6.20) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: avahi %define _name avahi %define build_mono 0 # WARNING: After editing this file please call Re or rpmbuild to update spec files: Version: 0.6.20 Release: 52 # WARNING: After changing versions please call Re or rpmbuild to auto-update spec file: #%(sh %{_sourcedir}/%{name}_spec-prepare.sh %{_sourcedir} %{name}) %define avahi_client_soname 3 %define avahi_common_soname 3 %define avahi_core_soname 5 %define avahi_ui_soname 0 %define avahi_glib_soname 1 %define avahi_qt3_soname 1 %define avahi_qt4_soname 1 Url: http://www.avahi.org/ Group: System/Daemons License: LGPL v2 or later Summary: D-BUS Service for Zeroconf and Bonjour Source: %{_name}-%{version}.tar.bz2 Source1: gnome-nettool2.png Source2: avahi-bookmarks.init Source3: avahi.firewall Source4: %{_name}_spec-prepare.sh Patch0: avahi-gacdir.patch Patch1: avahi-desktop.patch Patch2: avahi-init-lsb.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: dbus-1-devel doxygen fdupes gcc-c++ gdbm-devel graphviz libdaemon-devel libglade2-devel update-desktop-files zlib-devel %if !%build_mono # For python bindings and utilities: BuildRequires: dbus-1-python python-devel python-gdbm python-gtk-devel # For qt3 bindings BuildRequires: qt3-devel # For qt4 bindings BuildRequires: libqt4-devel Requires: dbus-1 Requires: nss-mdns # mDNSResponder was used for <= 10.2: Provides: mDNSResponder = 107.5 Obsoletes: mDNSResponder <= 107.5 %else # For mono bindings: BuildRequires: gtk-sharp2 mono-devel monodoc-core Requires: gtk-sharp2 libavahi-client3 >= %{version} libavahi-common3 >= %{version} libavahi-ui0 >= %{version} libavahi-glib1 >= %{version} %endif %description Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %if !%build_mono %package -n libavahi-client3 Summary: D-BUS Service for Zeroconf and Bonjour Group: System/Libraries %description -n libavahi-client3 Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-common3 Summary: D-BUS Service for Zeroconf and Bonjour Requires: %{name} >= %{version} Group: System/Libraries %description -n libavahi-common3 Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-core5 Summary: D-BUS Service for Zeroconf and Bonjour Group: System/Libraries %description -n libavahi-core5 Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-ui0 Summary: D-BUS Service for Zeroconf and Bonjour Group: System/Libraries %description -n libavahi-ui0 Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-glib1 Summary: Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour Group: System/GUI/GNOME # Old name used for <= 10.3: Provides: avahi-glib = %{version} Obsoletes: avahi-glib <= %{version} %description -n libavahi-glib1 GLib support for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-qt3-1 Summary: Qt3 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour Group: System/GUI/KDE # Old name used for <= 10.3: Provides: avahi-qt3 = %{version} Obsoletes: avahi-qt3 <= %{version} %description -n libavahi-qt3-1 Qt3 bindings for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-qt4-1 Summary: Qt4 Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour Group: System/GUI/KDE # Old name used for <= 10.3: Provides: avahi-qt4 = %{version} Obsoletes: avahi-qt4 <= %{version} %description -n libavahi-qt4-1 Qt4 bindings for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libdns_sd Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour Group: System/Libraries # mDNSResponder-lib used unversioned soname. # Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package): %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else Provides: libdns_sd.so %endif # mDNSResponder-lib was used for <= 10.2: Provides: mDNSResponder-lib = 107.5 Obsoletes: mDNSResponder-lib <= 107.5 # Old name used for <= 10.3: Provides: avahi-compat-mDNSResponder = %{version} Obsoletes: avahi-compat-mDNSResponder <= %{version} %description -n libdns_sd Apple mDNSResponder compatibility layer for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libhowl0 Summary: howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour Group: System/Libraries # Old name used for <= 10.3: Provides: avahi-compat-howl = %{version} Obsoletes: avahi-compat-howl <= %{version} %description -n libhowl0 howl compatibility layer for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package utils Summary: Command Line Utilities for D-BUS Service for Zeroconf and Bonjour Requires: %{name} >= %{version} Group: Productivity/Networking/Other %description utils Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package utils-gtk Summary: GTK+ Utilities for D-BUS Service for Zeroconf and Bonjour Requires: %{name} >= %{version} Group: Productivity/Networking/Other %description utils-gtk Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. 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. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n python-avahi Summary: A set of Avahi utilities written in Python Requires: %{name} = %{version} python-gdbm python-gtk dbus-1-python python-twisted python-twisted-web Group: Development/Languages/Python # Old name used for <= 10.3: Provides: avahi-python = %{version} Obsoletes: avahi-python <= %{version} %py_requires %description -n python-avahi Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete, 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 that have never been seen elsewhere, like correct mDNS reflection across LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-devel Summary: Include Files and Libraries Mandatory for Development # Requires: %{name} = %{version} libavahi-common3 = %{version} libavahi-core5 = %{version} libavahi-client3 = %{version} dbus-1-devel glibc-devel Group: Development/Libraries/C and C++ # Last appeared in OpenSUSE 10.3: Provides: avahi-devel = %{version} Obsoletes: avahi-devel <= %{version} %description -n libavahi-devel Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-glib-devel Summary: Include Files and Libraries Mandatory for Development Requires: libavahi-devel = %{version} libavahi-ui0 = %{version} libavahi-glib1 = %{version} glib2-devel gtk2-devel Group: Development/Libraries/C and C++ # Last appeared in OpenSUSE 10.3: Provides: avahi-devel:%{_libdir}/libavahi-glib.so %description -n libavahi-glib-devel GLib support for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-qt3-devel Summary: Include Files and Libraries Mandatory for Development Requires: libavahi-devel = %{version} libavahi-qt3-1 = %{version} qt3-devel Group: Development/Libraries/C and C++ # Last appeared in OpenSUSE 10.3: Provides: avahi-devel:%{_libdir}/libavahi-qt3.so %description -n libavahi-qt3-devel Qt3 bindings for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package -n libavahi-qt4-devel Summary: Include Files and Libraries Mandatory for Development Requires: libavahi-devel = %{version} libavahi-qt4-1 = %{version} libqt4-devel Group: Development/Libraries/C and C++ # Last appeared in OpenSUSE 10.3: Provides: avahi-devel:%{_libdir}/libavahi-qt4.so %description -n libavahi-qt4-devel Qt4 bindings for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package compat-mDNSResponder-devel Summary: mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour Requires: libavahi-devel = %{version} libdns_sd = %{version} Group: Development/Libraries/C and C++ Provides: mDNSResponder-devel = 107.5 Obsoletes: mDNSResponder-devel <= 107.5 %description compat-mDNSResponder-devel Apple mDNSResponder compatibility layer for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %package compat-howl-devel Summary: howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour Requires: libavahi-devel = %{version} libhowl0 = %{version} Group: Development/Libraries/C and C++ %description compat-howl-devel howl compatibility layer for avahi. Avahi is an Implementation the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. It uses D-BUS for 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. The Avahi mDNS responder is now feature complete implementing all MUSTs and the majority of the SHOULDs of the mDNS/DNS-SD RFCs. It passes all tests in the Apple Bonjour conformance test suite. In addition it supports some nifty things that have never been seen elsewhere like correct mDNS reflection accross LAN segments. Authors: -------- Lennart Poettering Trent Lloyd Sebastien Estienne %endif %prep %setup -q -n %{_name}-%{version} %patch0 %patch1 -p1 %patch2 %build ACLOCAL="aclocal -I common" autoreconf -f -i %configure\ --libexecdir=%{_prefix}/lib\ --disable-static\ --with-distro=suse\ %if %build_mono --enable-mono\ --disable-qt3\ --disable-qt4\ --disable-python\ --disable-pygtk\ --disable-compat-libdns_sd\ --disable-compat-howl\ %else --disable-mono \ --enable-qt3\ --enable-qt4\ --enable-python\ --enable-pygtk\ --enable-compat-libdns_sd\ --enable-compat-howl\ %endif --with-avahi-priv-access-group=avahi\ --with-autoipd-user=avahi\ --with-autoipd-group=avahi make %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT install ## WARNING: found empty dependency_libs variable. please remove the ## pointless libtool .la file ## /var/tmp/avahi-0.6.20-build/usr/lib64/lib\avahi-common.la ## If you don't understand this, mailto=rguenther@suse.de ## A number of packages want this file, however, so we won't remove it. # rm $RPM_BUILD_ROOT/${_prefix}/${_lib}/libavahi-common.la %if !%build_mono install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps install -m 644 %{S:1} $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-nettool2.png install -d $RPM_BUILD_ROOT%{_localstatedir}/run/avahi-daemon ln -s avahi-compat-libdns_sd/dns_sd.h $RPM_BUILD_ROOT%{_includedir}/ ln -s avahi-compat-howl.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/howl.pc # Work-around qt4 bug: # https://bugzilla.novell.com/show_bug.cgi?id=238169 %if %suse_version <= 1020 sed -i "s,$RPM_BUILD_DIR,/," $RPM_BUILD_ROOT%{_libdir}/libavahi-qt4.la %endif mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services install %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/avahi-bookmarks ln -s %{_sysconfdir}/init.d/avahi-daemon $RPM_BUILD_ROOT%{_sbindir}/rcavahi-daemon ln -s %{_sysconfdir}/init.d/avahi-dnsconfd $RPM_BUILD_ROOT%{_sbindir}/rcavahi-dnsconfd ln -s %{_sysconfdir}/init.d/avahi-bookmarks $RPM_BUILD_ROOT%{_sbindir}/rcavahi-bookmarks install -m 644 %{S:3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/avahi # FIXME: There are no better Categories in the spec (Monitor is not allowed in Network). %suse_update_desktop_file -r avahi-discover GNOME System Monitor %endif # Remove files if only building mono %if %build_mono rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-discover-standalone rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-glib*.so.* rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-browse* rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-publish* rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-resolve* rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-set-host-name rm -rf $RPM_BUILD_ROOT%{_bindir}/bssh rm -rf $RPM_BUILD_ROOT%{_bindir}/bvnc rm -rf $RPM_BUILD_ROOT%{_datadir}/avahi rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/bssh.desktop rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/bvnc.desktop rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-client*.so.* rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-common*.so.* rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-core*.so.* rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-ui*.so.* rm -rf $RPM_BUILD_ROOT%{_mandir}/man1 rm -rf $RPM_BUILD_ROOT%{_mandir}/man5 rm -rf $RPM_BUILD_ROOT%{_mandir}/man8 rm -rf $RPM_BUILD_ROOT%{_sbindir}/avahi-* rm -rf $RPM_BUILD_ROOT%{_sbindir}/rcavahi-daemon rm -rf $RPM_BUILD_ROOT%{_sbindir}/rcavahi-dnsconfd rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/*.conf rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/init.d/avahi-dnsconfd rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/init.d/avahi-daemon rm -rf $RPM_BUILD_ROOT%{_includedir} rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-client.*a rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-client*.so rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-core.*a rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-core*.so rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-common*.so rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-common*.*a rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-glib*.*a rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-glib*.so rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-ui*.*a rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi-ui*.*so rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-client.pc rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-core.pc rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-glib.pc rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/avahi-ui.pc %endif %fdupes $RPM_BUILD_ROOT%{_libdir} %clean rm -rf $RPM_BUILD_ROOT %if !%build_mono %pre %{_sbindir}/groupadd -r avahi 2> /dev/null || : %{_sbindir}/useradd -r -o -s /bin/false -c "User for Avahi" -d %{_localstatedir}/run/avahi-daemon -g avahi avahi 2> /dev/null || : %post /sbin/ldconfig %{fillup_and_insserv -f -Y avahi-daemon} %{fillup_and_insserv -f -Y avahi-dnsconfd} %preun %{stop_on_removal avahi-daemon} %{stop_on_removal avahi-dnsconfd} %postun /sbin/ldconfig %{restart_on_update avahi-daemon} %{restart_on_update avahi-dnsconfd} %insserv_cleanup %pre -n python-avahi # For update from == 10.3: # Restart will not happen due to package rename. Handle it. if test etc/init.d/avahi-bookmarks -a "$1" = 1 ; then touch var/adm/python_avahi_needs_restart fi %post -n python-avahi # For update from == 10.3: # Restart will not happen due to package rename. Handle it. if test -f var/adm/python_avahi_needs_restart ; then rm var/adm/python_avahi_needs_restart test -f /etc/sysconfig/services && . /etc/sysconfig/services if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then /etc/init.d/avahi-bookmarks try-restart > /dev/null || : fi fi %preun -n python-avahi # FIXME: Package was renamed, check for this case! %{stop_on_removal avahi-bookmarks} %insserv_cleanup %postun -n python-avahi %{restart_on_update avahi-bookmarks} %insserv_cleanup %post -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig %post -n libavahi-common3 -p /sbin/ldconfig %postun -n libavahi-common3 -p /sbin/ldconfig %post -n libavahi-core5 -p /sbin/ldconfig %postun -n libavahi-core5 -p /sbin/ldconfig %post -n libavahi-ui0 -p /sbin/ldconfig %postun -n libavahi-ui0 -p /sbin/ldconfig %post -n libavahi-qt3-1 -p /sbin/ldconfig %postun -n libavahi-qt3-1 -p /sbin/ldconfig %post -n libavahi-qt4-1 -p /sbin/ldconfig %postun -n libavahi-qt4-1 -p /sbin/ldconfig %post -n libavahi-glib1 -p /sbin/ldconfig %postun -n libavahi-glib1 -p /sbin/ldconfig %post -n libdns_sd -p /sbin/ldconfig %postun -n libdns_sd -p /sbin/ldconfig %post -n libhowl0 -p /sbin/ldconfig %postun -n libhowl0 -p /sbin/ldconfig %endif %if %build_mono %files %defattr(-,root,root) %{_libdir}/pkgconfig/avahi-sharp.pc %{_libdir}/pkgconfig/avahi-ui-sharp.pc %{_prefix}/lib/monodoc/sources/*.* %{_prefix}/lib/mono/avahi-sharp %{_prefix}/lib/mono/gac/avahi-sharp %{_prefix}/lib/mono/avahi-ui-sharp %{_prefix}/lib/mono/gac/avahi-ui-sharp %else %files %defattr(-,root,root) %doc LICENSE docs/* %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/* %attr(-,avahi,avahi) %{_localstatedir}/run/avahi-daemon %doc %{_mandir}/man5/*.5* %doc %{_mandir}/man8/*.8* %{_sbindir}/avahi-* %{_sbindir}/rcavahi-daemon %{_sbindir}/rcavahi-dnsconfd %dir %{_sysconfdir}/avahi %config %{_sysconfdir}/avahi/avahi-daemon.conf %{_sysconfdir}/avahi/avahi-dnsconfd.action %{_sysconfdir}/avahi/avahi-autoipd.action %dir %{_sysconfdir}/avahi/services %{_sysconfdir}/avahi/services/*.service %{_sysconfdir}/avahi/hosts %{_sysconfdir}/dbus-1/system.d/*.conf %{_sysconfdir}/init.d/avahi-dnsconfd %{_sysconfdir}/init.d/avahi-daemon %files -n libavahi-client3 %defattr(-,root,root) %{_libdir}/libavahi-client*.so.* %files -n libavahi-common3 %defattr(-,root,root) %{_libdir}/libavahi-common*.so.* %files -n libavahi-core5 %defattr(-,root,root) %{_libdir}/libavahi-core*.so.* %files -n libavahi-ui0 %defattr(-,root,root) %{_libdir}/libavahi-ui*.so.* %files -n libavahi-glib1 %defattr(-,root,root) %{_bindir}/avahi-discover-standalone %{_libdir}/libavahi-glib*.so.* %files -n libavahi-qt3-1 %defattr(-,root,root) %{_libdir}/libavahi-qt3*.so.* %files -n libavahi-qt4-1 %defattr(-,root,root) %{_libdir}/libavahi-qt4*.so.* %files -n libdns_sd %defattr(-,root,root) # libdns_sd.so must be in non-devel package to provide mDNSResponder-lib compatibility: %{_libdir}/libdns_sd.so %{_libdir}/libdns_sd.so.* %files -n libhowl0 %defattr(-,root,root) %{_libdir}/libhowl.so.* %files utils %defattr(-,root,root) %{_bindir}/avahi-browse* %{_bindir}/avahi-publish* %{_bindir}/avahi-resolve* %{_bindir}/avahi-set-host-name %{_datadir}/avahi %{_datadir}/applications/bssh.desktop %{_datadir}/applications/bvnc.desktop %{_datadir}/pixmaps/gnome-nettool2.png %doc %{_mandir}/man1/avahi-browse*.1* %doc %{_mandir}/man1/avahi-publish*.1* %doc %{_mandir}/man1/avahi-resolve*.1* %doc %{_mandir}/man1/avahi-set-host-name.1* %files utils-gtk %defattr(-,root,root) %{_bindir}/bssh %{_bindir}/bvnc %doc %{_mandir}/man1/bssh.1.* %doc %{_mandir}/man1/bvnc.1.* %files -n python-avahi %defattr(-,root,root) %{py_sitedir}/avahi %{_bindir}/avahi-discover %{_bindir}/avahi-bookmarks %doc %{_mandir}/man1/avahi-bookmarks.1* %doc %{_mandir}/man1/avahi-discover.1* %{_datadir}/applications/avahi-discover.desktop %{_sbindir}/rcavahi-bookmarks %{_sysconfdir}/init.d/avahi-bookmarks %files -n libavahi-devel %defattr(-,root,root) # FIXME: Maybe split to particular subpackages. #%doc doc/api/html #%doc doc/*.html doc/*.txt doc/file-boilerplate.c doc/TODO %{_includedir}/avahi-client %{_includedir}/avahi-common %{_includedir}/avahi-core # avahi devel files %{_libdir}/libavahi-client.*a %{_libdir}/libavahi-client*.so %{_libdir}/libavahi-core.*a %{_libdir}/libavahi-core*.so %{_libdir}/libavahi-common*.so %{_libdir}/libavahi-common*.*a %{_libdir}/pkgconfig/avahi-client.pc %{_libdir}/pkgconfig/avahi-core.pc %files -n libavahi-glib-devel %defattr(-,root,root) %{_includedir}/avahi-glib %{_includedir}/avahi-ui %{_libdir}/libavahi-glib*.*a %{_libdir}/libavahi-glib*.so %{_libdir}/libavahi-ui*.*a %{_libdir}/libavahi-ui*.*so %{_libdir}/pkgconfig/avahi-glib.pc %{_libdir}/pkgconfig/avahi-ui.pc %files -n libavahi-qt3-devel %defattr(-,root,root) %{_includedir}/avahi-qt3 %{_libdir}/libavahi-qt3*.*a %{_libdir}/libavahi-qt3*.so %{_libdir}/pkgconfig/avahi-qt3.pc %files -n libavahi-qt4-devel %defattr(-,root,root) %{_includedir}/avahi-qt4 %{_libdir}/libavahi-qt4*.*a %{_libdir}/libavahi-qt4*.so %{_libdir}/pkgconfig/avahi-qt4.pc %files compat-mDNSResponder-devel %defattr(-,root,root) %{_includedir}/avahi-compat-libdns_sd %{_includedir}/dns_sd.h %{_libdir}/libdns_sd.*a %{_libdir}/pkgconfig/avahi-compat-libdns_sd.pc %files compat-howl-devel %defattr(-,root,root) %{_includedir}/avahi-compat-howl %{_libdir}/libhowl.so %{_libdir}/libhowl.*a %{_libdir}/pkgconfig/avahi-compat-howl.pc %{_libdir}/pkgconfig/howl.pc %endif %changelog * Sun Oct 21 2007 - coolo@suse.de - fix provides, obsoleting something another package provides creates a conflict between them * Tue Oct 09 2007 - sbrabec@suse.cz - Rename packages according to shared library naming policy. - Make devel packages binding specific to deliver correct dependencies (#193817). - Rename python package according to python package naming policy. - Prepend library devel packages names by "lib". - libavahi-ui moved to libavahi-glib to prevent depending of avahi core on libglade2. - Split commands line utilities and GTK+ UI utilities to separate packages to not force them for daemon or Qt binding users. * Wed Sep 05 2007 - maw@suse.de - Move %%{_datadir}/pixmaps/gnome-nettool2.png from the python subpackage to the base package (#299566). * Wed Sep 05 2007 - sbrabec@suse.cz - Start avahi by default (#298872). - Handle avahi-bookmarks daemon in scriptlets. * Tue Aug 07 2007 - maw@suse.de - But that macro is deprecated (http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Macros#3.28._.25run_ldconfig_.28deprecated.29) so replace it with /sbin/ldconfig. * Mon Aug 06 2007 - bk@suse.de - replace -p /usr/sbin/ldconfig with %%{run_ldconfig} * Mon Jul 30 2007 - aj@suse.de - Add gcc-c++ to BuildRequires. * Tue Jul 24 2007 - aj@suse.de - Resort spec file so that mDNSResponder is provided again. * Mon Jul 16 2007 - aj@suse.de - Fix spec file. * Mon Jul 16 2007 - aj@suse.de - Use extra spec file for avahi-mono to avoid build cycle avahi->gnome->mono->avahi. * Thu Jul 05 2007 - maw@suse.de - Build require gtk2-devel. * Thu Jul 05 2007 - maw@suse.de - Don't remove libavahi-common.la, because many things depend on it - Make avahi-mono require gtk-sharp2. - Update avahi-gacdir.patch, fixing the build on biarch platforms. * Thu Jul 05 2007 - maw@suse.de - Remove some extraneous comments in the .spec file. * Tue Jul 03 2007 - maw@suse.de - Update to version 0.6.20: + Various bug fixes and portability fixes + New features, including a new libavahi-ui library and tools to exploit it + A fix for a local DoS vulnerability (b.n.c #287123 and CVE-2007-3372) - Remove upstreamed patches: avahi-python-compile.patch and avahi-compat-libdns_sd-fixes.patch; rename avahi-discover-icon.patch to avahi-desktop.patch, and fix more .desktop files therein - Buildrequire gtk-sharp2. * Wed Jun 06 2007 - sbrabec@suse.cz - Removed invalid desktop Category "Application" (#254654). * Thu May 24 2007 - ro@suse.de - fix some rpmlint errors (call ldconfig in post scripts) * Tue Mar 27 2007 - crivera@suse.de - Improve libdns_sd compat support. This helps fix 214887. * Mon Mar 26 2007 - rguenther@suse.de - Add gdbm-devel and zlib-devel BuildRequires. * Tue Mar 13 2007 - crivera@suse.de - Rework the sub package split. There is a new package, avahi-python, that contains all of the Python utilities. This removes all Python dependencies from the base avahi package. This fixes 245390. * Fri Mar 09 2007 - crivera@suse.de - Install avahi.firewill in /etc/sysconfig/SuSEfirewall2.d/services instead of /usr/share/SuSEfirewall2/services. This allows avahi to build again. This also depends on the latest dbus-1-python submission being approved. * Tue Feb 27 2007 - crivera@suse.de - Remove netdev patch in favor of using the configure parameter instead. This also fixes a similar issue with the autoipd group and user. This fixes 237145. * Mon Feb 26 2007 - crivera@suse.de - Replace the non-existent "netdev" group with the "avahi" group in avahi-dbus.conf. This fixes 237145. - Remove Application, Utility, Network, and Settings categories from the .desktop file. This fixes 244464. * Wed Feb 21 2007 - sbrabec@suse.cz - Updated to a bugfix release 0.6.17: * Don't accept "localhost" as a local mDNS host name * Allow running avahi-bookmarks as CGI script * Improve libdns_sd compatibility * Stability: libdns_sd mutex locking order fix * Publish IPv6 addresses via IPv4 and vice versa * IA64 fixes * A lot of minor cleanups and fixes - Fixed python dependencies (#244457). - Fixed howl compatibility links (#244486). - Fixed python byte-compilation (#244458). - Added avahi-bookmarks init script. - Added SuSEfirewall2 rule. * Tue Feb 13 2007 - sbrabec@suse.cz - Do not build unusable static libraries (#238552#c17). * Wed Jan 31 2007 - ro@suse.de - removed gnome-nettool from BuildRequires (and Recommends) (causes a build-cycle) and use local copy of the icon * Fri Jan 26 2007 - ro@suse.de - add mono-devel to build requires to make mono-reqprov work * Wed Jan 24 2007 - sbrabec@suse.cz - Updated to version 0.6.16 (CVE-2006-5461, CVE-2006-6870): * Revert previous patch to check nlmsg_pid as it is bogus and breaks in many cases, notably when using NetworkManager. * Replace with new SO_PASSCRED-based check of the sending UID which seems to work better. * Handle some errors in libdns_sd more gracefully the way the real libdns_sd does * Apply fix for Linux 2.6.19+ where IFA_RTA / IFLA_RTA is no longer defined * Fix doxygen comments for avahi watch * Make d-bus version detection work for >= 1.0 * Dont dbus_connection_close on shared dbus connections * Fix potential endless loop in dns label unpacking code * Fix bogus assertion in client-publish-service.c example * Mild fix to some doxygen docs for avahi-common/address.h * Fix passing in custom priviledged group (previously ignored setting) * Check that netlink messages actually originate from the kernel and not another process. * Fix dbus_service_browser not setting AVAHI_LOOKUP_RESULT_OUR_OWN. * Sun Jan 21 2007 - dmueller@suse.de -compat-mDNSResponder-devel should require avahi-devel * Sat Jan 20 2007 - aj@suse.de - Fix avahi-sharp.pc file to use correct gcac location. - Add obsoletes and provides for mDNSResponder. * Thu Dec 14 2006 - sbrabec@suse.cz - Created init script symlinks in /usr/sbin (#228203). * Sun Nov 12 2006 - thoenig@suse.de - Update patch avahi-dbus-request-name-flags-fix-thoenig-02.patch: Be precise with regard to the minor version of D-Bus * Sun Nov 12 2006 - thoenig@suse.de - Add patch avahi-dbus-request-name-flags-fix-thoenig-01.patch: Fix flawed logic for flags passed to dbus_bus_request_name() * Mon Oct 30 2006 - sbrabec@suse.cz - Check the sender ID of netlink packets before using them (#216219). * Sun Oct 15 2006 - danw@suse.de - Remove dead patches * Mon Oct 09 2006 - sbrabec@suse.cz - Build in older products. - Enabled parallel build. * Fri Sep 22 2006 - aj@suse.de - Fix filelist for python upgrade. - Build everything with RPM_OPT_FLAGS. * Mon Sep 18 2006 - jhargadon@suse.de - update to version 0.6.14 - Add new daemon "avahi-autoipd" which is an implementation of IPv4LL as defined in RFC3927, a technology for assigning link-local IP addresses without DHCP server. The same functionality has been available on Windows under the name APIPA. While it is not the first implemenatation of this technology for Free operating systems it is clearly the most powerful and hopefully even the most secure. (Because it chroot()s and drops priviliges and suchlike) - Fix a segfault in the code handling static host name registrations - Add a few new entries to the service type database - s/D-?BUS/D-Bus/g - Documentation updates - Fix service type database building on Solaris - Make use of newer D-Bus APIs - Fix random seed initialization - Install SFTP static service file by default - Other minor code cleanups - removed upstreamed patches * Sun Sep 03 2006 - aj@suse.de - Follow package rename qt->libqt4. * Thu Aug 24 2006 - cthiel@suse.de - fix build * Wed Aug 16 2006 - cthiel@suse.de - buildrequire python-gtk-devel instead of python-gtk * Mon Aug 14 2006 - thoenig@suse.de - Add patch avahi-dbus-api-fix-thoenig-01.patch: Use dbus_connection_close, not dbus_connection_disconnect * Fri Aug 11 2006 - cthiel@suse.de - remove avahi-0.6.10-pygtk-hack.patch, since python-gtk has been fixed in the meantime * Sun Aug 06 2006 - cthiel@suse.de - fixed build by adding avahi-0.6.10-pygtk-hack.patch to hack around an unfavorable configure check * Mon Jul 03 2006 - schwab@suse.de - Fix quoting in configure script. - Fix invalid redefinition of docdir. * Mon May 15 2006 - sbrabec@suse.cz - Updated to version 0.6.10 (#137781). * Fix a buffer overflow in avahi-core * Refuse to process invalid UTF8 data * Automatically reconnect to the DBUS if we're kicked. (Works only if chroot() is disabled) * Don't hit an assert() in the client libs when the Avahi daemon is terminated * Enumerate all service types in the database in the Service Discovery Applet for Gnome * Improve the Bonjour compatibility layer to make it survive GnomeMeeting's broken usage * Deal properly with local non-ASCII hostnames * AMD64 and FreeBSD portability fixes * Filter double DNS server entries in avahi-dnsconfd * Fix a locking bug in avahi-sharp's EntryGroup.AddService() * Ported to Solaris (incomplete) * Add _airport._tcp to our service type database * Tue May 09 2006 - sbrabec@suse.cz - Fixed buffer overflow in avahi_record_to_string() (#137781#c7). * Mon Apr 24 2006 - sbrabec@suse.cz - Replaced Obsoletes by Conflicts for mDNSResponder* (#149676). * Wed Apr 19 2006 - jpr@suse.de - Fix compat layer ABI inconsistencies with mDNSResponder (part of [#149676]) * Wed Apr 05 2006 - sbrabec@suse.cz - Wait for daemon initialization in the init script (#150902). * Tue Apr 04 2006 - sbrabec@suse.cz - Use Provides and Obsoletes instead of Conflicts to allow seamless replacement. * Mon Mar 20 2006 - sbrabec@suse.cz - Call %%insserv_cleanup in %%postun. * Thu Feb 09 2006 - sbrabec@suse.cz - Provide libdns_sd.so RPM symbol, as mDNSResponder does. - Reduced BuildRequires. * Thu Feb 09 2006 - sbrabec@suse.cz - Fixed circular dependency between avahi and avahi-glib (avahi-discover moved to avahi-glib). * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Mon Jan 23 2006 - sbrabec@suse.cz - Updated to version 0.6.5. - Enable howl compatibility layer as separate packages. * Mon Jan 16 2006 - sbrabec@suse.cz - Updated to version 0.6.4. * Tue Dec 20 2005 - ro@suse.de - fix build with dbus-1 0.60 - added libxml2-python to nfb * Fri Dec 16 2005 - rml@suse.de - Move libdns_sd.so to avahi-compat-mDNSResponder from avahi-compat-mDNSResponder-devel (fix up requires/provides) * Fri Dec 02 2005 - sbrabec@suse.cz - Provide dns_sd.h compatibility symlink. * Fri Dec 02 2005 - sbrabec@suse.cz - Enable mDNSResponder compatibility layer as separate packages. * Fri Dec 02 2005 - sbrabec@suse.cz - Call aclocal to compile in PLUS. - Enabled qt4 bindings. - Fixed file ownership. - Disabled parallel build - mono fails often. * Thu Dec 01 2005 - sbrabec@suse.cz - Bi-arch fix. - Build as user. - Enabled parallel build. * Wed Nov 30 2005 - sbrabec@suse.cz - Updated to version 0.6.1. - Moved all devel files and Requires to devel subpackage. * Wed Oct 12 2005 - ro@suse.de - use gnome2-devel-packages in nfb and cleanup nfb - fix build of sharp part on x86_64 * Mon Oct 10 2005 - ro@suse.de - removed restart_on_update in postinstall (only needed in postuninstall) * Thu Oct 06 2005 - jpr@suse.de - Initial check in