avahi/avahi.spec

258 lines
7.9 KiB
RPMSpec
Raw Normal View History

Name: avahi
2005-11-21 21:56:55 +00:00
Version: 0.6
2005-11-22 18:22:40 +00:00
Release: 2
2005-11-14 21:50:58 +00:00
Summary: Local network service discovery
Group: System Environment/Base
License: LGPL
URL: http://www.freedesktop.org/Software/Avahi
Source0: %{name}-%{version}.tar.gz
Patch1: avahi-0.5.2-fedora.patch
2005-11-14 21:50:58 +00:00
Patch2: avahi-0.5.2-start_after_dbus.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2005-11-14 21:50:58 +00:00
BuildRequires: doxygen, gtk2-devel, qt-devel, libglade2-devel, libdaemon-devel, dbus-devel, expat-devel, python, dbus-python
Requires: dbus
Obsoletes: howl, howl-libs
2005-10-30 07:04:56 +00:00
#Provides: howl >= 0.9.8, howl-libs >= 0.9.8
%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 tools
2005-11-14 21:50:58 +00:00
Summary: Tools for mDNS browsing and publishing
Group: System Environment/Base
Requires: %{name} = %{version}
%description tools
Tools that use avahi to browse and publish mDNS services and hosts.
%package glib
2005-11-14 21:50:58 +00:00
Summary: Glib libraries for avahi
Group: System Environment/Base
Requires: %{name} = %{version}
2005-11-22 18:20:55 +00:00
Requires: glib2
%description glib
Libraries for easy use of avahi from glib applications.
%package glib-devel
2005-11-14 21:50:58 +00:00
Summary: Libraries and header files for avahi glib development
Group: Development/Libraries
Requires: %{name}-devel = %{version}
2005-11-22 18:20:55 +00:00
Requires: %{name}-glib = %{version}
Requires: glib2-devel
%description glib-devel
The avahi-devel package contains the header files and libraries
necessary for developing programs using avahi with glib.
%package qt3
Summary: Qt3 libraries for avahi
Group: System Environment/Base
Requires: %{name} = %{version}
2005-11-22 18:20:55 +00:00
Requires: qt
%description qt3
Libraries for easy use of avahi from Qt3 applications.
%package qt3-devel
2005-11-14 21:50:58 +00:00
Summary: Libraries and header files for avahi Qt3 development
Group: Development/Libraries
Requires: %{name}-devel = %{version}
2005-11-22 18:20:55 +00:00
Requires: %{name}-qt3 = %{version}
Requires: qt-devel
%description qt3-devel
The avahi-devel package contains the header files and libraries
necessary for developing programs using avahi with Qt3.
%package devel
2005-11-14 21:50:58 +00:00
Summary: Libraries and header files for avahi development
Group: Development/Libraries
Requires: %{name} = %{version}
Obsoletes: howl-devel
2005-10-30 07:04:56 +00:00
#Provides: howl-devel >= 0.9.8
%description devel
The avahi-devel package contains the header files and libraries
necessary for developing programs using avahi.
%define avahi_user_uid 70
%prep
%setup -q
2005-11-21 21:56:55 +00:00
#%patch1 -p1 -b .fedora
#^- this patch now upstream
%patch2 -p1 -b .start_after_dbus
%build
# auto* update needed for avahi-0.5.2-fedora.patch
aclocal -I common
libtoolize --force
automake-1.9 --add-missing
autoconf
2005-11-21 21:56:55 +00:00
%configure --with-distro=fedora --disable-qt4 --disable-mono --disable-monodoc --with-avahi-user=avahi --with-avahi-group=avahi --enable-compat-howl
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
# remove example
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/ssh.service
# remove desktop file for avahi-discover
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/avahi-discover.desktop
2005-11-14 21:50:58 +00:00
# create /var/run/avahi-daemon to ensure correct selinux policy for it:
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/avahi-daemon
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# Add the "avahi" user
/usr/sbin/useradd -c 'Avahi daemon' -u %{avahi_user_uid} \
-s /sbin/nologin -r -d '/' avahi 2> /dev/null || :
%post
/sbin/ldconfig
if [ "$1" -eq 1 ]; then
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1
# We should realy make dbus reload the system.d config here. Dunno how though.
# kill -HUP `cat /var/run/messagebus.pid` ?
elif [ "$1" -gt 1 ]; then
# reset initscript run order:
LC_ALL=C /sbin/chkconfig --levels=0123456 avahi-daemon reset >/dev/null 2>&1
# pre 0.5.2-3, avahi-daemon initscript had 'chkconfig: 345 34 66',
# so it got started AFTER messagebus ( 97 ) and was unable to start.
# It now has 'chkconfig: 345 98 02'.
/sbin/service avahi-daemon condrestart >/dev/null 2>&1
fi;
2005-11-14 21:50:58 +00:00
%postun -p /sbin/ldconfig
%preun
2005-11-14 21:50:58 +00:00
if [ "$1" -eq 0 ]; then
service avahi-daemon stop > /dev/null 2>&1
/sbin/chkconfig --del avahi-daemon
fi
2005-11-14 21:50:58 +00:00
%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig
%post qt3 -p /sbin/ldconfig
%postun qt3 -p /sbin/ldconfig
%files
2005-11-14 21:50:58 +00:00
%defattr(-,root,root,0644)
%doc docs/* avahi-daemon/example.service avahi-daemon/ssh.service
2005-11-14 21:50:58 +00:00
%attr(755,root,root) %{_sysconfdir}/init.d/*
%dir %attr(755,root,root) %{_sysconfdir}/avahi
%dir %attr(755,root,root) %{_sysconfdir}/avahi/services
%dir %attr(755,root,root) %{_localstatedir}/run/avahi-daemon
%config %{_sysconfdir}/avahi/avahi-daemon.conf
%config %{_sysconfdir}/avahi/avahi-dnsconfd.action
%config %{_sysconfdir}/dbus-1/system.d/avahi-dbus.conf
2005-11-14 21:50:58 +00:00
%attr(755,root,root) %{_sbindir}/*
%attr(755,root,root) %{_libdir}/libavahi-common.so.*
%attr(755,root,root) %{_libdir}/libavahi-core.so.*
%attr(755,root,root) %{_libdir}/libavahi-client.so.*
2005-11-21 21:56:55 +00:00
%attr(755,root,root) %{_libdir}/libavahi-compat-howl.so.*
2005-11-14 21:50:58 +00:00
%attr(755,root,root) %{_datadir}/avahi
%exclude %{_datadir}/avahi/interfaces
%{_mandir}/man5/*
%{_mandir}/man8/*
%files tools
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0644)
%attr(755,root,root) %{_bindir}/*
2005-10-25 08:05:10 +00:00
# These are .py files only, so they don't go in lib64
2005-11-14 21:50:58 +00:00
%attr(755,root,root) %{_prefix}/lib/python2.4/site-packages/*
%{_mandir}/man1/*
2005-11-14 21:50:58 +00:00
%attr(755,root,root) %{_datadir}/avahi/interfaces/
%files devel
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0644)
%attr(755,root,root) %{_libdir}/libavahi-common.so
%attr(755,root,root) %{_libdir}/libavahi-core.so
%attr(755,root,root) %{_libdir}/libavahi-client.so
2005-11-21 21:56:55 +00:00
%attr(755,root,root) %{_libdir}/libavahi-compat-howl.so
2005-11-22 18:20:55 +00:00
%attr(755,root,root) %dir %{_includedir}/avahi-client/
%{_includedir}/avahi-client/*
%attr(755,root,root) %dir %{_includedir}/avahi-common/
%{_includedir}/avahi-common/*
%attr(755,root,root) %dir %{_includedir}/avahi-core/
%{_includedir}/avahi-core/*
%attr(755,root,root) %dir %{_includedir}/avahi-compat-howl/
%{_includedir}/avahi-compat-howl/*
2005-11-14 21:50:58 +00:00
%{_libdir}/pkgconfig/avahi-core.pc
%{_libdir}/pkgconfig/avahi-client.pc
2005-11-21 21:56:55 +00:00
%{_libdir}/pkgconfig/avahi-compat-howl.pc
%{_libdir}/pkgconfig/avahi-compat-libdns_sd.pc
%files glib
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0755)
%{_libdir}/libavahi-glib.so.*
%files glib-devel
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0644)
%attr(755,root,root) %{_libdir}/libavahi-glib.so
2005-11-22 18:20:55 +00:00
%attr(755,root,root) %dir %{_includedir}/avahi-glib
%{_includedir}/avahi-glib/*
%{_libdir}/pkgconfig/avahi-glib.pc
%files qt3
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0755)
%{_libdir}/libavahi-qt3.so.*
%{_libdir}/pkgconfig/avahi-qt3.pc
%files qt3-devel
2005-11-14 21:50:58 +00:00
%defattr(-, root, root, 0644)
%attr(755,root,root) %{_libdir}/libavahi-qt3.so
2005-11-22 18:20:55 +00:00
%attr(755,root,root) %dir %{_includedir}/avahi-qt3
%{_includedir}/avahi-qt3/*
%changelog
2005-11-21 21:56:55 +00:00
* Mon Nov 21 2005 Jason Vas Dias<jvdias@redhat.com> - 0.6-1
- Upgrade to upstream version 0.6 - now provides 'avahi-howl-compat'
libraries / includes.
2005-11-14 21:50:58 +00:00
* Mon Nov 14 2005 Jason Vas Dias<jvdias@redhat.com> - 0.5.2-7
- fix bug 172034: fix ownership of /var/run/avahi-daemon/
- fix bug 172772: .spec file improvements from matthias@rpmforge.net
* Mon Oct 31 2005 Jason Vas Dias<jvdias@redhat.com> - 0.5.2-6
- put back avahi-devel Obsoletes: howl-devel
* Mon Oct 31 2005 Alexander Larsson <alexl@redhat.com> - 0.5.2-5
- Obsoletes howl, howl-libs, as we want to get rid of them on updates
- No provides yet, as the howl compat library is in Avahi 0.6.0.
2005-10-30 07:04:56 +00:00
* Sun Oct 30 2005 Florian La Roche <laroche@redhat.com>
- disable the Obsoletes: howl until the transition is complete
* Fri Oct 28 2005 Jason Vas Dias<jvdias@redhat.com> - 0.5.2-3
- change initscript to start avahi-daemon AFTER messagebus
* Wed Oct 26 2005 Karsten Hopp <karsten@redhat.de> 0.5.2-2
- add buildrequires dbus-python
* Fri Oct 21 2005 Alexander Larsson <alexl@redhat.com> - 0.5.2-1
- Initial package