-#
# TODO:
# - autoip subpackage ?
# - autoip start script ?
%bcond_without qt # build without (any) qt bindings
%bcond_without qt3 # build without qt3 bindings
%bcond_without qt4 # build without qt4 bindings
-#
+
%ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
%undefine with_dotnet
%endif
%undefine with_dotnet
%endif
-%if !%{with qt}
+%if %{without qt}
%undefine with_qt3
%undefine with_qt4
%endif
+
%{?with_dotnet:%include /usr/lib/rpm/macros.mono}
-#
Summary: Free mDNS/DNS-SD implementation
Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD
Name: avahi
-Version: 0.6.23
-Release: 1
+Version: 0.6.25
+Release: 3
License: LGPL v2.1+
Group: Applications
Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
-# Source0-md5: aab1a304851d8145ea5f6a85c10af9e9
+# Source0-md5: a83155a6e29e3988f07e5eea3287b21e
Source1: %{name}-daemon
Source2: %{name}-dnsconfd
Source3: %{name}.png
Patch1: %{name}-glade.patch
Patch2: %{name}-destdir.patch
Patch3: %{name}-mono-dir.patch
+Patch4: nss-mdns-package.patch
URL: http://avahi.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: expat-devel
BuildRequires: gdbm-devel
+BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 1:2.12.2
BuildRequires: graphviz
BuildRequires: gtk+2-devel >= 2:2.10.2
+BuildRequires: intltool >= 0.35
BuildRequires: libcap-devel
BuildRequires: libdaemon-devel >= 0.11
BuildRequires: libglade2-devel >= 1:2.6.0
BuildRequires: QtCore-devel
BuildRequires: qt4-build
%endif
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.228
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-libs = %{version}-%{release}
Summary: Header files for Avahi Qt 4 library bindings
Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-Qt = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
%description Qt-devel
Header files for Avahi Qt 4 library bindings.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
+%{__intltoolize}
%{__libtoolize}
%{__aclocal} -I common
%{__autoconf}
DESTDIR=$RPM_BUILD_ROOT \
pythondir=%{py_sitedir}
-install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
-install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
+install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
+cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
$RPM_BUILD_ROOT%{_includedir}/dns_sd.h
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
+%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
%attr(755,root,root) %{_bindir}/avahi-set-host-name
%attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
%attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.5
+%attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.6
# common for -discover*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/interfaces