[OpenTK/cecil] New version with cecil

Miro Hrončok churchyard at fedoraproject.org
Sat Oct 25 18:55:48 UTC 2014


commit 33127c9205a6dccaf5da2f75488ec3c670492b1f
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Sat Oct 25 20:55:29 2014 +0200

    New version with cecil

 OpenTK.spec |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/OpenTK.spec b/OpenTK.spec
index c42ded5..7527d67 100644
--- a/OpenTK.spec
+++ b/OpenTK.spec
@@ -1,16 +1,22 @@
 Name:           OpenTK
 %global         lowercase opentk
 Version:        1.1
-%global         snapshot b1
-Release:        0.2.%{snapshot}%{?dist}
+%global         snapshot 4c
+Release:        1.%{snapshot}%{?dist}
 Summary:        C# library that wraps OpenGL, OpenCL and OpenAL
 # See License.txt for more information
 License:        MIT and BSD
 URL:            http://www.%{lowercase}.com/
 Source0:        https://github.com/%{lowercase}/%{lowercase}/archive/%{version}-%{snapshot}.tar.gz
 BuildArch:      noarch
+%global         cecilver 0.9.5.0
 BuildRequires:  mono(xbuild)
 BuildRequires:  mono(gacutil)
+BuildRequires:  mono(Mono.Cecil) = %{cecilver}
+BuildRequires:  mono(Mono.Cecil.Mdb) = %{cecilver}
+BuildRequires:  mono(Mono.Cecil.Pdb) = %{cecilver}
+BuildRequires:  mono(Mono.Cecil.Rocks) = %{cecilver}
+
 BuildRequires:  dos2unix
 # https://bugzilla.redhat.com/show_bug.cgi?id=1032883
 Provides:       %{lowercase} = %{version}-%{release}
@@ -44,6 +50,13 @@ done
 find Source/Examples -type f -exec dos2unix {} \;
 echo '/* Nothing here */' >> Source/Examples/OpenGLES/SimpleWindow20.cs
 
+# Use Mono.Cecil %%{cecilver}
+cd Source/Generator.Rewrite
+sed -i 's/Include="Mono.Cecil"/Include="Mono.Cecil, version=%{cecilver}"/' Generator.Rewrite.csproj
+sed -i 's/Include="Mono.Cecil.Mdb"/Include="Mono.Cecil.Mdb, version=%{cecilver}"/' Generator.Rewrite.
+cd -
+
+
 %build
 export LANG=en_US.utf8 # Otherwise there are errors
 xbuild %{name}.sln /p:Configuration=Release
@@ -65,6 +78,9 @@ gacutil -i Binaries/OpenTK/Release/%{name}.GLControl.dll -f -package %{name} -ro
 %doc Source/Examples
 
 %changelog
+* Sat Oct 25 2014 Miro Hrončok <mhroncok at redhat.com> - 1.1-1.4c
+- New post release 1.1-4c
+
 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-0.2.b1
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list