- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/mono-zeroconf?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2024-05-22 11:16:22 +00:00 committed by Git OBS Bridge
parent 5ed4b0674e
commit 25b39aad18
2 changed files with 22 additions and 13 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Feb 22 15:26:29 UTC 2024 - pgajdos@suse.com
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Sun Jun 5 00:00:00 UTC 2016 - fwdsbs.to.11df@xoxy.net
- Added patch mono-search-path.patch:
* Added alternative search path in configure script for System.dll and System.Web.dll in order to fix build with mono 4.4.0 and up
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 5 22:58:04 EDT 2009 - abockover@novell.com Tue May 5 22:58:04 EDT 2009 - abockover@novell.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package mono-zeroconf (Version 0.9.0) # spec file for package mono-zeroconf
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,21 +12,19 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
# norootforbuild
Name: mono-zeroconf Name: mono-zeroconf
AutoReqProv: on Summary: A cross platform Zero Configuration Networking library for Mono
License: MIT License: MIT
Group: Development/Languages/Mono Group: Development/Languages/Mono
Summary: A cross platform Zero Configuration Networking library for Mono URL: http://mono-project.com/Mono.Zeroconf
Url: http://mono-project.com/Mono.Zeroconf
Version: 0.9.0 Version: 0.9.0
Release: 1 Release: 0
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
Patch0: mono-search-path.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mono-devel BuildRequires: mono-devel
@ -109,7 +107,6 @@ Authors:
%if %{build_mdnsr} == 1 %if %{build_mdnsr} == 1
%package provider-mDNSResponder %package provider-mDNSResponder
License: MIT
Summary: A cross platform Zero Configuration Networking library for Mono Summary: A cross platform Zero Configuration Networking library for Mono
Group: Development/Languages/Mono Group: Development/Languages/Mono
BuildRequires: mDNSResponder-devel BuildRequires: mDNSResponder-devel
@ -138,7 +135,6 @@ Authors:
%if %{build_avahi} == 1 %if %{build_avahi} == 1
%package provider-avahi %package provider-avahi
License: MIT
Summary: A cross platform Zero Configuration Networking library for Mono Summary: A cross platform Zero Configuration Networking library for Mono
Group: Development/Languages/Mono Group: Development/Languages/Mono
Requires: avahi Requires: avahi
@ -166,7 +162,6 @@ Authors:
%if %{build_docs} == 1 %if %{build_docs} == 1
%package doc %package doc
License: MIT
Summary: A cross platform Zero Configuration Networking library for Mono Summary: A cross platform Zero Configuration Networking library for Mono
Group: Development/Languages/Mono Group: Development/Languages/Mono
@ -191,7 +186,6 @@ Authors:
## --- Devel Package (pkg-config file) --- ## ## --- Devel Package (pkg-config file) --- ##
%package devel %package devel
License: MIT
Summary: A cross platform Zero Configuration Networking library for Mono Summary: A cross platform Zero Configuration Networking library for Mono
Group: Development/Languages/Mono Group: Development/Languages/Mono
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -216,6 +210,10 @@ Authors:
%prep %prep
%setup -q %setup -q
%define mcsver %({ mcs --version | awk '{print $5}' | cut -f1 -d"." ; mcs --version | awk '{print $5}' | cut -f2 -d"." ; } | xargs printf "%03d")
%if 0%{?mcsver} >= 4004
%patch -P 0 -p1
%endif
%build %build
%{?env_options} %{?env_options}