avahi.spec revision 20105
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/A
10791N/A%define OSR 6997:0.6.21
10791N/A
13478N/AName: avahi
10791N/ALicense: LGPL v2
10791N/AGroup: System/Libraries
10791N/AVersion: 0.6.28
13534N/ARelease: 1
10791N/ADistribution: Java Desktop System
11389N/AVendor: Avahi
10791N/ASummary: System which facilitates service discovery on a local network.
10791N/ASource: http://www.avahi.org/download/%{name}-%{version}.tar.gz
10791N/ASource1: l10n-configure.sh
10791N/A# date:2007-06-12 owner:padraig type:feature
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
13793N/A# date:2007-06-12 owner:padraig type:feature
13793N/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:2009-01-20 owner:fujiwara type:bug bugid:122 bugster:6795230 state:upstream
10791N/APatch14: avahi-14-desktop.diff
10791N/A# date:2009-03-05 owner:gheet type:branding bugid:263 bugster:6794539
10791N/APatch15: avahi-15-secure-dbus-dest.diff
11049N/A# date:2011-03-03 owner:padraig type:bug bugid:325 bugster:7023256
11049N/APatch16: avahi-16-socket.diff
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
10791N/A%define libdaemon_version 0.11
10791N/A%define dbus_version 1.1.2
10791N/A%define python_version 2.6
10791N/A
11049N/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.
10791N/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
13793N/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%patch14 -p1
10791N/A%patch15 -p1
10791N/A%patch16 -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-gtk3 \
10791N/A --disable-qt3 \
13478N/A --disable-qt4 \
13478N/A --disable-mono \
13478N/A --disable-monodoc \
10791N/A --enable-tests \
13478N/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#libtoolize --force
10791N/Aglib-gettextize -f
10791N/Aintltoolize --force --copy
10791N/A
10791N/Abash -x %SOURCE1 --enable-copyright
10791N/A
10791N/Aautoreconf
10791N/Aautoheader
10791N/Aautoconf
10791N/ACFLAGS="$RPM_OPT_FLAGS"
10791N/A./configure $CONFLAGS
11269N/A
11269N/Amake -j $CPUS \
11269N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
10791N/A
10791N/A%install
10791N/A
10791N/Amake DESTDIR=$RPM_BUILD_ROOT install \
11269N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
11269N/Arm -rf $RPM_BUILD_ROOT%{_libdir}/libavahi*a
11269N/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
10791N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/hosts
10791N/Arm -rf $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/sftp-ssh.service
10791N/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
10791N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.hosts.5
13793N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5/avahi.service.5
13793N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man5
13793N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man8
13478N/Arm -rf $RPM_BUILD_ROOT%{_mandir}/man1/avahi-bookmarks.1
13478N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services
13358N/A
13358N/A
11282N/A%post
13358N/A/sbin/ldconfig
10791N/A
10791N/A%postun
/sbin/ldconfig
%changelog
* Thu Mar 03 2011 - padraig.obriain@oracle.com
- Add avahi-16-socket.diff for 7023256
* Fri Jan 21 2011 - padraig.obriain@oracle.com
- Update to 0.6.28.
* Wed Nov 10 2010 - padraig.obriain@oracle.com
- Add license tag.
* Mon oct 05 2009 - padraig.obriain@sun.com
- Update python version to 2.6
* Tue Aug 04 2009 - padraig.obriain@sun.com
- Remove call to libtoolize so that 0.6.25 builds.
* Tue Jan 20 2009 - takao.fujiwara@sun.com
- Add patch avahi-14-desktop.diff
- Remove patch avahi-14-show-menu-items.diff
* Wed Aug 06 2008 - padraig.obriain@sun.com
- Add patch avahi-14-show-menu-items.diff for 6726720.
See http://www.avahi.org/ticket/234.
* Thu Jun 26 2008 - padraig.obriain@sun.com
- Uprev to 0.6.23; add calls to libtoolize and autoreconf
* Fri Jun 06 2008 - padraig.obriain@sun.com
- Uprev to 0.6.22; remove patch -14.
* Thu Sep 20 2007 - padraig.obriain@sun.com
- Add patch avahi-14-ui.diff to fix crash when no services are found.
* Tue June 12 2007 - padraig.obriain@sun.com
- Initial spec file for avahi.