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