avahi.spec revision 11282
10139N/A#
10139N/A# spec file for package avahi
10139N/A#
12219N/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
12288N/ARelease: 1
10139N/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
11922N/APatch1: avahi-01-config-bonjour.diff
10139N/A# date:2007-06-12 owner:padraig type:feature
11027N/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
11027N/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
10139N/A
10139N/A%prep
10139N/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} \
12288N/A --localstatedir=%{_localstatedir} \
12288N/A --mandir=%{_mandir} \
12288N/A --with-distro=none \
12219N/A --disable-qt3 \
12219N/A --disable-qt4 \
12219N/A --disable-mono \
12072N/A --disable-monodoc \
12072N/A --enable-tests \
12072N/A --disable-compat-howl \
12022N/A --disable-compat-libdns_sd \
12022N/A --enable-expat \
12022N/A --disable-autoipd \
11922N/A --disable-gdbm \
11922N/A --enable-dbm"
11922N/A
11416N/A
11416N/Aautoheader
11416N/Aautoconf
11377N/ACFLAGS="$RPM_OPT_FLAGS"
11377N/A./configure $CONFLAGS
11377N/A
11303N/Amake -j $CPUS \
11303N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
11303N/A
11303N/A%install
11240N/A
11240N/Amake DESTDIR=$RPM_BUILD_ROOT install \
11240N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
11170N/Arm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi*a
11170N/Arm -rf $RPM_BUILD_ROOT%{_localstatedir}
11170N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
11116N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/avahi-daemon.conf
11116N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/avahi-dnsconfd.action
11116N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/hosts
11069N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/sftp-ssh.service
11070N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/ssh.service
11070N/Arm -rf $RPM_BUILD_ROOT%{_sbindir}/avahi-dnsconfd
11070N/Arm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-discover-standalone
11069N/Arm -rf $RPM_BUILD_ROOT%{_bindir}/avahi-bookmarks
11069N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi-daemon.conf.5
11026N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.hosts.5
11029N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.service.5
11029N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5
11029N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man8
11027N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man1/avahi-bookmarks.1
11028N/A
11027N/A
11027N/A%post
11026N/A/sbin/ldconfig
11026N/A
11026N/A%postun
10917N/A/sbin/ldconfig
10917N/A
10917N/A%changelog
10730N/A* Thu Sep 20 2007 - padraig.obriain@sun.com
10730N/A- Add patch avahi-14-ui.patch to fix crash when no services are found.
10730N/A* Tue June 12 2007 - padraig.obriain@sun.com
10435N/A- Initial spec file for avahi.
10435N/A