2008-01-08 04:42:12 +01:00
|
|
|
#
|
2008-09-15 01:22:50 +02:00
|
|
|
# spec file for package mono-zeroconf (Version 0.8.0)
|
2008-01-08 04:42:12 +01:00
|
|
|
#
|
2008-01-24 00:54:27 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-01-08 04:42:12 +01:00
|
|
|
#
|
2008-09-15 01:22:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-01-08 04:42:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-26 16:24:18 +01:00
|
|
|
|
2008-01-08 04:42:12 +01:00
|
|
|
Name: mono-zeroconf
|
|
|
|
AutoReqProv: on
|
|
|
|
License: X11/MIT
|
|
|
|
Group: Development/Languages/Mono
|
|
|
|
Summary: A cross platform Zero Configuration Networking library for Mono
|
|
|
|
Url: http://mono-project.com/Mono.Zeroconf
|
2008-09-15 01:22:50 +02:00
|
|
|
Version: 0.8.0
|
2008-01-24 00:54:27 +01:00
|
|
|
Release: 1
|
2008-01-08 04:42:12 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: mono-devel
|
|
|
|
Requires: mono-zeroconf-provider
|
2008-09-15 01:22:50 +02:00
|
|
|
%define assembly_version 3.0.0.80
|
2008-01-08 04:42:12 +01:00
|
|
|
## --- Build Configuration --- ##
|
|
|
|
%define build_avahi 1
|
|
|
|
%define build_mdnsr 1
|
|
|
|
%define build_docs 1
|
|
|
|
# openSUSE Configuration
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%if %{suse_version} >= 1030
|
|
|
|
%define build_avahi 1
|
|
|
|
%define build_mdnsr 0
|
2008-09-15 01:22:50 +02:00
|
|
|
#BuildRequires: avahi-mono
|
2008-01-08 04:42:12 +01:00
|
|
|
%endif
|
|
|
|
%if %{suse_version} >= 1020 && %{suse_version} < 1030
|
|
|
|
%define build_avahi 1
|
|
|
|
%define build_mdnsr 1
|
2008-09-15 01:22:50 +02:00
|
|
|
#BuildRequires: avahi-mono
|
2008-01-08 04:42:12 +01:00
|
|
|
BuildRequires: mDNSResponder-devel
|
|
|
|
%endif
|
|
|
|
%if %{suse_version} < 1020
|
|
|
|
%define build_avahi 0
|
|
|
|
%define build_mdnsr 1
|
|
|
|
BuildRequires: mDNSResponder-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Fedora Configuration
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%define env_options export MONO_SHARED_DIR=/tmp
|
|
|
|
%define build_docs 0
|
|
|
|
%define build_mdnsr 0
|
|
|
|
%define build_avahi 1
|
|
|
|
BuildRequires: avahi-sharp
|
|
|
|
%endif
|
|
|
|
# Mandriva Configuration
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
%define build_docs 0
|
|
|
|
%define build_avahi 1
|
|
|
|
%define build_mdnsr 0
|
|
|
|
BuildRequires: avahi-sharp
|
|
|
|
%endif
|
|
|
|
%if 0%{?build_docs}
|
|
|
|
BuildRequires: monodoc-core
|
|
|
|
%endif
|
|
|
|
## --- Base Package Information --- ##
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mono.Zeroconf is a cross platform Zero Configuration Networking library
|
|
|
|
for Mono and .NET. It provides a unified API for performing the most
|
|
|
|
common zeroconf operations on a variety of platforms and subsystems:
|
|
|
|
all the operating systems supported by Mono and both the Avahi and
|
|
|
|
Bonjour/mDNSResponder transports.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Aaron Bockover <abockover@novell.com>
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%dir %_prefix/lib/mono-zeroconf
|
|
|
|
%dir %_prefix/lib/mono/mono-zeroconf
|
|
|
|
%dir %_prefix/lib/mono/gac/Mono.Zeroconf
|
2008-01-24 00:54:27 +01:00
|
|
|
%dir %_prefix/lib/mono/gac/Mono.Zeroconf/%{assembly_version}__e60c4f4a95e1099e
|
2008-01-26 00:13:38 +01:00
|
|
|
%dir %_prefix/lib/mono/gac/policy.1.0.Mono.Zeroconf
|
|
|
|
%dir %_prefix/lib/mono/gac/policy.1.0.Mono.Zeroconf/0.0.0.0__e60c4f4a95e1099e
|
2008-03-26 16:24:18 +01:00
|
|
|
%dir %_prefix/lib/mono/gac/policy.2.0.Mono.Zeroconf
|
|
|
|
%dir %_prefix/lib/mono/gac/policy.2.0.Mono.Zeroconf/0.0.0.0__e60c4f4a95e1099e
|
2008-09-15 01:22:50 +02:00
|
|
|
%dir %_prefix/lib/mono/gac/policy.3.0.Mono.Zeroconf
|
|
|
|
%dir %_prefix/lib/mono/gac/policy.3.0.Mono.Zeroconf/0.0.0.0__e60c4f4a95e1099e
|
2008-01-08 04:42:12 +01:00
|
|
|
%_bindir/mzclient
|
|
|
|
%_prefix/share/pkgconfig/mono-zeroconf.pc
|
|
|
|
%_prefix/lib/mono/gac/Mono.Zeroconf/*/*.dll*
|
2008-01-26 00:13:38 +01:00
|
|
|
%_prefix/lib/mono/gac/policy.1.0.Mono.Zeroconf/*/*
|
2008-03-26 16:24:18 +01:00
|
|
|
%_prefix/lib/mono/gac/policy.2.0.Mono.Zeroconf/*/*
|
2008-09-15 01:22:50 +02:00
|
|
|
%_prefix/lib/mono/gac/policy.3.0.Mono.Zeroconf/*/*
|
2008-01-08 04:42:12 +01:00
|
|
|
%_prefix/lib/mono/mono-zeroconf/Mono.Zeroconf.dll*
|
|
|
|
%_prefix/lib/mono-zeroconf/MZClient.exe*
|
|
|
|
## --- mDNSResponder Provider --- ##
|
|
|
|
%if %{build_mdnsr} == 1
|
|
|
|
|
|
|
|
%package provider-mDNSResponder
|
2008-09-15 01:22:50 +02:00
|
|
|
License: X11/MIT
|
2008-01-08 04:42:12 +01:00
|
|
|
Summary: A cross platform Zero Configuration Networking library for Mono
|
|
|
|
Group: Development/Languages/Mono
|
|
|
|
BuildRequires: mDNSResponder-devel
|
|
|
|
Requires: mDNSResponder mono-zeroconf
|
|
|
|
Provides: mono-zeroconf-provider
|
|
|
|
|
|
|
|
%description provider-mDNSResponder
|
|
|
|
Mono.Zeroconf is a cross platform Zero Configuration Networking library
|
|
|
|
for Mono and .NET. It provides a unified API for performing the most
|
|
|
|
common zeroconf operations on a variety of platforms and subsystems:
|
|
|
|
all the operating systems supported by Mono and both the Avahi and
|
|
|
|
Bonjour/mDNSResponder transports.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Aaron Bockover <abockover@novell.com>
|
|
|
|
|
|
|
|
%files provider-mDNSResponder
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_prefix/lib/mono-zeroconf
|
|
|
|
%_prefix/lib/mono-zeroconf/Mono.Zeroconf.Providers.Bonjour.dll*
|
|
|
|
%endif
|
|
|
|
## --- Avahi Provider --- ##
|
|
|
|
%if %{build_avahi} == 1
|
|
|
|
|
|
|
|
%package provider-avahi
|
2008-09-15 01:22:50 +02:00
|
|
|
License: X11/MIT
|
2008-01-08 04:42:12 +01:00
|
|
|
Summary: A cross platform Zero Configuration Networking library for Mono
|
|
|
|
Group: Development/Languages/Mono
|
2008-09-15 01:22:50 +02:00
|
|
|
Requires: mono-zeroconf avahi
|
2008-01-08 04:42:12 +01:00
|
|
|
Provides: mono-zeroconf-provider
|
|
|
|
|
|
|
|
%description provider-avahi
|
|
|
|
Mono.Zeroconf is a cross platform Zero Configuration Networking library
|
|
|
|
for Mono and .NET. It provides a unified API for performing the most
|
|
|
|
common zeroconf operations on a variety of platforms and subsystems:
|
|
|
|
all the operating systems supported by Mono and both the Avahi and
|
|
|
|
Bonjour/mDNSResponder transports.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Aaron Bockover <abockover@novell.com>
|
|
|
|
|
|
|
|
%files provider-avahi
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_prefix/lib/mono-zeroconf
|
2008-09-15 01:22:50 +02:00
|
|
|
%_prefix/lib/mono-zeroconf/Mono.Zeroconf.Providers.AvahiDBus.dll*
|
2008-01-08 04:42:12 +01:00
|
|
|
%endif
|
|
|
|
## --- Monodoc Developer API Documentation --- ##
|
|
|
|
%if %{build_docs} == 1
|
|
|
|
|
|
|
|
%package doc
|
2008-09-15 01:22:50 +02:00
|
|
|
License: X11/MIT
|
2008-01-08 04:42:12 +01:00
|
|
|
Summary: A cross platform Zero Configuration Networking library for Mono
|
|
|
|
Group: Development/Languages/Mono
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Mono.Zeroconf is a cross platform Zero Configuration Networking library
|
|
|
|
for Mono and .NET. It provides a unified API for performing the most
|
|
|
|
common zeroconf operations on a variety of platforms and subsystems:
|
|
|
|
all the operating systems supported by Mono and both the Avahi and
|
|
|
|
Bonjour/mDNSResponder transports.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Aaron Bockover <abockover@novell.com>
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_prefix/lib/monodoc/sources/
|
|
|
|
%_prefix/lib/monodoc/sources/mono-zeroconf-docs*
|
|
|
|
%endif
|
|
|
|
## --- Build/Install --- #
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{?env_options}
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
%if %{build_docs} == 0
|
|
|
|
--disable-docs \
|
|
|
|
%else
|
|
|
|
--enable-docs \
|
|
|
|
%endif
|
|
|
|
%if %{build_avahi} == 0
|
|
|
|
--disable-avahi \
|
|
|
|
%else
|
|
|
|
--enable-avahi \
|
|
|
|
%endif
|
|
|
|
%if %{build_mdnsr} == 0
|
|
|
|
--disable-mdnsresponder
|
|
|
|
%else
|
|
|
|
--enable-mdnsresponder
|
|
|
|
%endif
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{?env_options}
|
2008-01-26 00:13:38 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-01-08 04:42:12 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pkgconfig
|
|
|
|
mv $RPM_BUILD_ROOT/usr/lib/pkgconfig/* $RPM_BUILD_ROOT/usr/share/pkgconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%changelog
|
2008-09-15 01:22:50 +02:00
|
|
|
* Thu Sep 11 2008 abockover@suse.de
|
|
|
|
- Updated to version 0.8.0
|
|
|
|
- New Avahi provider using DBus instead of libavahi
|
|
|
|
- Improved IPv6 support (AddressProtocol/A6 query support)
|
|
|
|
- Garbage Collection bug fixed in the Bonjour backend
|
|
|
|
- New MZClient features: setting interface, domain, address type
|
|
|
|
restrictions on browse/resolve operations
|
|
|
|
* Thu Mar 20 2008 abockover@suse.de
|
2008-03-26 16:24:18 +01:00
|
|
|
- Updated to version 0.7.6
|
|
|
|
- Adds NetworkInterface API to IService objects
|
|
|
|
- Supports IPv6 host address resolutions
|
2008-01-26 00:13:38 +01:00
|
|
|
* Fri Jan 25 2008 abockover@suse.de
|
|
|
|
- Updated to version 0.7.5
|
|
|
|
- Adds GAC version policy assemblies so package upgrades don't break apps
|
2008-01-24 00:54:27 +01:00
|
|
|
* Wed Jan 23 2008 abockover@suse.de
|
|
|
|
- Updated to version 0.7.4
|
|
|
|
- Fixes IP address resolution bug in Bonjour provider that
|
|
|
|
only manifested under .NET on Windows XP SP2
|
|
|
|
- Minor bug fix in MZClient
|
|
|
|
- libdir patch removed from package; fixed in upstream release
|
2008-09-15 01:22:50 +02:00
|
|
|
* Thu Dec 27 2007 abockover@suse.de
|
2008-01-08 04:42:12 +01:00
|
|
|
- Patch to fix libdir issue in mono-zeroconf.pc on x86_64
|
2008-09-15 01:22:50 +02:00
|
|
|
* Sat Dec 22 2007 abockover@suse.de
|
2008-01-08 04:42:12 +01:00
|
|
|
- Initial import of Mono.Zeroconf for STABLE from the build serivce
|
|
|
|
- Version 0.7.3 release
|
|
|
|
- Provides a cross platform (Linux, Mac, Windows) Mono/.NET API
|
|
|
|
for Zero Configuration networking supporting either Bonjour
|
|
|
|
or Avahi mDNS providers
|