Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MJHutchinson:mono-games
ogredotnet
ogredotnet.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ogredotnet.spec of Package ogredotnet
%define name ogredotnet %define major 1 %define minor 4 %define micro 9 %define svn 223 %define version %{major}.%{minor}.%{micro}.%{svn} %define versiondash %{major}-%{minor}-%{micro}-r%{svn} %define release 0 Summary: Ogre.NET: a .NET/Mono binding for the OGRE graphics engine Name: %{name} Url: http://www.ogre3d.org/ Version: %{version} Release: %{release} License: LGPL v 2.1 Group: Development/Libraries Source0: %{name}-v%{versiondash}.tar.bz2 Source1: ogredotnet.snk BuildRequires: ogre-devel = %{major}.%{minor}.%{micro} mono-devel nant cmake swig gcc-c++ pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description OGRE.NET is a managed wrapper for OGRE, the Object-oriented Graphics Rendering Engine, that makes it possible to build OGRE-based cross-platform games using Mono or .NET. %prep %setup -q -n %{name}-v%{versiondash} cp $RPM_SOURCE_DIR/ogredotnet.snk $RPM_BUILD_DIR/%{name}-v%{versiondash}/OgreNet/ogredotnet.snk cp $RPM_SOURCE_DIR/ogredotnet.snk $RPM_BUILD_DIR/%{name}-v%{versiondash}/Math3D/ogredotnet.snk #%patch -p0 %build #build the glue files cmake -G "Unix Makefiles" make #generate the C# build files ./runprebuild.sh #version the assemblies sed -e 's/1\.0\.\*/%{major}.%{minor}.%{micro}.%{svn}/' OgreNet/AssemblyInfo.cs > OgreNet/AssemblyInfo2.cs sed -e 's/AssemblyKeyFile("/AssemblyKeyFile("ogredotnet.snk/' OgreNet/AssemblyInfo2.cs > OgreNet/AssemblyInfo.cs sed -e 's/1\.0\.\*/%{major}.%{minor}.%{micro}.%{svn}/' Math3D/AssemblyInfo.cs > Math3D/AssemblyInfo2.cs sed -e 's/AssemblyKeyFile("/AssemblyKeyFile("ogredotnet.snk/' Math3D/AssemblyInfo2.cs > Math3D/AssemblyInfo.cs #do the C# build nant #sign the assembly #create the dllmap cat <<EOF > bin/OgreDotNet.dll.config <configuration> <dllmap dll="OgreBindings" target="libOgreDotNet.so.%{version}"/> </configuration> EOF %install cd bin #install glue libs mkdir -p %{buildroot}%{_libdir} cp OgreBindings.so %{buildroot}%{_libdir}/libOgreDotNet.so.%{version} #GAC the assemblies to /lib NOT /lib64 etc gacutil -i OgreDotNet.dll -root %{buildroot}%{_prefix}/lib/ gacutil -i Math3D.dll -root %{buildroot}%{_prefix}/lib/ mkdir -p %{buildroot}%{_prefix}/lib/mono/OgreDotNet cp OgreDotNet.dll Math3D.dll %{buildroot}%{_prefix}/lib/mono/OgreDotNet #create the pkgconfig file mkdir -p %{buildroot}%{_prefix}/lib/pkgconfig cat <<EOF > %{buildroot}%{_prefix}/lib/pkgconfig/OgreDotNet.pc prefix=%{_prefix} exec_prefix=\${prefix} pkglibdir=\${exec_prefix}/lib/mono/OgreDotNet Libraries=\${pkglibdir}/OgreDotNet.dll \${pkglibdir}/Math3D.dll Name: OGRE.NET Description: Version: %{version} Requires: Libs: /r:\${pkglibdir}/OgreDotNet.dll /r:\${pkglibdir}/Math3D.dll EOF # skip the samples for now #mkdir -p $RPM_BUILD_ROOT%{_libdir}/OGRE.NET/Samples #cp -r bin/*.exe $RPM_BUILD_ROOT%{_libdir}/OGRE.NET/Samples %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-, root, root) %{_libdir}/libOgreDotNet.so.%{version} %{_prefix}/lib/mono/gac/OgreDotNet %{_prefix}/lib/mono/gac/Math3D %{_prefix}/lib/mono/OgreDotNet %{_prefix}/lib/mono/OgreDotNet/* %{_prefix}/lib/pkgconfig/OgreDotNet.pc %changelog * Wed Aug 27 2008 Michael Hutchinson <mhutchinson@novell.com> - 1.4.9.223 - Initial version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor