Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37552845
en ru br
ALT Linux repositórios
S:0.8-alt2
5.0: 0.6.24-alt2
4.1: 0.6.22-alt6.M41.2
4.0: 0.6.21-alt0.M40.1
3.0:
+backports:0.6.18-alt0.2.M30

Group :: Sistema/Servidores
RPM: avahi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_with mdns
%def_with python
%def_with mono

%ifndef _qt3dir
%define _qt3dir %_libdir/qt3
%endif

%define avahi_user _avahi
%define autoipd_user _autoipd
%define avahi_group_priv netadmin

Name: avahi
Version: 0.6.24
Release: alt2

Summary: Local network service discovery
License: LGPL
Group: System/Servers
Url: http://www.avahi.org/

Source: %name-%version-%release.tar

Requires: %name-autoipd = %version-%release
Requires: %name-daemon = %version-%release
Requires: %name-dnsconfd = %version-%release

%if_with mdns
Obsoletes: mdnsresponder
%endif

BuildPreReq: /proc
BuildRequires: doxygen gcc-c++ glib2-devel graphviz intltool libcap-devel libdaemon-devel >= 0.13-alt2
BuildRequires: libdbus-devel libexpat-devel libgdbm-devel libglade2-devel libgtk+2-devel libqt3-devel libqt4-devel xmltoman
%{?_with_python:BuildRequires: python-devel python-module-pygtk python-module-dbus}
%{?_with_mono:BuildRequires: libgtk-sharp2-devel mono-mcs monodoc rpm-build-mono >= 1.3.2-alt2}

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

%package autoipd
Summary: Assigning link-local IP addresses service
Group: System/Servers
Requires(pre): shadow-utils
Conflicts: lib%name > %version-%release
Conflicts: lib%name < %version-%release

%package daemon
Summary: Local network service discovery
Group: System/Servers
Requires(pre): shadow-utils
Requires: chrooted-resolv dbus lib%name = %version-%release
Requires(post): %post_service dbus-tools
Requires(preun): %preun_service

%package dnsconfd
Summary: DNS configuration aquiring service
Group: System/Servers
Requires: lib%name = %version-%release %name-daemon = %version-%release

%package -n lib%name
Summary: Libraries for avahi
Group: System/Libraries

%if_with mdns
Obsoletes: libmdnsresponder
Provides: libmdnsresponder
%endif

%package -n lib%name-devel
Summary: Libraries and header files for avahi development
Group: Development/C
Requires: lib%name = %version-%release

%if_with mdns
Obsoletes: libmdnsresponder-devel
%endif

%package -n lib%name-glib
Summary: Glib libraries for avahi
Group: System/Libraries
Requires: lib%name = %version-%release

%package -n lib%name-glib-devel
Summary: Libraries and header files for avahi glib development
Group: Development/C
Requires: lib%name-devel = %version-%release
Requires: lib%name-glib = %version-%release
Requires: glib2-devel

%package -n lib%name-gobject
Summary: GObject'ified version of avahi API
Group: System/Libraries
Requires: lib%name = %version-%release
Requires: lib%name-glib = %version-%release

%package -n lib%name-gobject-devel
Summary: Libraries and header files for avahi gobject development
Group: Development/C
Requires: lib%name-devel = %version-%release
Requires: lib%name-glib-devel = %version-%release
Requires: lib%name-gobject = %version-%release

%package -n lib%name-qt3
Summary: Qt3 libraries for avahi
Group: System/Libraries
Requires: lib%name = %version-%release

%package -n lib%name-qt3-devel
Summary: Libraries and header files for avahi Qt3 development
Group: Development/KDE and QT
Requires: lib%name-devel = %version-%release
Requires: lib%name-qt3 = %version
Requires: libqt3-devel

%package -n lib%name-qt4
Summary: Qt4 libraries for avahi
Group: System/Libraries
Requires: lib%name = %version-%release

%package -n lib%name-qt4-devel
Summary: Libraries and header files for avahi Qt4 development
Group: Development/KDE and QT
Requires: lib%name-devel = %version-%release
Requires: lib%name-qt4 = %version
Requires: libqt4-devel

%package -n lib%name-ui
Summary: UI libraries for avahi
Group: System/Libraries
Requires: lib%name = %version-%release
Requires: lib%name-glib = %version-%release

%package -n lib%name-ui-devel
Summary: Libraries and header files for avahi UI development
Group: Development/GNOME and GTK+
Requires: lib%name-devel = %version-%release
Requires: lib%name-glib-devel = %version-%release
Requires: lib%name-ui = %version-%release

%package -n lib%name-sharp
Summary: Mono bindings for avahi
Group: Development/Other
Requires: lib%name = %version-%release

%package -n lib%name-sharp-doc
Summary: Mono bindings for avahi -- monodoc
Group: Development/Other
Requires: lib%name-sharp = %version-%release

%package -n lib%name-ui-sharp
Summary: GTK/Sharp bindings for avahi
Group: Development/Other
Requires: lib%name-ui = %version-%release

%package -n lib%name-ui-sharp-doc
Summary: GTK/Sharp bindings for avahi -- monodoc
Group: Development/Other
Requires: lib%name-ui-sharp = %version-%release

%package -n python-module-%name
Summary: Python bindings for Avahi
Group: Development/Python

%package bookmarks
Summary: Web service showing mDNS/DNS-SD announced HTTP services using the Avahi
Group: Networking/WWW
# still needed. that sucks
%py_requires avahi gobject dbus twisted twisted.internet
# p-m-t-w doesn't provide twisted.web. that sucks too
Requires: python-module-twisted-web

%package tools
Summary: Tools for mDNS browsing and publishing
Group: System/Base
Requires: lib%name = %version-%release

%package ui
Summary: UI tools for mDNS discovery
Group: Graphical desktop/Other
Requires: %name-daemon = %version-%release
%py_requires avahi gtk gobject dbus libglade

# {{{ descriptions


%description autoipd
avahi-autoipd 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)

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

This package provides avahi daemon.

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

This package provides complementary DNS tracking service.

%description -n lib%name
Libraries for use of avahi.

%description -n lib%name-devel
Header files and libraries necessary for developing
programs using avahi.

%description -n lib%name-glib
Libraries for easy use of avahi from glib applications.

%description -n lib%name-glib-devel
Header files and libraries necessary for developing
programs using avahi with glib.

%description -n lib%name-gobject
GObject'ified version of avahi API

%description -n lib%name-gobject-devel
Header files and libraries necessary for developing
programs using avahi with GObject/glib.

%description -n lib%name-qt3
Libraries for easy use of avahi from Qt3 applications.

%description -n lib%name-qt3-devel
Header files and libraries necessary for developing
programs using avahi with Qt3.

%description -n lib%name-qt4
Libraries for easy use of avahi from Qt4 applications.

%description -n lib%name-qt4-devel
Header files and libraries necessary for developing
programs using avahi with Qt4.

%description -n lib%name-ui
Libraries for easy use of avahi from UI applications.

%description -n lib%name-ui-devel
Header files and libraries necessary for developing
programs using avahi with UI.

%description bookmarks
A web service for listing HTTP services that are announced via mDNS/DNS-SD
using the Avahi daemon. %name opens a TCP socket on port 8080 and waits for
incoming HTTP connections returning a dynamic web site containing links
to all services of type _http._tcp on the LAN.
Point your browser to http://localhost:8080/ to make use of avahi-bookmarks.

%description tools
command-line utilitiesthat use avahi to browse and publish mDNS services and hosts.

%description ui
Various UI tools that use avahi to discover and use mDNS services and hosts.

%description -n lib%name-sharp
Mono bindings for Avahi.

%description -n lib%name-sharp-doc
Mono bindings for Avahi -- monodoc

%description -n lib%name-ui-sharp
GTK/Sharp bindings for Avahi.

%description -n lib%name-ui-sharp-doc
GTK/Sharp bindings for Avahi -- monodoc

%description -n python-module-%name
Python bindings for Avahi.

# }}}


%prep
%setup
touch config.rpath

%build
%autoreconf
%configure \
   --localstatedir=%_var \
   --with-distro=altlinux \
   --enable-core-docs \
%if_with mono
   --enable-mono \
   --enable-monodoc \
%else
   --disable-mono \
   --disable-monodoc \
%endif
   --disable-compat-howl \
   --disable-static \
%if_with python
   --enable-python \
   --enable-pygtk \
   --enable-python-dbus \
%else
   --disable-python \
   --disable-pygtk \
   --disable-python-dbus \
%endif
%if_with mdns
   --enable-compat-libdns_sd \
%endif
   --with-avahi-user=%avahi_user \
   --with-avahi-group=%avahi_user \
   --with-avahi-priv-access-group=%avahi_group_priv \
   --with-autoipd-user=%autoipd_user \
   --with-autoipd-group=%autoipd_user

%make_build

%install
%make_install DESTDIR=%buildroot \
   pythondir=%python_sitelibdir \
   pyexecdir=%python_sitelibdir \
   install

mkdir -p %buildroot%_var/resolv/var/avahi \
   %buildroot%_var/run/avahi-daemon \
   %buildroot%_localstatedir/autoipd \
   %buildroot%_var/run/autoipd

ln -s resolv/var/avahi %buildroot%_var/avahi

find %buildroot%_libdir -name '*.la' -delete
%find_lang %name

%pre autoipd
/usr/sbin/groupadd -r -f %autoipd_user &>/dev/null ||:
/usr/sbin/useradd -r -g %autoipd_user -d %_localstatedir/autoipd -s /dev/null \
   -c "Avahi autoipd service" -M -n %autoipd_user &>/dev/null ||:

%pre daemon
/usr/sbin/groupadd -r -f %avahi_user &>/dev/null ||:
/usr/sbin/useradd -r -g %avahi_user -d %_var/run/avahi-daemon -s /dev/null \
   -c "Avahi service" -M -n %avahi_user &>/dev/null ||:

%post daemon
%post_service avahi-daemon
/sbin/service avahi-dnsconfd condrestart 2>/dev/null ||:
if /sbin/service messagebus status &>/dev/null; then
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig &>/dev/null ||:
else
echo "Avahi requires running messagebus service." >&2
fi

%preun daemon
%preun_service avahi-daemon

%files

%files daemon
%doc docs/* specs

%_initdir/avahi-daemon

%dir %_sysconfdir/avahi

%config %_sysconfdir/avahi/hosts

%config(noreplace) %_sysconfdir/avahi/avahi-daemon.conf

%dir %_sysconfdir/avahi/services
%config %_sysconfdir/avahi/services/ssh.service
%exclude %_sysconfdir/avahi/services/sftp-ssh.service

%config %_sysconfdir/dbus-1/system.d/avahi-dbus.conf

%_sbindir/avahi-daemon

%_datadir/avahi/*
%exclude %_datadir/avahi/interfaces

%_man5dir/*
%_man8dir/avahi-daemon.*

%_var/avahi
%attr(0771, root, _avahi) %dir /var/resolv/var/avahi
%attr(0770, root, _avahi) %dir %_var/run/avahi-daemon

%files autoipd
%dir %_sysconfdir/avahi
%config(noreplace) %_sysconfdir/avahi/avahi-autoipd.action
%_sbindir/avahi-autoipd
%_man8dir/avahi-autoipd.*
%attr(0770, root, %autoipd_user) %dir %_localstatedir/autoipd
%attr(0770, root, %autoipd_user) %dir %_var/run/autoipd

%files dnsconfd
%_initdir/avahi-dnsconfd
%config(noreplace) %_sysconfdir/avahi/avahi-dnsconfd.action
%_sbindir/avahi-dnsconfd
%_man8dir/avahi-dnsconfd.*

%files -n lib%name -f %name.lang
%_libdir/libavahi-common.so.*
%_libdir/libavahi-core.so.*
%_libdir/libavahi-client.so.*

%if_with mdns
%_libdir/libdns_sd.so.*
%endif

%dir %_datadir/avahi
%dir %_datadir/avahi/interfaces

%dir %_libdir/avahi
%_libdir/avahi/service-types.db

%if_with python
%files bookmarks
%_bindir/avahi-bookmarks
%_man1dir/avahi-bookmarks.*
%endif # python

%files tools
%_bindir/avahi-browse*
%_bindir/avahi-publish*
%_bindir/avahi-resolve*
%_bindir/avahi-set-host-name

%_man1dir/avahi-browse*
%_man1dir/avahi-publish*
%_man1dir/avahi-resolve*
%_man1dir/avahi-set-host-name.*

%if_with python
%files ui
%_bindir/bshell
%_bindir/bssh
%_bindir/bvnc
%_bindir/avahi-discover
%_bindir/avahi-discover-standalone

%_datadir/avahi/interfaces/avahi-discover.glade
%_desktopdir/avahi-discover.desktop
%_desktopdir/bssh.desktop
%_desktopdir/bvnc.desktop

%python_sitelibdir/avahi_discover

%_man1dir/bssh.*
%_man1dir/bvnc.*
%_man1dir/avahi-discover.*
%endif #python

%files -n lib%name-devel
%_libdir/libavahi-common.so
%_libdir/libavahi-core.so
%_libdir/libavahi-client.so

%if_with mdns
%_libdir/libdns_sd.so
%endif

%_includedir/avahi-client
%_includedir/avahi-common
%_includedir/avahi-core

%if_with mdns
%_includedir/avahi-compat-libdns_sd
%endif

%_pkgconfigdir/avahi-core.pc
%_pkgconfigdir/avahi-client.pc

%if_with mdns
%_pkgconfigdir/avahi-compat-libdns_sd.pc
%endif

%files -n lib%name-glib
%_libdir/libavahi-glib.so.*

%files -n lib%name-glib-devel
%_libdir/libavahi-glib.so
%_includedir/avahi-glib
%_pkgconfigdir/avahi-glib.pc

%files -n lib%name-gobject
%_libdir/libavahi-gobject.so.*

%files -n lib%name-gobject-devel
%_libdir/libavahi-gobject.so
%_includedir/avahi-gobject
%_pkgconfigdir/avahi-gobject.pc

%files -n lib%name-qt3
%_libdir/libavahi-qt3.so.*

%files -n lib%name-qt3-devel
%_libdir/libavahi-qt3.so
%_pkgconfigdir/avahi-qt3.pc
%_includedir/avahi-qt3

%files -n lib%name-qt4
%_libdir/libavahi-qt4.so.*

%files -n lib%name-qt4-devel
%_libdir/libavahi-qt4.so
%_pkgconfigdir/avahi-qt4.pc
%_includedir/avahi-qt4

%files -n lib%name-ui
%_libdir/libavahi-ui.so.*

%files -n lib%name-ui-devel
%_libdir/libavahi-ui.so
%_pkgconfigdir/avahi-ui.pc
%_includedir/avahi-ui

%if_with mono
%files -n lib%name-sharp
%_monodir/avahi-sharp/avahi-sharp.dll
%_monogacdir/avahi-sharp
%_pkgconfigdir/avahi-sharp.pc

%files -n lib%name-sharp-doc
%_monodocdir/avahi-sharp-docs.*

%files -n lib%name-ui-sharp
%_monodir/avahi-ui-sharp/avahi-ui-sharp.dll
%_monogacdir/avahi-ui-sharp
%_pkgconfigdir/avahi-ui-sharp.pc

%files -n lib%name-ui-sharp-doc
%_monodocdir/avahi-ui-sharp-docs.*
%endif # mono

%if_with python
%files -n python-module-%name
%python_sitelibdir/%name
%endif    

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009