File apache2-mod_dnssd.spec of Package apache2-mod_dnssd

#
# spec file for package apache2-mod_dnssd (Version 0.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           apache2-mod_dnssd
%define _name   mod_dnssd
Summary:        Apache2 module for Zeroconf support via DNS-SD
Version:        0.6
Release:        3
Source:         %{_name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE apache2-mod_dnssd-apxs2-prefork.patch
Patch0:         apache2-mod_dnssd-apxs2-prefork.patch
License:        The Apache Software License
Group:          Productivity/Networking/Web/Servers
Url:            http://0pointer.de/lennart/projects/mod_dnssd/
BuildRequires:  apache2-devel
BuildRequires:  libapr1-devel
BuildRequires:  libavahi-devel
BuildRequires:  pkg-config
Supplements:    packageand(apache2-prefork:gnome-user-share)
Supplements:    packageand(apache2-worker:gnome-user-share)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)

%description
mod_dnssd is an Apache HTTPD module which adds Zeroconf support via
DNS-SD using Avahi.



Authors:
--------
    Lennart Poettering

%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1

%build
%configure \
	--disable-lynx
%__make %{?jobs:-j%jobs}

%install
# make install can't work, as apxs -i apparently does not like redirection
mkdir -p %{buildroot}/%{apache_libexecdir}
cp -p src/.libs/%{_name}.so %{buildroot}/%{apache_libexecdir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README LICENSE
%dir %{apache_libexecdir}
%{apache_libexecdir}/%{_name}.so

%changelog
* Tue May 19 2009 vuntz@novell.com
- Add Supplements for gnome-user-share and
  {apache2-prefork,apache2-worker} since gnome-user-share requires
  this apache module to have webdav file sharing.
* Tue May 19 2009 dominique-obs@leuenberger.net
- Cleanup of the specfile.
- --disable-lynx to remove the lynx BuildRequires.
* Tue May 12 2009 dominique-obs@leuenberger.net
-  Initial package during Community Week 1
openSUSE Build Service is sponsored by