From 3c066566762f2d06e4e95a78350b4c6e322dc29b Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Mon, 18 May 2015 14:49:09 +0100 Subject: [PATCH] Add new macro to handle 4->3 part version number --- mono-core.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mono-core.spec b/mono-core.spec index 5919463603..61f3429cb6 100644 --- a/mono-core.spec +++ b/mono-core.spec @@ -110,6 +110,8 @@ Provides: mono(mscorlib) = 2.0.0.0 %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | prefix=%{buildroot}%{_prefix} %{buildroot}%{_bindir}/mono-find-requires; } | sort | uniq | grep ^...' %endif +%define __threepartver env sh -c 'echo %{version} | cut -f1-3 -d.' + %description The Mono Project is an open development initiative that is working to develop an open source, Unix version of the .NET development platform. @@ -118,7 +120,7 @@ cross-platform .NET applications. The project will implement various technologies that have been submitted to the ECMA for standardization. %prep -%setup -q -n mono-%{version} +%setup -q -n mono-%{__threepartver} %patch0 -p1 %patch1 -p1