avahi.spec revision 11389
10139N/A#
10139N/A# spec file for package avahi
10139N/A#
10139N/A# Copyright (c) 2006 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/AName: avahi
10139N/ALicense: Other
10139N/AGroup: System/Libraries
10139N/AVersion: 0.6.21
10139N/ARelease: 1
10890N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: System which facilitiates service disconvery on a local network.
10139N/ASource: http://www.avahi.org/download/%{name}-%{version}.tar.gz
10139N/A# date:2007-06-12 owner:padraig type:feature
10890N/APatch1: avahi-01-config-bonjour.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch2: avahi-02-browse-service.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch3: avahi-03-entry.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch4: avahi-04-internal.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch5: avahi-05-resolve-service.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch6: avahi-06-server.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch7: avahi-07-daemon.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch8: avahi-08-man-page.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch9: avahi-09-resolve-host-name.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch10: avahi-10-resolve-address.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch11: avahi-11-browse-domain.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch12: avahi-12-browse.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
10139N/APatch13: avahi-13-remove-debug-trap.diff
10139N/A# date:2007-09-21 owner:padraig type:feature
10139N/APatch14: avahi-14-ui.diff
10139N/AURL: http://ww.avahi.org/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/A
10139N/A%define libdaemon_version 0.11
10139N/A%define dbus_version 1.1.2
10139N/A%define python_version 2.4
10139N/A
10139N/ARequires: libdaemon >= %{libdaemon-version}
10139N/ABuildRequires: libdaemon-devel >= %{libdaemon-version}
10139N/A
10139N/ARequires: dbus >= %{dbus-version}
10139N/ABuildRequires: dbus-devel >= %{dbus-version}
10139N/A
10139N/A%description
10139N/AAvahi is a system which facilitates service discovery on a local network.
10139N/AThis means that you can plug your laptop or computer into a network and
10139N/Ainstantly be able to view other people you can chat with, find printers
10139N/Ato print to or find files being shared. This kind of technology is also
10139N/Ain Apple's Bonjour.
10139N/A
10139N/A
10139N/A%package devel
10139N/ASummary: System which facilitiates service disconvery on a local network.
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name} = %{version}
10139N/A
10139N/A%description devel
10139N/AAvahi is a system which facilitates service discovery on a local network.
10139N/AThis measn thyat you can plug your laptop or computer into a network and
10139N/Ainstantly be able to view other people you can chat with, find printers
10139N/Ato print to or find files being shared. This kind of technology is also
10139N/Ain Apple's Bonjour.
10139N/A
10890N/A
10890N/A%prep
10890N/A%setup -q
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10139N/A%patch3 -p1
10139N/A%patch4 -p1
10139N/A%patch5 -p1
10139N/A%patch6 -p1
10139N/A%patch7 -p1
10139N/A%patch8 -p1
10139N/A%patch9 -p1
10139N/A%patch10 -p1
10139N/A%patch11 -p1
10139N/A%patch12 -p1
10139N/A%patch13 -p1
10139N/A%patch14 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/ACONFLAGS="--prefix=%{_prefix} \
10139N/A --with-avahi-user=daemon \
10139N/A --with-avahi-group=other \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --localstatedir=%{_localstatedir} \
10139N/A --mandir=%{_mandir} \
10139N/A --with-distro=none \
10139N/A --disable-qt3 \
10139N/A --disable-qt4 \
10139N/A --disable-mono \
10139N/A --disable-monodoc \
10139N/A --enable-tests \
10139N/A --disable-compat-howl \
10139N/A --disable-compat-libdns_sd \
10139N/A --enable-expat \
10139N/A --disable-autoipd \
10139N/A --disable-gdbm \
10139N/A --enable-dbm"
10139N/A
10139N/A
10139N/Aautoheader
10139N/Aautoconf
CFLAGS="$RPM_OPT_FLAGS"
./configure $CONFLAGS
make -j $CPUS \
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
%install
make DESTDIR=$RPM_BUILD_ROOT install \
pythondir=%{_libdir}/python%{python_version}/vendor-packages
rm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi*a
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/avahi-daemon.conf
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/avahi-dnsconfd.action
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/hosts
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/sftp-ssh.service
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/ssh.service
rm -rf $RPM_BUILD_ROOT%{_sbindir}/avahi-dnsconfd
rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-discover-standalone
rm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-bookmarks
rm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi-daemon.conf.5
rm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.hosts.5
rm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.service.5
rm -rf $RPM_BUILD_ROOT%{_mandir}/man5
rm -rf $RPM_BUILD_ROOT%{_mandir}/man8
rm -rf $RPM_BUILD_ROOT%{_mandir}/man1/avahi-bookmarks.1
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%changelog
* Thu Sep 20 2007 - padraig.obriain@sun.com
- Add patch avahi-14-ui.patch to fix crash when no services are found.
* Tue June 12 2007 - padraig.obriain@sun.com
- Initial spec file for avahi.