new upstream release
This commit is contained in:
parent
61e5aea409
commit
2ba274d5b5
@ -1 +1 @@
|
||||
avahi-0.6.25.tar.gz
|
||||
avahi-0.6.26.tar.gz
|
||||
|
146
avahi.spec
146
avahi.spec
@ -5,17 +5,20 @@
|
||||
%define WITH_MONO 0
|
||||
%endif
|
||||
Name: avahi
|
||||
Version: 0.6.25
|
||||
Release: 7%{?dist}
|
||||
Version: 0.6.26
|
||||
Release: 1%{?dist}
|
||||
Summary: Local network service discovery
|
||||
Group: System Environment/Base
|
||||
License: LGPLv2
|
||||
URL: http://avahi.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: dbus, expat
|
||||
Requires: dbus
|
||||
Requires: expat
|
||||
Requires: libdaemon >= 0.11
|
||||
Requires: systemd-units
|
||||
Requires(post): initscripts, chkconfig, ldconfig
|
||||
Requires(pre): shadow-utils
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
BuildRequires: automake libtool
|
||||
BuildRequires: dbus-devel >= 0.90
|
||||
BuildRequires: dbus-glib-devel >= 0.70
|
||||
@ -32,14 +35,13 @@ BuildRequires: expat-devel
|
||||
BuildRequires: python
|
||||
BuildRequires: gdbm-devel
|
||||
BuildRequires: pygtk2
|
||||
BuildRequires: intltool perl-XML-Parser
|
||||
BuildRequires: intltool
|
||||
BuildRequires: perl-XML-Parser
|
||||
%if %{WITH_MONO}
|
||||
BuildRequires: mono-devel >= 1.1.13
|
||||
%endif
|
||||
Obsoletes: howl
|
||||
Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
|
||||
# enable mono's mcs to work in beehive buildroot:
|
||||
Patch2: avahi-0.6.3-MONO_SHARED_DIR.patch
|
||||
|
||||
%description
|
||||
Avahi is a system which facilitates service discovery on
|
||||
@ -62,10 +64,14 @@ Command line tools that use avahi to browse and publish mDNS services.
|
||||
Summary: UI tools for mDNS browsing
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-ui = %{version}-%{release}
|
||||
Requires: %{name}-ui-gtk3 = %{version}-%{release}
|
||||
Requires: vnc
|
||||
Requires: openssh-clients
|
||||
Requires: gtk2, pygtk2, pygtk2-libglade, gdbm, python, dbus-python
|
||||
Requires: pygtk2
|
||||
Requires: pygtk2-libglade
|
||||
Requires: gdbm
|
||||
Requires: python
|
||||
Requires: dbus-python
|
||||
|
||||
%description ui-tools
|
||||
Graphical user interface tools that use Avahi to browse for mDNS services.
|
||||
@ -111,12 +117,22 @@ The avahi-gobject-devel package contains the header files and libraries
|
||||
necessary for developing programs using avahi-gobject.
|
||||
|
||||
%package ui
|
||||
Summary: Gtk user interface library for Avahi
|
||||
Summary: Gtk user interface library for Avahi (Gtk+ 2 version)
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gtk2
|
||||
|
||||
%description ui
|
||||
This library contains a Gtk widget for browsing services.
|
||||
This library contains a Gtk 2.x widget for browsing services.
|
||||
|
||||
%package ui-gtk3
|
||||
Summary: Gtk user interface library for Avahi (Gtk+ 3 version)
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gtk3
|
||||
|
||||
%description ui-gtk3
|
||||
This library contains a Gtk 3.x widget for browsing services.
|
||||
|
||||
%package ui-devel
|
||||
Summary: Libraries and header files for Avahi UI development
|
||||
@ -172,6 +188,7 @@ necessary for developing programs using avahi with Qt4.
|
||||
Summary: Mono language bindings for avahi mono development
|
||||
Group: Development/Libraries
|
||||
Requires: mono-core >= 1.1.13
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description sharp
|
||||
The avahi-sharp package contains the files needed to develop
|
||||
@ -180,6 +197,8 @@ mono programs that use avahi.
|
||||
%package ui-sharp
|
||||
Summary: Mono language bindings for avahi-ui
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-ui = %{version}-%{release}
|
||||
Requires: mono-core >= 1.1.13
|
||||
Requires: gtk-sharp2
|
||||
BuildRequires: gtk-sharp2-devel
|
||||
@ -201,7 +220,6 @@ Mono programs that use avahi-ui.
|
||||
%package libs
|
||||
Summary: Libraries for avahi run-time use
|
||||
Group: System Environment/Libraries
|
||||
Requires: pkgconfig
|
||||
|
||||
%description libs
|
||||
The avahi-libs package contains the libraries needed
|
||||
@ -221,6 +239,7 @@ necessary for developing programs using avahi.
|
||||
Summary: Libraries for howl compatibility
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Obsoletes: howl-libs
|
||||
Provides: howl-libs
|
||||
|
||||
@ -241,6 +260,7 @@ Header files for development with the howl compatibility libraries.
|
||||
Summary: Libraries for Apple Bonjour mDNSResponder compatibility
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description compat-libdns_sd
|
||||
Libraries for Apple Bonjour mDNSResponder compatibility.
|
||||
@ -270,6 +290,7 @@ lack a DHCP server.
|
||||
Summary: Configure local unicast DNS settings based on information published in mDNS
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description dnsconfd
|
||||
avahi-dnsconfd connects to a running avahi-daemon and runs the script
|
||||
@ -279,29 +300,21 @@ fashion with mDNS.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if %{WITH_MONO}
|
||||
%patch2 -p1 -b .MONO_SHARED_DIR
|
||||
%endif
|
||||
|
||||
# nuke rpath, TODO: double-check if still required on new releases
|
||||
autoreconf -i
|
||||
|
||||
%build
|
||||
|
||||
%configure --with-distro=fedora --disable-monodoc --without-python-twisted --with-avahi-user=avahi --with-avahi-group=avahi --enable-compat-howl --with-avahi-priv-access-group=avahi --with-autoipd-user=avahi-autoipd --with-autoipd-group=avahi-autoipd \
|
||||
%configure --with-distro=fedora --disable-monodoc --with-avahi-user=avahi --with-avahi-group=avahi --with-avahi-priv-access-group=avahi --with-autoipd-user=avahi-autoipd --with-autoipd-group=avahi-autoipd \
|
||||
%if %{WITH_COMPAT_DNSSD}
|
||||
--enable-compat-libdns_sd \
|
||||
%endif
|
||||
%if %{WITH_COMPAT_HOWL}
|
||||
--enable-compat-howl \
|
||||
%endif
|
||||
%if ! %{WITH_MONO}
|
||||
--disable-mono \
|
||||
%endif
|
||||
;
|
||||
|
||||
# less invasible anti-rpath hack if one wants to avoid auto*foo
|
||||
#sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' libtool
|
||||
|
||||
make %{?_smp_mflags}
|
||||
#make %{?_smp_mflags} avahi.devhelp doxygen-run
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -313,9 +326,6 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
# remove example
|
||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/avahi/services/sftp-ssh.service
|
||||
|
||||
# remove desktop file for avahi-discover
|
||||
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/avahi-discover.desktop
|
||||
|
||||
# create /var/run/avahi-daemon to ensure correct selinux policy for it:
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/avahi-daemon
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/avahi-autoipd
|
||||
@ -323,20 +333,10 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/avahi-autoipd
|
||||
# remove the documentation directory - let \%doc handle it:
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
|
||||
|
||||
# remove avahi-bookmarks - unusable without python-twisted,
|
||||
# which has been judged dangerous and is removed from the
|
||||
# Fedora Core distribution:
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/avahi-bookmarks $RPM_BUILD_ROOT/%{_mandir}/man1/avahi-bookmarks*
|
||||
#
|
||||
# move initscripts into /etc/rc.d/init.d :
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
|
||||
mv $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/* $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
|
||||
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/*
|
||||
#
|
||||
# Make /etc/avahi/etc/localtime owned by avahi:
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/avahi/etc
|
||||
touch $RPM_BUILD_ROOT/etc/avahi/etc/localtime
|
||||
#
|
||||
|
||||
# fix bug 197414 - add missing symlinks for avahi-compat-howl and avahi-compat-dns-sd
|
||||
%if %{WITH_COMPAT_HOWL}
|
||||
ln -s avahi-compat-howl.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/howl.pc
|
||||
@ -354,9 +354,19 @@ ln -s avahi-compat-libdns_sd/dns_sd.h $RPM_BUILD_ROOT/%{_includedir}/
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
/usr/sbin/groupadd -f -r avahi
|
||||
/usr/bin/id avahi >/dev/null 2>&1 || \
|
||||
/usr/sbin/useradd -r -g avahi -c 'avahi-daemon' -s /sbin/nologin -d %{_localstatedir}/run/avahi-daemon avahi
|
||||
getent group avahi >/dev/null 2>&1 || groupadd \
|
||||
-r \
|
||||
-g 70 \
|
||||
avahi
|
||||
getent passwd avahi >/dev/null 2>&1 || useradd \
|
||||
-r -l \
|
||||
-u 70 \
|
||||
-g avahi \
|
||||
-d %{_localstatedir}/run/avahi-daemon \
|
||||
-s /sbin/nologin \
|
||||
-c "Avahi mDNS/DNS-SD Stack" \
|
||||
avahi
|
||||
:;
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
@ -382,9 +392,19 @@ if [ "$1" -ge "1" ]; then
|
||||
fi
|
||||
|
||||
%pre autoipd
|
||||
/usr/sbin/groupadd -f -r avahi-autoipd
|
||||
/usr/bin/id avahi-autoipd >/dev/null 2>&1 || \
|
||||
/usr/sbin/useradd -r -g avahi-autoipd -c 'avahi-autoipd' -s /sbin/nologin -d %{_localstatedir}/lib/avahi-autoipd avahi-autoipd
|
||||
getent group avahi-autoipd >/dev/null 2>&1 || groupadd \
|
||||
-r \
|
||||
-g 170 \
|
||||
avahi-autoipd
|
||||
getent passwd avahi-autoipd >/dev/null 2>&1 || useradd \
|
||||
-r -l \
|
||||
-u 170 \
|
||||
-g avahi-autoipd \
|
||||
-d %{_localstatedir}/lib/avahi-autoipd \
|
||||
-s /sbin/nologin \
|
||||
-c "Avahi IPv4LL Stack" \
|
||||
avahi-autoipd
|
||||
:;
|
||||
|
||||
%post dnsconfd
|
||||
# avahi-dnsconfd NOT run by default in any runlevel; add it
|
||||
@ -432,16 +452,22 @@ fi
|
||||
%ghost %{_sysconfdir}/avahi/etc/localtime
|
||||
%config(noreplace) %{_sysconfdir}/avahi/hosts
|
||||
%dir %{_sysconfdir}/avahi/services
|
||||
%attr(0755,avahi,avahi) %dir %{_localstatedir}/run/avahi-daemon
|
||||
%ghost %attr(0755,avahi,avahi) %dir %{_localstatedir}/run/avahi-daemon
|
||||
%config(noreplace) %{_sysconfdir}/avahi/avahi-daemon.conf
|
||||
%config(noreplace) %{_sysconfdir}/avahi/services/ssh.service
|
||||
%{_sysconfdir}/dbus-1/system.d/avahi-dbus.conf
|
||||
%attr(0755,root,root) %{_sbindir}/avahi-daemon
|
||||
%{_datadir}/avahi
|
||||
%dir %{_datadir}/avahi
|
||||
%{_datadir}/avahi/*.dtd
|
||||
%{_datadir}/avahi/service-types
|
||||
%{_libdir}/avahi
|
||||
%exclude %{_datadir}/avahi/interfaces
|
||||
%exclude %{_datadir}/dbus-1/interfaces/*.xml
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/avahi-daemon.*
|
||||
/lib/systemd/system/avahi-daemon.service
|
||||
/lib/systemd/system/avahi-daemon.socket
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
|
||||
%attr(0755,root,root) %{_libdir}/libavahi-core.so.*
|
||||
|
||||
%files autoipd
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -455,24 +481,30 @@ fi
|
||||
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/avahi/avahi-dnsconfd.action
|
||||
%attr(0755,root,root) %{_sbindir}/avahi-dnsconfd
|
||||
%{_mandir}/man8/avahi-dnsconfd.*
|
||||
/lib/systemd/system/avahi-dnsconfd.service
|
||||
|
||||
%files tools
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(0755,root,root) %{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%exclude %{_bindir}/avahi-discover-standalone
|
||||
%exclude %{_bindir}/b*
|
||||
%exclude %{_bindir}/avahi-discover
|
||||
%exclude %{_bindir}/avahi-discover*
|
||||
%exclude %{_bindir}/avahi-bookmarks
|
||||
%exclude %{_mandir}/man1/b*
|
||||
%exclude %{_mandir}/man1/avahi-discover*
|
||||
%exclude %{_mandir}/man1/avahi-bookmarks*
|
||||
|
||||
%files ui-tools
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(0755,root,root) %{_bindir}/b*
|
||||
%attr(0755,root,root) %{_bindir}/avahi-discover
|
||||
# avahi-bookmarks is not really a UI tool, but I won't create a seperate package for it...
|
||||
%attr(0755,root,root) %{_bindir}/avahi-bookmarks
|
||||
%{_mandir}/man1/b*
|
||||
%{_mandir}/man1/avahi-discover*
|
||||
%{_mandir}/man1/avahi-bookmarks*
|
||||
%{_datadir}/applications/b*.desktop
|
||||
%{_datadir}/applications/avahi-discover.desktop
|
||||
# These are .py files only, so they don't go in lib64
|
||||
%{_prefix}/lib/python?.?/site-packages/*
|
||||
%{_datadir}/avahi/interfaces/
|
||||
@ -491,7 +523,6 @@ fi
|
||||
%files libs
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(0755,root,root) %{_libdir}/libavahi-common.so.*
|
||||
%attr(0755,root,root) %{_libdir}/libavahi-core.so.*
|
||||
%attr(0755,root,root) %{_libdir}/libavahi-client.so.*
|
||||
|
||||
%files glib
|
||||
@ -505,24 +536,34 @@ fi
|
||||
%{_libdir}/pkgconfig/avahi-glib.pc
|
||||
|
||||
%files gobject
|
||||
%defattr(0755, root, root, 0755)
|
||||
%{_libdir}/libavahi-gobject.so.*
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(755,root,root) %{_libdir}/libavahi-gobject.so.*
|
||||
%{_libdir}/girepository-1.0/Avahi-0.6.typelib
|
||||
%{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
|
||||
|
||||
%files gobject-devel
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(755,root,root) %{_libdir}/libavahi-gobject.so
|
||||
%{_includedir}/avahi-gobject
|
||||
%{_libdir}/pkgconfig/avahi-gobject.pc
|
||||
%{_datadir}/gir-1.0/Avahi-0.6.gir
|
||||
%{_datadir}/gir-1.0/AvahiCore-0.6.gir
|
||||
|
||||
%files ui
|
||||
%defattr(0755, root, root, 0755)
|
||||
%{_libdir}/libavahi-ui.so.*
|
||||
|
||||
%files ui-gtk3
|
||||
%defattr(0755, root, root, 0755)
|
||||
%{_libdir}/libavahi-ui-gtk3.so.*
|
||||
|
||||
%files ui-devel
|
||||
%defattr(0644, root, root, 0755)
|
||||
%attr(755,root,root) %{_libdir}/libavahi-ui.so
|
||||
%attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
|
||||
%{_includedir}/avahi-ui
|
||||
%{_libdir}/pkgconfig/avahi-ui.pc
|
||||
%{_libdir}/pkgconfig/avahi-ui-gtk3.pc
|
||||
|
||||
%files qt3
|
||||
%defattr(0644, root, root, 0755)
|
||||
@ -589,6 +630,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> 0.6.26-1
|
||||
- New upstream release
|
||||
|
||||
* Mon Apr 19 2010 Bastien Nocera <bnocera@redhat.com> 0.6.25-7
|
||||
- Split avahi libraries in -libs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user