2007-07-16 10:17:26 +02:00
#
2010-10-06 16:21:13 +02:00
# spec file for package avahi-mono (Version 0.6.28)
2007-07-16 10:17:26 +02:00
#
2010-05-02 03:19:21 +02:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-07-16 10:17:26 +02:00
#
2008-09-05 20:18:45 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2007-07-16 10:17:26 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-03-10 02:27:42 +01:00
2007-07-16 10:17:26 +02:00
Name : avahi-mono
2008-03-10 02:27:42 +01:00
# Do not edit this auto generated file! Edit avahi.spec.
2007-10-11 18:55:38 +02:00
%define _name avahi
2008-03-11 17:01:42 +01:00
# In automatic build systems you want to enable just one of following options.
2008-03-10 02:27:42 +01:00
# For build all at once, set all to 1.
2010-05-14 00:16:02 +02:00
# If you set build_core to 0, you cannot set more than one other option to 1.
2008-03-10 02:27:42 +01:00
%define build_core 0
2008-07-18 22:22:24 +02:00
# NOTE: build_glib2 also controls build of gobject, gtk2 and pygtk code.
%define build_glib2 0
2007-07-16 11:49:32 +02:00
%define build_mono 1
2008-03-10 02:27:42 +01:00
%define build_qt3 0
%define build_qt4 0
2010-10-06 16:21:13 +02:00
Version : 0.6.28
Release : 1
2008-07-18 22:22:24 +02:00
%if !%build_glib2 && !%build_mono && !%build_qt3 && !%build_qt4
2008-03-10 02:27:42 +01:00
# Create split spec files only when building per partes:
#%(sh %{_sourcedir}/%{_name}_spec-prepare.sh %{_sourcedir} %{name})
%endif
2007-10-11 18:55:38 +02:00
%define avahi_client_soname 3
%define avahi_common_soname 3
2010-09-11 11:40:14 +02:00
%define avahi_core_soname 7
2007-10-11 18:55:38 +02:00
%define avahi_ui_soname 0
%define avahi_glib_soname 1
2007-12-19 22:31:05 +01:00
%define avahi_gobject_soname 0
2007-10-11 18:55:38 +02:00
%define avahi_qt3_soname 1
%define avahi_qt4_soname 1
2008-08-04 01:11:11 +02:00
%if %build_glib2
2008-10-23 22:26:18 +02:00
%define debug_package_requires libavahi-ui%{avahi_ui_soname} = %{version}-%{release}
2008-08-04 01:11:11 +02:00
%endif
2007-10-11 18:55:38 +02:00
Url : http://www.avahi.org/
Group : Development/Languages/Mono
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-08-09 23:39:07 +02:00
Summary : Mono Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour
2007-10-11 18:55:38 +02:00
Source : %{_name}-%{version} .tar.bz2
2007-07-16 10:17:26 +02:00
Source1 : gnome-nettool2.png
Source2 : avahi-bookmarks.init
Source3 : avahi.firewall
2009-08-17 14:20:47 +02:00
Source100 : attributes
Source101 : update_spec.pl
2009-12-16 11:22:51 +01:00
Source102 : baselibs.conf
2008-07-18 22:22:24 +02:00
# Copy of glib-2.0.m4 from glib2-devel to not depend on glib2-devel.
Source4 : avahi-glib-gettext.m4
2007-12-19 22:31:05 +01:00
#PATCH-FIX-OPENSUSE avahi-gacdir.patch -- Mono libs are in $prefix/lib on suse
2007-07-16 10:17:26 +02:00
Patch0 : avahi-gacdir.patch
2007-12-19 22:31:05 +01:00
#PATCH-FIX-UPSTREAM avahi-desktop.patch bnc254654 sbrabec@suse.de
2007-07-16 10:17:26 +02:00
Patch1 : avahi-desktop.patch
2007-12-19 22:31:05 +01:00
#PATCH-FIX-UPSTREAM avahi-init-lsb.patch -- committed after 0.6.22 release upstream
2007-10-11 18:55:38 +02:00
Patch2 : avahi-init-lsb.patch
2007-12-19 22:31:05 +01:00
#PATCH-FIX-UPSTREAM avahi-empty-share-dir.patch jpr@novell.com -- mailed maintainer
Patch3 : avahi-empty-share-dir.patch
2010-10-14 09:49:34 +02:00
# PATCH-FIX-UPSTREAM avahi-init-dnsconfd-fix-status.patch vuntz@opensuse.org -- Report unused instead of dead for dnsconfd init script, sent upstream by mail
Patch4 : avahi-init-dnsconfd-fix-status.patch
2010-09-11 11:40:14 +02:00
# PATCH-FIX-UPSTREAM avahi-fix-howl.pc.patch vuntz@opensuse.org -- Fix howl.pc to be correctly generated, mailed upstream
Patch5 : avahi-fix-howl.pc.patch
2008-10-22 17:39:21 +02:00
#PATCH-FIX-OPENSUSE avahi-unicastdomains.patch bnc433359 lnussel@suse.de -- disable pre-set unicast domains by default
Patch10 : avahi-unicastdomains.patch
2007-07-16 10:17:26 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-05-02 03:19:21 +02:00
BuildRequires : dbus-1-python fdupes gcc-c++ gdbm-devel intltool libdaemon-devel libexpat-devel pkg-config translation-update-upstream
2008-07-18 22:22:24 +02:00
# Even if we are not building python bindings, we need python to build service types database:
BuildRequires : python-devel python-gdbm
2009-08-17 14:20:47 +02:00
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
2008-03-10 02:27:42 +01:00
%if %build_core
2008-07-18 22:22:24 +02:00
Source5 : %{_name}_spec-prepare.sh
2007-12-19 22:31:05 +01:00
PreReq : pwdutils
2010-09-29 09:03:15 +02:00
Recommends: %{_name}-lang
2008-07-18 22:22:24 +02:00
BuildRequires : dbus-1-devel doxygen graphviz python-gdbm zlib-devel
2010-05-14 00:16:02 +02:00
# For python bindings and utilities:
2008-07-18 22:22:24 +02:00
#BuildRequires: dbus-1-python
#Requires: dbus-1
2007-07-24 09:31:52 +02:00
Requires : nss-mdns
2009-01-14 17:46:55 +01:00
# bug437293
%ifarch ppc64
Obsoletes : mDNSResponder-64bit
%endif
#
2007-10-11 18:55:38 +02:00
# mDNSResponder was used for <= 10.2:
2007-07-24 09:31:52 +02:00
Provides : mDNSResponder = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder < 107.5
2008-03-10 02:27:42 +01:00
%endif
2008-07-18 22:22:24 +02:00
%if %build_glib2
2010-09-11 11:40:14 +02:00
BuildRequires : gobject-introspection-devel python-gtk-devel update-desktop-files
2008-07-18 22:22:24 +02:00
BuildRequires : libavahi-devel
%endif
2008-03-10 02:27:42 +01:00
%if %build_qt3
BuildRequires : qt3-devel
BuildRequires : libavahi-devel
%endif
%if %build_qt4
BuildRequires : libqt4-devel
BuildRequires : libavahi-devel
%endif
%if %build_mono
2010-09-11 11:40:14 +02:00
BuildRequires : gtk-sharp2 libavahi-glib-devel mono-devel monodoc-core
2008-03-10 02:27:42 +01:00
# Please copy this line to avahi-mono definition below for build all-in-once:
2007-10-11 18:55:38 +02:00
Requires : gtk-sharp2 libavahi-client3 >= %{version} libavahi-common3 >= %{version} libavahi-ui0 >= %{version} libavahi-glib1 >= %{version}
2007-07-24 09:31:52 +02:00
%endif
2007-07-16 10:17:26 +02:00
%description
2007-08-09 23:39:07 +02:00
This package provides Mono bindings for avahi. Avahi is an
implementation of the DNS Service Discovery and MulticastDNS
2007-07-16 10:17:26 +02:00
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
2007-08-09 23:39:07 +02:00
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, like correct mDNS reflection across LAN segments.
2007-07-16 10:17:26 +02:00
2008-03-10 02:27:42 +01:00
%if %build_core
2007-12-19 22:31:05 +01:00
2007-10-11 18:55:38 +02:00
%package -n libavahi-client3
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-10-25 02:45:48 +02:00
Summary : D-BUS Service for Zeroconf and Bonjour
Group : System/Libraries
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%description -n libavahi-client3
2007-10-25 02:45:48 +02:00
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.
2007-07-16 10:17:26 +02:00
2007-10-25 02:45:48 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%package -n libavahi-common3
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-10-25 02:45:48 +02:00
Summary : D-BUS Service for Zeroconf and Bonjour
Group : System/Libraries
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%description -n libavahi-common3
2007-10-25 02:45:48 +02:00
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.
2007-07-16 10:17:26 +02:00
2007-10-25 02:45:48 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-10-11 18:55:38 +02:00
2010-09-11 11:40:14 +02:00
%package -n libavahi-core7
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-10-25 02:45:48 +02:00
Summary : D-BUS Service for Zeroconf and Bonjour
Group : System/Libraries
2007-10-11 18:55:38 +02:00
2010-09-11 11:40:14 +02:00
%description -n libavahi-core7
2007-10-25 02:45:48 +02:00
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.
2007-10-11 18:55:38 +02:00
2007-10-25 02:45:48 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%package -n libdns_sd
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour
2007-10-25 02:45:48 +02:00
Group : System/Libraries
2008-07-18 22:22:24 +02:00
# mDNSResponder-lib used unversioned soname.
# Provide full compatibility with mDNSResponder (FIXME: should be fixed in the package):
%ifarch ia64 x86_64 ppc64 s390x
Provides : libdns_sd.so()(64bit)
%else
Provides : libdns_sd.so
%endif
2009-01-14 17:46:55 +01:00
# bug437293
%ifarch ppc64
Obsoletes : mDNSResponder-lib-64bit
%endif
#
2008-07-18 22:22:24 +02:00
# mDNSResponder-lib was used for <= 10.2:
Provides : mDNSResponder-lib = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder-lib < 107.5
2008-07-18 22:22:24 +02:00
# Old name used for <= 10.3:
Provides : avahi-compat-mDNSResponder = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-compat-mDNSResponder < %{version}
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%description -n libdns_sd
Apple mDNSResponder compatibility layer for avahi.
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
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.
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%package -n libhowl0
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2010-09-11 11:40:14 +02:00
Summary : Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour
2008-07-18 22:22:24 +02:00
Group : System/Libraries
2007-10-11 18:55:38 +02:00
# Old name used for <= 10.3:
2008-07-18 22:22:24 +02:00
Provides : avahi-compat-howl = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-compat-howl < %{version}
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%description -n libhowl0
2010-09-11 11:40:14 +02:00
Howl compatibility layer for avahi.
2007-10-11 18:55:38 +02:00
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.
2007-07-16 10:17:26 +02:00
2008-07-18 22:22:24 +02:00
%package -n python-avahi
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : A set of Avahi utilities written in Python
PreReq : coreutils
Requires : %{name} = %{version} python-gdbm dbus-1-python python-twisted python-twisted-web
Group : Development/Languages/Python
# Old name used for <= 10.3:
Provides : avahi-python = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-python < %{version}
2008-07-18 22:22:24 +02:00
%py_requires
2007-12-19 22:31:05 +01:00
2008-07-18 22:22:24 +02:00
%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.
%package utils
2010-05-02 03:19:21 +02:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : Command Line Utilities for D-BUS Service for Zeroconf and Bonjour
2008-08-02 01:23:16 +02:00
Requires : %{_name} >= %{version}
2008-07-18 22:22:24 +02:00
Group : Productivity/Networking/Other
%description utils
2007-12-19 22:31:05 +01:00
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.
2008-07-18 22:22:24 +02:00
%package -n libavahi-devel
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : Include Files and Libraries Mandatory for Development
#
2010-09-11 11:40:14 +02:00
Requires : %{_name} = %{version} libavahi-common3 = %{version} libavahi-core7 = %{version} libavahi-client3 = %{version} dbus-1-devel glibc-devel
2008-07-18 22:22:24 +02:00
Group : Development/Libraries/C and C++
# Last appeared in OpenSUSE 10.3:
Provides : avahi-devel = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-devel < %{version}
2008-07-18 22:22:24 +02:00
%description -n libavahi-devel
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.
%package compat-mDNSResponder-devel
2010-05-02 03:19:21 +02:00
License : LGPLv2.1+
2007-10-25 02:45:48 +02:00
Summary : mDNSResponder Compatibility Package for D-BUS Service for Zeroconf/Bonjour
2008-07-18 22:22:24 +02:00
Requires : libavahi-devel = %{version} libdns_sd = %{version}
Group : Development/Libraries/C and C++
Provides : mDNSResponder-devel = 107.5
2010-05-14 00:16:02 +02:00
Obsoletes : mDNSResponder-devel < 107.5
2007-07-16 10:17:26 +02:00
2008-07-18 22:22:24 +02:00
%description compat-mDNSResponder-devel
2007-07-16 10:17:26 +02:00
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.
2008-07-18 22:22:24 +02:00
%package compat-howl-devel
2010-05-02 03:19:21 +02:00
License : LGPLv2.1+
2010-09-11 11:40:14 +02:00
Summary : Howl Compatibility Package for D-BUS Service for Zeroconf/Bonjour
2008-07-18 22:22:24 +02:00
Requires : libavahi-devel = %{version} libhowl0 = %{version}
Group : Development/Libraries/C and C++
%description compat-howl-devel
2010-09-11 11:40:14 +02:00
Howl compatibility layer for avahi.
2008-07-18 22:22:24 +02:00
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.
%endif
%if %build_glib2
%package -n libavahi-ui0
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : D-BUS Service for Zeroconf and Bonjour
2007-10-25 02:45:48 +02:00
Group : System/Libraries
2008-07-18 22:22:24 +02:00
%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.
%package -n libavahi-glib1
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : Glib Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour
Group : System/GUI/GNOME
2007-10-11 18:55:38 +02:00
# Old name used for <= 10.3:
2008-07-18 22:22:24 +02:00
Provides : avahi-glib = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-glib < %{version}
2007-07-16 10:17:26 +02:00
2008-07-18 22:22:24 +02:00
%description -n libavahi-glib1
GLib support for avahi.
2007-07-16 10:17:26 +02:00
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.
2008-07-18 22:22:24 +02:00
%package -n libavahi-gobject0
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : D-BUS Service for Zeroconf and Bonjour
Group : System/Daemons
2007-07-16 10:17:26 +02:00
2008-07-18 22:22:24 +02:00
%description -n libavahi-gobject0
2007-10-11 18:55:38 +02:00
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.
2007-10-25 02:45:48 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-10-11 18:55:38 +02:00
2009-01-14 17:46:55 +01:00
%package -n avahi-utils-gtk
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-10-25 02:45:48 +02:00
Summary : GTK+ Utilities for D-BUS Service for Zeroconf and Bonjour
2008-08-02 01:23:16 +02:00
Requires : %{_name} >= %{version}
2007-10-25 02:45:48 +02:00
Group : Productivity/Networking/Other
2009-01-14 17:46:55 +01:00
# Due to a mistake in the spec file build staging, this package had
2008-12-16 15:41:07 +01:00
# name avahi-glib2-utils-gtk in 11.1 and SLE11 and avahi-utils-gtk in
2009-01-14 17:46:55 +01:00
# all other products.
2008-12-16 15:41:07 +01:00
Provides : avahi-glib2-utils-gtk = %{version}
Obsoletes : avahi-glib2-utils-gtk < %{version}
2007-10-11 18:55:38 +02:00
2009-01-14 17:46:55 +01:00
%description -n avahi-utils-gtk
2007-10-11 18:55:38 +02:00
Avahi is an implementation of the DNS Service Discovery and Multicast
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.
2007-10-25 02:45:48 +02:00
The Avahi mDNS responder is now complete with features, implementing
all MUSTs and the majority of the SHOULDs of the mDNS and DNS-SD RFCs.
It passes all tests in the Apple Bonjour conformance test suite. In
addition, it supports some nifty things, like correct mDNS reflection
across LAN segments.
2007-10-11 18:55:38 +02:00
2008-07-18 22:22:24 +02:00
%package -n python-avahi-gtk
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-07-18 22:22:24 +02:00
Summary : A set of Avahi utilities written in Python Using python-gtk
2007-12-19 22:31:05 +01:00
PreReq : coreutils
2008-07-18 22:22:24 +02:00
Requires : python-avahi = %{version} python-gtk
2007-10-25 02:45:48 +02:00
Group : Development/Languages/Python
2007-10-11 18:55:38 +02:00
# Old name used for <= 10.3:
Provides : avahi-python = %{version}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-python < %{version}
2008-07-18 22:22:24 +02:00
# Provide split-provides for update from <= 11.0:
Provides : python-avahi:%{_bindir} /avahi-bookmarks
2007-10-11 18:55:38 +02:00
%py_requires
2008-07-18 22:22:24 +02:00
%description -n python-avahi-gtk
2007-10-11 18:55:38 +02:00
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.
%package -n libavahi-glib-devel
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-10-11 18:55:38 +02:00
Summary : Include Files and Libraries Mandatory for Development
Requires : libavahi-devel = %{version} libavahi-ui0 = %{version} libavahi-glib1 = %{version} glib2-devel gtk2-devel
2007-10-25 02:45:48 +02:00
Group : Development/Libraries/C and C++
2007-10-11 18:55:38 +02:00
# Last appeared in OpenSUSE 10.3:
2008-07-18 22:22:24 +02:00
Provides : avahi-devel:%{_libdir} /libavahi-glib.so
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%description -n libavahi-glib-devel
2007-10-25 02:45:48 +02:00
GLib support for avahi.
2007-10-11 18:55:38 +02:00
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.
2007-12-19 22:31:05 +01:00
%package -n libavahi-gobject-devel
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2007-12-19 22:31:05 +01:00
Summary : D-BUS Service for Zeroconf and Bonjour
Requires : libavahi-devel = %{version} libavahi-glib-devel libavahi-gobject0 = %{version} glib2-devel
Group : System/Daemons
%description -n libavahi-gobject-devel
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.
2008-03-10 02:27:42 +01:00
%endif
%if %build_qt3
%package -n libavahi-qt3-1
2008-04-10 13:07:56 +02:00
2010-05-02 03:19:21 +02:00
2008-03-10 02:27:42 +01:00
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}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-qt3 < %{version}
2008-03-10 02:27:42 +01:00
%description -n libavahi-qt3-1
2007-10-25 02:45:48 +02:00
Qt3 bindings for avahi.
2007-07-16 10:17:26 +02:00
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.
2008-03-10 02:27:42 +01:00
%package -n libavahi-qt3-devel
2008-04-10 13:07:56 +02:00
2010-05-02 03:19:21 +02:00
2007-08-09 23:39:07 +02:00
Summary : Include Files and Libraries Mandatory for Development
2008-03-10 02:27:42 +01:00
Requires : libavahi-devel = %{version} libavahi-qt3-1 = %{version} qt3-devel
2007-10-25 02:45:48 +02:00
Group : Development/Libraries/C and C++
2007-10-11 18:55:38 +02:00
# Last appeared in OpenSUSE 10.3:
2008-03-10 02:27:42 +01:00
Provides : avahi-devel:%{_libdir} /libavahi-qt3.so
2007-10-11 18:55:38 +02:00
2008-03-10 02:27:42 +01:00
%description -n libavahi-qt3-devel
Qt3 bindings for avahi.
2007-10-25 02:45:48 +02:00
2007-10-11 18:55:38 +02:00
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.
2008-03-10 02:27:42 +01:00
%endif
%if %build_qt4
2007-10-11 18:55:38 +02:00
2008-03-10 02:27:42 +01:00
%package -n libavahi-qt4-1
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-03-10 02:27:42 +01:00
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}
2010-05-14 00:16:02 +02:00
Obsoletes : avahi-qt4 < %{version}
2008-03-10 02:27:42 +01:00
%description -n libavahi-qt4-1
Qt4 bindings for avahi.
2007-10-11 18:55:38 +02:00
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.
2008-03-10 02:27:42 +01:00
%package -n libavahi-qt4-devel
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-03-10 02:27:42 +01:00
Summary : Include Files and Libraries Mandatory for Development
Requires : libavahi-devel = %{version} libavahi-qt4-1 = %{version} libqt4-devel
2007-10-25 02:45:48 +02:00
Group : Development/Libraries/C and C++
2008-03-10 02:27:42 +01:00
# Last appeared in OpenSUSE 10.3:
Provides : avahi-devel:%{_libdir} /libavahi-qt4.so
2007-10-11 18:55:38 +02:00
2008-03-10 02:27:42 +01:00
%description -n libavahi-qt4-devel
Qt4 bindings for avahi.
2007-07-16 10:17:26 +02:00
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.
%endif
2008-03-11 17:01:42 +01:00
%if %build_core
2008-03-10 02:27:42 +01:00
%if %build_mono
%package -n avahi-mono
2009-12-18 12:40:58 +01:00
License : LGPLv2.1+
2008-03-10 02:27:42 +01:00
Summary : Mono Bindings for avahi, the D-BUS Service for Zeroconf and Bonjour
Requires : gtk-sharp2 libavahi-client3 >= %{version} libavahi-common3 >= %{version} libavahi-ui0 >= %{version} libavahi-glib1 >= %{version}
Group : Development/Languages/Mono
%description -n avahi-mono
This package provides Mono bindings for avahi. Avahi is an
implementation of the DNS Service Discovery and MulticastDNS
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, like correct mDNS reflection across LAN segments.
%endif
2007-12-19 22:31:05 +01:00
%lang_package
%endif
2007-07-16 10:17:26 +02:00
%prep
2007-10-11 18:55:38 +02:00
%setup -q -n %{_name}-%{version}
2010-05-02 03:19:21 +02:00
translation-update-upstream
2007-07-16 10:17:26 +02:00
%patch0
%patch1 -p1
2007-10-11 18:55:38 +02:00
%patch2
2007-12-19 22:31:05 +01:00
%patch3
2010-10-14 09:49:34 +02:00
%patch4 -p1
2010-09-11 11:40:14 +02:00
%patch5 -p1
2008-10-22 17:39:21 +02:00
%patch10 -p1
2008-03-10 02:27:42 +01:00
%if !%build_core
2008-07-18 22:22:24 +02:00
# Replace all .la references from local .la files to installed versions
# with exception of libavahi-glib.la.
2008-03-10 02:27:42 +01:00
# It allows to build only the binding subpackage.
2008-07-18 22:22:24 +02:00
%if %build_mono
2008-03-10 02:27:42 +01:00
sed -i 's:\(\.\.\|\$(top_builddir)\)/[^/]*/\(lib[^ ]*\.la\):%{_libdir}/\2:g' */Makefile.am
2008-07-18 22:22:24 +02:00
%else
sed -i 's:libavahi-glib\.la:@@SKIP LIBAVAHI GLIB@@:g
s:\(\.\.\|\$(top_builddir)\)/[^/]*/\(lib[^ ]*\.la\):%{_libdir} /\2:g
s:@@SKIP LIBAVAHI GLIB@@:libavahi-glib.la:g
' */Makefile.am
%endif
2008-03-10 02:27:42 +01:00
%endif
2008-07-18 22:22:24 +02:00
if ! test -f %{_datadir} /aclocal/glib-gettext.m4 ; then
cat %{S:4} >>acinclude.m4
fi
2007-07-16 10:17:26 +02:00
%build
2007-12-19 22:31:05 +01:00
autoreconf -f -i
2008-07-18 22:22:24 +02:00
intltoolize -f
2007-07-16 10:17:26 +02:00
%configure \
--libexecdir=%{_prefix} /lib\
--disable-static\
--with-distro=suse\
2010-09-11 11:40:14 +02:00
--with-systemdsystemunitdir=/lib/systemd/system\
2008-03-10 02:27:42 +01:00
%if %build_core
--enable-compat-libdns_sd\
--enable-compat-howl\
%else
2007-07-16 10:17:26 +02:00
--disable-compat-libdns_sd\
--disable-compat-howl\
2008-03-10 02:27:42 +01:00
%endif
2008-07-18 22:22:24 +02:00
%if %build_glib2
--enable-glib\
--enable-gobject\
--enable-gtk\
2010-09-11 11:40:14 +02:00
--disable-gtk3\
2008-07-18 22:22:24 +02:00
--enable-pygtk\
%else
--disable-glib\
--disable-gobject\
%if ! %build_mono
--disable-gtk\
%endif
2010-09-11 11:40:14 +02:00
--disable-gtk3\
2008-07-18 22:22:24 +02:00
--disable-pygtk\
%endif
2008-03-10 02:27:42 +01:00
%if %build_qt3
2008-07-18 22:22:24 +02:00
--enable-qt3\
2008-03-10 02:27:42 +01:00
%else
2008-07-18 22:22:24 +02:00
--disable-qt3\
2008-03-10 02:27:42 +01:00
%endif
%if %build_qt4
2008-07-18 22:22:24 +02:00
--enable-qt4\
2008-03-10 02:27:42 +01:00
%else
2008-07-18 22:22:24 +02:00
--disable-qt4\
2008-03-10 02:27:42 +01:00
%endif
%if %build_mono
2008-07-18 22:22:24 +02:00
--enable-mono\
--enable-gtk\
2008-03-10 02:27:42 +01:00
%else
2008-07-18 22:22:24 +02:00
--disable-mono\
2007-07-16 10:17:26 +02:00
%endif
--with-avahi-priv-access-group=avahi\
--with-autoipd-user=avahi\
--with-autoipd-group=avahi
2008-07-18 22:22:24 +02:00
%if %build_glib2 && !%build_core
for DIR in avahi-glib avahi-gobject avahi-ui avahi-discover-standalone avahi-python man ; do
cd $DIR
%__make %{?jobs:-j%jobs}
cd ..
done
%endif
2008-03-10 02:27:42 +01:00
%if %build_qt3 && !%build_core
cd avahi-qt
%endif
%if %build_qt4 && !%build_core
cd avahi-qt
%endif
%if %build_mono && !%build_core
cd avahi-sharp
%__make %{?jobs:-j%jobs}
cd ../avahi-ui-sharp
%endif
2007-12-19 22:31:05 +01:00
%__make %{?jobs:-j%jobs}
2007-07-16 10:17:26 +02:00
%install
2008-07-18 22:22:24 +02:00
%if %build_glib2 && !%build_core
for DIR in avahi-glib avahi-gobject avahi-ui avahi-discover-standalone avahi-python man ; do
cd $DIR
%makeinstall
cd ..
done
cd -
%endif
2008-03-10 02:27:42 +01:00
%if %build_qt3 && !%build_core
cd avahi-qt
%endif
%if %build_qt4 && !%build_core
cd avahi-qt
%endif
%if %build_mono && !%build_core
cd avahi-sharp
2007-12-19 22:31:05 +01:00
%makeinstall
2008-03-10 02:27:42 +01:00
cd ../avahi-ui-sharp
%endif
%makeinstall
%if !%build_core
cd ..
%__make %{?jobs:-j%jobs} install-pkgconfigDATA DESTDIR=$RPM_BUILD_ROOT
%endif
%if %build_core
2009-01-16 12:08:15 +01:00
# do not remove this unless you plan to fix _all_ the references to
# it. all (multiple) previous attempts have failed already
#rm $RPM_BUILD_ROOT%{_libdir}/libavahi-common.la
2007-07-16 10:17:26 +02:00
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
install -m 644 %{S:3} $RPM_BUILD_ROOT %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/avahi
2008-07-18 22:22:24 +02:00
ln -s %{_sysconfdir} /init.d/avahi-bookmarks $RPM_BUILD_ROOT %{_sbindir} /rcavahi-bookmarks
install -d $RPM_BUILD_ROOT %{_datadir} /pixmaps
install -m 644 %{S:1} $RPM_BUILD_ROOT %{_datadir} /pixmaps/gnome-nettool2.png
2008-12-16 15:41:07 +01:00
%if ! %build_glib2
# Note: This file is intentionally installed here. It is needed for avahi-utils-gtk and python-avahi-gtk:
install -d $RPM_BUILD_ROOT %{_datadir} /avahi/interfaces
2010-09-11 11:40:14 +02:00
install -m 644 avahi-discover-standalone/avahi-discover.ui $RPM_BUILD_ROOT %{_datadir} /avahi/interfaces
2008-12-16 15:41:07 +01:00
%endif
2007-12-19 22:31:05 +01:00
%find_lang %{name}
2008-03-10 02:27:42 +01:00
%else
2008-07-18 22:22:24 +02:00
# There is no simple way to not install core files. Remove them here.
2008-03-10 02:27:42 +01:00
# The rest is enabled/disabled in configure as needed.
rm $RPM_BUILD_ROOT %{_libdir} /pkgconfig/avahi-client.pc
rm $RPM_BUILD_ROOT %{_libdir} /pkgconfig/avahi-core.pc
2008-07-18 22:22:24 +02:00
%if %build_glib2
rm $RPM_BUILD_ROOT %{_bindir} /avahi-bookmarks
2009-08-17 14:20:47 +02:00
rm -r $RPM_BUILD_ROOT %{python_sitelib} /avahi
2008-07-18 22:22:24 +02:00
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-bookmarks.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-browse-domains.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-browse.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-publish-address.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-publish-service.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-publish.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-resolve-address.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-resolve-host-name.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-resolve.1*
rm $RPM_BUILD_ROOT %{_mandir} /man1/avahi-set-host-name.1*
rm $RPM_BUILD_ROOT %{_mandir} /man5/avahi-daemon.conf.5*
rm $RPM_BUILD_ROOT %{_mandir} /man5/avahi.hosts.5*
rm $RPM_BUILD_ROOT %{_mandir} /man5/avahi.service.5*
rm $RPM_BUILD_ROOT %{_mandir} /man8/avahi-autoipd.8*
rm $RPM_BUILD_ROOT %{_mandir} /man8/avahi-autoipd.action.8*
rm $RPM_BUILD_ROOT %{_mandir} /man8/avahi-daemon.8*
rm $RPM_BUILD_ROOT %{_mandir} /man8/avahi-dnsconfd.8*
rm $RPM_BUILD_ROOT %{_mandir} /man8/avahi-dnsconfd.action.8*
2008-12-16 15:41:07 +01:00
# Note: This file was intentionally moved to avahi. It is needed for avahi-utils-gtk and python-avahi-gtk:
2010-09-11 11:40:14 +02:00
rm $RPM_BUILD_ROOT %{_datadir} /avahi/interfaces/avahi-discover.ui
2008-12-16 15:41:07 +01:00
rmdir $RPM_BUILD_ROOT %{_datadir} /avahi/interfaces
rmdir $RPM_BUILD_ROOT %{_datadir} /avahi
2008-07-18 22:22:24 +02:00
%else
%if %build_mono
2008-03-10 02:27:42 +01:00
rm $RPM_BUILD_ROOT %{_libdir} /pkgconfig/avahi-ui.pc
2007-07-16 10:17:26 +02:00
%endif
2008-07-18 22:22:24 +02:00
%endif
%endif
%if %build_glib2
# 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
2009-02-06 21:58:55 +01:00
%suse_update_desktop_file bvnc
%suse_update_desktop_file bssh
2008-07-18 22:22:24 +02:00
%endif
2007-10-11 18:55:38 +02:00
%fdupes $RPM_BUILD_ROOT %{_libdir}
2007-07-16 10:17:26 +02:00
%clean
rm -rf $RPM_BUILD_ROOT
2008-03-10 02:27:42 +01:00
%if %build_core
2007-07-16 10:17:26 +02:00
%pre
%{_sbindir} /groupadd -r avahi 2> /dev/null || :
%{_sbindir} /useradd -r -o -s /bin/false -c " U s e r f o r A v a h i " -d %{_localstatedir} /run/avahi-daemon -g avahi avahi 2> /dev/null || :
2007-09-10 12:01:29 +02:00
%post
/sbin/ldconfig
2010-05-02 03:19:21 +02:00
%{fillup_and_insserv -f -y avahi-daemon}
2008-10-22 17:39:21 +02:00
%{fillup_and_insserv -f avahi-dnsconfd}
2007-09-10 12:01:29 +02:00
2007-07-16 10:17:26 +02:00
%preun
%{stop_on_removal avahi-daemon}
%{stop_on_removal avahi-dnsconfd}
%postun
2007-09-10 12:01:29 +02:00
/sbin/ldconfig
2007-07-16 10:17:26 +02:00
%{restart_on_update avahi-daemon}
%{restart_on_update avahi-dnsconfd}
2007-09-10 12:01:29 +02:00
%insserv_cleanup
2008-07-18 22:22:24 +02:00
%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
2010-09-11 11:40:14 +02:00
%post -n libavahi-core7 -p /sbin/ldconfig
2008-07-18 22:22:24 +02:00
2010-09-11 11:40:14 +02:00
%postun -n libavahi-core7 -p /sbin/ldconfig
2008-07-18 22:22:24 +02:00
%post -n libdns_sd -p /sbin/ldconfig
%postun -n libdns_sd -p /sbin/ldconfig
%post -n libhowl0 -p /sbin/ldconfig
%postun -n libhowl0 -p /sbin/ldconfig
2007-10-11 18:55:38 +02:00
%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 " $ Y A S T _ I S _ R U N N I N G " != " i n s t s y s " -a " $ D I S A B L E _ R E S T A R T _ O N _ U P D A T E " != 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!
2007-09-10 12:01:29 +02:00
%{stop_on_removal avahi-bookmarks}
%insserv_cleanup
2007-10-11 18:55:38 +02:00
%postun -n python-avahi
2007-09-10 12:01:29 +02:00
%{restart_on_update avahi-bookmarks}
2007-07-16 10:17:26 +02:00
%insserv_cleanup
2008-07-18 22:22:24 +02:00
%endif
%if %build_glib2
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%post -n libavahi-ui0 -p /sbin/ldconfig
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%postun -n libavahi-ui0 -p /sbin/ldconfig
2007-07-16 10:17:26 +02:00
2007-12-19 22:31:05 +01:00
%post -n libavahi-gobject0 -p /sbin/ldconfig
%postun -n libavahi-gobject0 -p /sbin/ldconfig
2007-10-11 18:55:38 +02:00
%post -n libavahi-glib1 -p /sbin/ldconfig
%postun -n libavahi-glib1 -p /sbin/ldconfig
2007-07-16 10:17:26 +02:00
%endif
2008-03-10 02:27:42 +01:00
%if %build_qt3
2007-07-16 10:17:26 +02:00
2008-03-10 02:27:42 +01:00
%post -n libavahi-qt3-1 -p /sbin/ldconfig
%postun -n libavahi-qt3-1 -p /sbin/ldconfig
%endif
%if %build_qt4
%post -n libavahi-qt4-1 -p /sbin/ldconfig
%postun -n libavahi-qt4-1 -p /sbin/ldconfig
%endif
%if %build_core
2007-07-16 10:17:26 +02:00
%files
%defattr (-,root,root)
%doc LICENSE docs/*
2008-07-18 22:22:24 +02:00
# Note: This file is intentionally packaged here. It is needed for avahi-utils-gtk and python-avahi-gtk:
%{_datadir} /pixmaps/gnome-nettool2.png
2010-05-14 00:16:02 +02:00
# avahi creates the directory itself, we do not package it
# since it might be on tmpfs
%attr (-,avahi,avahi) %ghost %{_localstatedir} /run/avahi-daemon
2007-07-16 10:17:26 +02:00
%doc %{_mandir} /man5/*.5*
%doc %{_mandir} /man8/*.8*
%{_sbindir} /avahi-*
%{_sbindir} /rcavahi-daemon
%{_sbindir} /rcavahi-dnsconfd
2008-07-18 22:22:24 +02:00
%{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/*
2007-07-16 10:17:26 +02:00
%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
2010-09-11 11:40:14 +02:00
%{_datadir} /dbus-1/system-services/org.freedesktop.Avahi.service
/lib/systemd/system/avahi-daemon.service
/lib/systemd/system/avahi-daemon.socket
/lib/systemd/system/avahi-dnsconfd.service
2008-12-16 15:41:07 +01:00
# Common file for avahi-utils-gtk and python-avahi-gtk:
%dir %{_datadir} /avahi/
%{_datadir} /avahi/interfaces
2007-12-19 22:31:05 +01:00
%files lang -f %{name}.lang
2008-07-18 22:22:24 +02:00
%defattr (-,root,root)
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%files -n libavahi-client3
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-client*.so.*
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%files -n libavahi-common3
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-common*.so.*
2007-10-11 18:55:38 +02:00
2010-09-11 11:40:14 +02:00
%files -n libavahi-core7
2007-10-11 18:55:38 +02:00
%defattr (-,root,root)
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-core*.so.*
2007-10-11 18:55:38 +02:00
%files -n libdns_sd
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
2007-10-11 18:55:38 +02:00
# libdns_sd.so must be in non-devel package to provide mDNSResponder-lib compatibility:
2007-07-16 10:17:26 +02:00
%{_libdir} /libdns_sd.so
%{_libdir} /libdns_sd.so.*
2007-10-11 18:55:38 +02:00
%files -n libhowl0
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
2007-10-11 18:55:38 +02:00
%{_libdir} /libhowl.so.*
2007-07-16 10:17:26 +02:00
2008-07-18 22:22:24 +02:00
%files -n python-avahi
%defattr (-,root,root)
%{_bindir} /avahi-bookmarks
%doc %{_mandir} /man1/avahi-bookmarks.1*
%{_sbindir} /rcavahi-bookmarks
%{_sysconfdir} /init.d/avahi-bookmarks
2010-09-11 11:40:14 +02:00
%dir %{python_sitelib} /avahi
%{python_sitelib} /avahi/__init__.py*
2009-08-17 14:20:47 +02:00
%{python_sitelib} /avahi/ServiceTypeDatabase.py
2008-07-18 22:22:24 +02:00
2007-10-11 18:55:38 +02:00
%files utils
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
2007-10-11 18:55:38 +02:00
%{_bindir} /avahi-browse*
%{_bindir} /avahi-publish*
%{_bindir} /avahi-resolve*
%{_bindir} /avahi-set-host-name
2007-12-19 22:31:05 +01:00
%dir %{_datadir} /avahi/
%{_datadir} /avahi/avahi-service.dtd
%dir %{_libdir} /avahi/
%{_libdir} /avahi/service-types.db
2007-10-11 18:55:38 +02:00
%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*
2007-07-16 10:17:26 +02:00
2007-10-11 18:55:38 +02:00
%files -n libavahi-devel
2007-07-16 10:17:26 +02:00
%defattr (-,root,root)
# FIXME: Maybe split to particular subpackages.
#%doc doc/api/html
#%doc doc/*.html doc/*.txt doc/file-boilerplate.c doc/TODO
2010-09-11 11:40:14 +02:00
%{_datadir} /dbus-1/interfaces/org.freedesktop.Avahi.*.xml
2007-07-16 10:17:26 +02:00
%{_includedir} /avahi-client
%{_includedir} /avahi-common
%{_includedir} /avahi-core
# avahi devel files
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-client.*a
%{_libdir} /libavahi-client*.so
%{_libdir} /libavahi-core.*a
%{_libdir} /libavahi-core*.so
%{_libdir} /libavahi-common*.so
2009-01-16 12:08:15 +01:00
# do not remove unless you fix the resulting problems
# reference is in libavahi-client.la
%{_libdir} /libavahi-common*.*a
2007-10-11 18:55:38 +02:00
%{_libdir} /pkgconfig/avahi-client.pc
%{_libdir} /pkgconfig/avahi-core.pc
2008-07-18 22:22:24 +02:00
%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
%if %build_glib2
%files -n libavahi-ui0
%defattr (-,root,root)
%{_libdir} /libavahi-ui*.so.*
%files -n libavahi-glib1
%defattr (-,root,root)
%{_libdir} /libavahi-glib*.so.*
%files -n libavahi-gobject0
%defattr (-,root,root)
%{_libdir} /libavahi-gobject*.so.*
2010-09-11 11:40:14 +02:00
%{_libdir} /girepository-1.0/Avahi-0.6.typelib
%{_libdir} /girepository-1.0/AvahiCore-0.6.typelib
2008-07-18 22:22:24 +02:00
%files -n python-avahi-gtk
%defattr (-,root,root)
%{_bindir} /avahi-discover
%{_datadir} /applications/avahi-discover.desktop
%doc %{_mandir} /man1/avahi-discover.1*
2009-08-17 14:20:47 +02:00
%{python_sitelib} /avahi_discover
2008-07-18 22:22:24 +02:00
2009-01-14 17:46:55 +01:00
%files -n avahi-utils-gtk
2008-07-18 22:22:24 +02:00
%defattr (-,root,root)
%{_bindir} /bshell
%{_bindir} /bssh
%{_bindir} /bvnc
%{_bindir} /avahi-discover-standalone
%{_datadir} /applications/bssh.desktop
%{_datadir} /applications/bvnc.desktop
%doc %{_mandir} /man1/bssh.1.*
%doc %{_mandir} /man1/bvnc.1.*
2007-10-11 18:55:38 +02:00
%files -n libavahi-glib-devel
%defattr (-,root,root)
%{_includedir} /avahi-glib
%{_includedir} /avahi-ui
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-glib*.*a
%{_libdir} /libavahi-glib*.so
%{_libdir} /libavahi-ui*.*a
%{_libdir} /libavahi-ui*.*so
2007-07-16 10:17:26 +02:00
%{_libdir} /pkgconfig/avahi-glib.pc
2007-10-11 18:55:38 +02:00
%{_libdir} /pkgconfig/avahi-ui.pc
2007-12-19 22:31:05 +01:00
%files -n libavahi-gobject-devel
%defattr (-,root,root)
%{_includedir} /avahi-gobject
%{_libdir} /libavahi-gobject*.*a
%{_libdir} /libavahi-gobject*.so
%{_libdir} /pkgconfig/avahi-gobject.pc
2010-09-11 11:40:14 +02:00
%{_datadir} /gir-1.0/*.gir
2008-03-10 02:27:42 +01:00
%endif
%if %build_qt3
2007-10-11 18:55:38 +02:00
%files -n libavahi-qt3-devel
%defattr (-,root,root)
%{_includedir} /avahi-qt3
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-qt3*.*a
%{_libdir} /libavahi-qt3*.so
2007-07-16 10:17:26 +02:00
%{_libdir} /pkgconfig/avahi-qt3.pc
2007-10-11 18:55:38 +02:00
2008-03-10 02:27:42 +01:00
%files -n libavahi-qt3-1
%defattr (-,root,root)
%{_libdir} /libavahi-qt3*.so.*
%endif
%if %build_qt4
2007-10-11 18:55:38 +02:00
%files -n libavahi-qt4-devel
%defattr (-,root,root)
%{_includedir} /avahi-qt4
2007-10-25 02:45:48 +02:00
%{_libdir} /libavahi-qt4*.*a
%{_libdir} /libavahi-qt4*.so
2007-07-16 10:17:26 +02:00
%{_libdir} /pkgconfig/avahi-qt4.pc
2008-03-10 02:27:42 +01:00
%files -n libavahi-qt4-1
2007-10-11 18:55:38 +02:00
%defattr (-,root,root)
2008-03-10 02:27:42 +01:00
%{_libdir} /libavahi-qt4*.so.*
%endif
%if %build_mono
%if %build_core
2007-10-11 18:55:38 +02:00
2008-03-10 02:27:42 +01:00
%files -n avahi-mono
%else
%files
%endif
2007-10-11 18:55:38 +02:00
%defattr (-,root,root)
2008-03-10 02:27:42 +01:00
%{_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
2007-10-11 18:55:38 +02:00
%endif
2007-12-19 22:31:05 +01:00
2007-07-16 10:17:26 +02:00
%changelog