# # spec file for package avahi (Version 0.6.14) # # Copyright (c) 2006 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 BuildRequires: dbus-1-devel dbus-1-python doxygen graphviz libdaemon-devel libglade2-devel monodoc-core python-devel python-gdbm qt3-devel %if %suse_version > 1010 BuildRequires: libqt4-devel python-gtk-devel %else BuildRequires: python-gtk qt-devel %endif Version: 0.6.14 Release: 36 URL: http://www.avahi.org/ Group: System/Daemons License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) Summary: D-BUS Service for Zeroconf and Bonjour Source: %{name}-%{version}.tar.bz2 Patch: avahi-gacdir.patch Patch1: avahi-0.6.11-security.patch Patch2: avahi-dbus-request-name-flags-fix-thoenig-02.patch Requires: dbus-1 python python-gdbm python-gtk Autoreqprov: on BuildRoot: %{_tmppath}/%{name}-%{version}-build %package glib Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on Group: Development/Libraries/Other %package mono Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on Group: Development/Libraries/Other %package qt3 Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on Group: Development/Libraries/Other %package qt4 Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on Group: Development/Libraries/Other %package compat-mDNSResponder Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on %ifarch ia64 x86_64 ppc64 s390x Provides: libdns_sd.so()(64bit) %else Provides: libdns_sd.so %endif Group: System/Daemons Conflicts: mDNSResponder-lib %package compat-mDNSResponder-devel Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} %{name}-compat-mDNSResponder = %{version} Autoreqprov: on Group: System/Daemons Conflicts: mDNSResponder-devel %package compat-howl Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} Autoreqprov: on Group: System/Daemons Provides: howl Obsoletes: howl %package compat-howl-devel Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} %{name}-compat-howl = %{version} Autoreqprov: on Group: System/Daemons Provides: howl-devel Obsoletes: howl-devel %package devel Summary: D-BUS Service for Zeroconf/Bonjour Requires: %{name} = %{version} dbus-1-devel glibc-devel glib2-devel # NOTE: Adding these will cause large dependencies, 2/3 of the are not # needed in most cases. Most users of bindings will already require is # implicitly. So it's better not to be absolutely correct. # skip-check-libtool-deps #Requires: qt3-devel glib2-devel libqt4-devel Autoreqprov: on Group: Development/Libraries/Other %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 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 %description mono Mono 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 %description glib 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 %description qt3 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 %description qt4 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 %description compat-mDNSResponder 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 %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 %description compat-howl 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 %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 %description 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 %prep %setup %patch %patch1 -p1 %patch2 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" aclocal -I common automake autoconf ./configure\ --with-distro=suse\ --prefix=/usr\ --sysconfdir=/etc\ --localstatedir="%{_localstatedir}"\ --libdir=/usr/%{_lib}\ --mandir=%{_mandir}\ --enable-qt3\ --enable-qt4\ --enable-mono\ --enable-python\ --enable-pygtk\ --enable-compat-libdns_sd\ --enable-compat-howl make %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT install install -d %{buildroot}/%{_localstatedir}/run/avahi-daemon rm $RPM_BUILD_ROOT/usr/share/applications/*.desktop ( cd $RPM_BUILD_ROOT%{_includedir} ; ln -s avahi-compat-libdns_sd/dns_sd.h . ) ( cd $RPM_BUILD_ROOT%{_includedir} ; ln -s avahi-compat-howl/howl.h . ) sed -e "s,$RPM_BUILD_DIR,/," $RPM_BUILD_ROOT%{_libdir}/libavahi-qt4.la > $RPM_BUILD_ROOT%{_libdir}/libavahi-qt4.la.1 mv $RPM_BUILD_ROOT%{_libdir}/libavahi-qt4.la.1 $RPM_BUILD_ROOT%{_libdir}/libavahi-qt4.la mkdir -p $RPM_BUILD_ROOT%{_sbindir} ln -sf /etc/init.d/avahi-daemon $RPM_BUILD_ROOT%{_sbindir}/rcavahi-daemon ln -sf /etc/init.d/avahi-dnsconfd $RPM_BUILD_ROOT%{_sbindir}/rcavahi-dnsconfd %clean rm -rf $RPM_BUILD_ROOT %pre /usr/sbin/groupadd -r avahi 2> /dev/null || : /usr/sbin/useradd -r -o -s /bin/false -c "User for Avahi" -d /var/run/avahi-daemon -g avahi avahi 2> /dev/null || : %preun %{stop_on_removal avahi-daemon} %{stop_on_removal avahi-dnsconfd} %post %{run_ldconfig} %postun %{restart_on_update avahi-daemon} %{restart_on_update avahi-dnsconfd} %{run_ldconfig} %insserv_cleanup %files %defattr(-,root,root) %doc LICENSE docs/* %dir %{_sysconfdir}/avahi %dir %{_sysconfdir}/avahi/services %dir %{_datadir}/avahi %dir %{_datadir}/avahi/interfaces %dir %{_datadir}/avahi/introspection %dir %{py_sitedir}/avahi %{_sysconfdir}/init.d/avahi-daemon %{_sysconfdir}/init.d/avahi-dnsconfd %config %{_sysconfdir}/avahi/avahi-daemon.conf %{_sysconfdir}/avahi/avahi-dnsconfd.action %{_sysconfdir}/avahi/avahi-autoipd.action %{_sysconfdir}/avahi/services/*.service %{_sysconfdir}/avahi/hosts %{_sbindir}/avahi-daemon %{_sbindir}/avahi-dnsconfd %{_sbindir}/avahi-autoipd %{_sbindir}/rcavahi-daemon %{_sbindir}/rcavahi-dnsconfd %{_sysconfdir}/dbus-1/system.d/*.conf %{_bindir}/avahi-[bpr]* %{_bindir}/avahi-set-host-name %{_libdir}/*avahi-client*.so.* %{_libdir}/*avahi-common*.so.* %{_libdir}/*avahi-core*.so.* %{py_sitedir}/avahi/* %{_datadir}/avahi/*.dtd %{_datadir}/avahi/service-types.db %{_datadir}/avahi/service-types %{_datadir}/avahi/interfaces/*.glade %{_datadir}/avahi/introspection/*.introspect %{_mandir}/man5/* %{_mandir}/man8/* %{_mandir}/man1/* %attr(-,avahi,avahi) %{_localstatedir}/run/avahi-daemon %files glib %defattr(-,root,root) %{_libdir}/*avahi-glib*.so.* %{_bindir}/avahi-discover* %files mono %defattr(-,root,root) %{_prefix}/lib/mono/avahi-sharp %{_prefix}/lib/mono/gac/avahi-sharp %{_libdir}/pkgconfig/avahi-sharp.pc %{_prefix}/lib/monodoc/sources/*.* %files qt3 %defattr(-,root,root) %{_libdir}/*avahi-qt3*.so.* %files qt4 %defattr(-,root,root) %{_libdir}/*avahi-qt4*.so.* %files compat-mDNSResponder %defattr(-,root,root) # mDNSResponder uses libdns_sd.so, we need .so here. %{_libdir}/libdns_sd.so* %files compat-mDNSResponder-devel %defattr(-,root,root) %{_libdir}/libdns_sd.*a %{_includedir}/avahi-compat-libdns_sd %{_includedir}/dns_sd.h %{_libdir}/pkgconfig/avahi-compat-libdns_sd.pc %files compat-howl %defattr(-,root,root) %{_libdir}/libhowl.so* %files compat-howl-devel %defattr(-,root,root) %{_libdir}/libhowl.*a %{_includedir}/avahi-compat-howl %{_includedir}/howl.h %{_libdir}/pkgconfig/avahi-compat-howl.pc %files devel %defattr(-,root,root) #%doc doc/api/html #%doc doc/*.html doc/*.txt doc/file-boilerplate.c doc/TODO %{_includedir}/avahi-client %{_includedir}/avahi-common %{_includedir}/avahi-glib %{_includedir}/avahi-core %{_includedir}/avahi-qt3 %{_includedir}/avahi-qt4 # avahi devel files %{_libdir}/*avahi-client.*a %{_libdir}/*avahi-client*.so %{_libdir}/*avahi-core.*a %{_libdir}/*avahi-core*.so %{_libdir}/*avahi-common.*a %{_libdir}/*avahi-common*.so %{_libdir}/*avahi-glib*.*a %{_libdir}/*avahi-glib*.so %{_libdir}/*avahi-qt3*.*a %{_libdir}/*avahi-qt3*.so %{_libdir}/*avahi-qt4*.*a %{_libdir}/*avahi-qt4*.so %{_libdir}/pkgconfig/avahi-client.pc %{_libdir}/pkgconfig/avahi-core.pc %{_libdir}/pkgconfig/avahi-glib.pc %{_libdir}/pkgconfig/avahi-qt3.pc %{_libdir}/pkgconfig/avahi-qt4.pc %changelog -n avahi * 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