[OpenTK] Initial import (#890872)

Miro Hrončok churchyard at fedoraproject.org
Mon Jan 14 17:15:50 UTC 2013


commit e8af8cb870f8fdd2504a088a30cf3ce752e7c6b0
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Mon Jan 14 18:15:45 2013 +0100

    Initial import (#890872)

 .gitignore  |    1 +
 OpenTK.spec |   79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..25e5e03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/OpenTK-20130108svn3126.tar.gz
diff --git a/OpenTK.spec b/OpenTK.spec
new file mode 100644
index 0000000..3a35200
--- /dev/null
+++ b/OpenTK.spec
@@ -0,0 +1,79 @@
+Name:           OpenTK
+Version:        0.0
+%global         snapshot 20130108svn3126
+Release:        5.%{snapshot}%{?dist}
+Summary:        C# library that wraps OpenGL, OpenCL and OpenAL
+# See License.txt for more information
+License:        MIT and BSD
+URL:            http://www.opentk.com/
+# svn export https://opentk.svn.sourceforge.net/svnroot/opentk/trunk opentk
+# tar czf %%{name}-%%{snapshot}.tar.gz opentk
+Source0:        %{name}-%{snapshot}.tar.gz
+BuildArch:      noarch
+BuildRequires:  mono(xbuild)
+BuildRequires:  mono(gacutil)
+BuildRequires:  dos2unix
+
+%description
+The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL
+and OpenAL. It is suitable for games, scientific applications and any other
+project that requires 3d graphics, audio or compute functionality.
+
+%package        doc
+Requires:       %{name} = %{version}-%{release}
+Summary:        Documentation for %{name}
+
+%description    doc
+The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL
+and OpenAL. It is suitable for games, scientific applications and any other
+project that requires 3d graphics, audio or compute functionality.
+
+This package contains the manual and several examples.
+
+%prep
+%setup -q -n opentk
+
+for FILE in Documentation/License.txt Source/Examples/Data/Shaders/Parallax_FS.glsl; do
+  iconv -f iso8859-1 -t utf-8 $FILE > $FILE.conv && mv -f $FILE.conv $FILE
+done
+
+# Shouldn't harm the correct ones
+find Source/Examples -type f -exec dos2unix {} \;
+echo '/* Nothing here */' >> Source/Examples/OpenGLES/SimpleWindow20.cs
+
+%build
+export LANG=en_US.utf8 # Otherwise there are errors
+xbuild %{name}.sln /p:Configuration=Release
+chmod -x Source/Examples/obj/Release/Examples.exe
+
+%install
+mkdir -p %{buildroot}/usr/lib/mono/gac/
+gacutil -i Binaries/OpenTK/Release/%{name}.dll -f -package %{name} -root %{buildroot}/usr/lib
+gacutil -i Binaries/OpenTK/Release/%{name}.Compatibility.dll -f -package %{name} -root %{buildroot}/usr/lib
+gacutil -i Binaries/OpenTK/Release/%{name}.GLControl.dll -f -package %{name} -root %{buildroot}/usr/lib
+
+%files
+%doc Documentation/*.txt
+/usr/lib/mono/gac/%{name}*
+/usr/lib/mono/%{name}
+
+%files doc
+%doc Documentation/Manual.pdf
+%doc Source/Examples
+
+%changelog
+* Sun Jan 13 2013 Miro Hrončok <mhroncok at redhat.com> - 0.0-5.20130108svn3126
+- Split the doc package
+- Add examples to the docs
+
+* Thu Jan 10 2013 Miro Hrončok <mhroncok at redhat.com> - 0.0-4.20130108svn3126
+- New revision
+
+* Mon Dec 31 2012 Miro Hrončok <miro at hroncok.cz> - 0.0-3.20120523svn3125
+- Renamed from opentk to OpenTK
+
+* Mon Dec 31 2012 Miro Hrončok <miro at hroncok.cz> - 0.0-2.20120523svn3125
+- The package now owns /usr/lib/mono/OpenTK directory
+
+* Sun Dec 30 2012 Miro Hrončok <miro at hroncok.cz> - 0.0-1.20120523svn3125
+- First try
diff --git a/sources b/sources
index e69de29..d1e1084 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ff0a9a11c1bb1f6de2d94a4b67e6dc19  OpenTK-20130108svn3126.tar.gz


More information about the scm-commits mailing list