-#
# 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.25
-Release: 2
+Release: 4
License: LGPL v2.1+
Group: Applications
Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
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
%if %{with dotnet}
BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
BuildRequires: mono-csharp
-BuildRequires: monodoc
+BuildRequires: monodoc >= 2.6
%endif
BuildRequires: pkgconfig
BuildRequires: python >= 1:2.4
Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
Group: Development/Libraries
Requires: dotnet-avahi = %{version}-%{release}
-Requires: monodoc
+Requires: monodoc >= 2.6
%description -n dotnet-avahi-devel
Development files for MONO Avahi bindings.
Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
Group: X11/Development/Libraries
Requires: dotnet-avahi-ui = %{version}-%{release}
-Requires: monodoc
+Requires: monodoc >= 2.6
%description -n dotnet-avahi-ui-devel
Development files for MONO Avahi UI bindings.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
%{__intltoolize}
%{!?with_qt3:--disable-qt3} \
%{!?with_qt4:--disable-qt4} \
%{!?with_dotnet:--disable-mono} \
- %{!?with_dotnet:--disable-monodoc}
+ %{!?with_dotnet:--disable-monodoc} \
+ --with-avahi-priv-access-group=adm \
+ --with-autoipd-user=avahi \
+ --with-autoipd-group=avahi
%{__make}
%install
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
%files -n dotnet-avahi-devel
%defattr(644,root,root,755)
%{_prefix}/lib/mono/avahi-sharp
-%{_libdir}/monodoc/sources/avahi-sharp-docs.*
+%{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
%{_pkgconfigdir}/avahi-sharp.pc
%files -n dotnet-avahi-ui
%files -n dotnet-avahi-ui-devel
%defattr(644,root,root,755)
%{_prefix}/lib/mono/avahi-ui-sharp
-%{_libdir}/monodoc/sources/avahi-ui-sharp-docs.*
+%{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
%{_pkgconfigdir}/avahi-ui-sharp.pc
%endif