[packages/gwen] - new

qboosh qboosh at pld-linux.org
Sun Jan 12 11:59:34 CET 2014


commit 40315dde60c44ce8b9a6be9ea6f23202b77814ee
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 12 12:00:05 2014 +0100

    - new

 gwen-allegro.patch |  12 ++++++
 gwen-bootil.patch  |  11 ++++++
 gwen-sfml2.patch   |  24 ++++++++++++
 gwen-shared.patch  |  28 ++++++++++++++
 gwen.spec          | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 180 insertions(+)
---
diff --git a/gwen.spec b/gwen.spec
new file mode 100644
index 0000000..1033eab
--- /dev/null
+++ b/gwen.spec
@@ -0,0 +1,105 @@
+Summary:	GWEN - GUI Without Extravagant Nonsense
+Summary(pl.UTF-8):	GWEN - GUI bez ekstrawaganckiego nonsensu
+Name:		gwen
+Version:	0
+%define	snap	20130723
+Release:	0.%{snap}.1
+License:	MIT
+Group:		Libraries
+Source0:	%{name}.tar.xz
+# Source0-md5:	40fd5f76ab9083174a8f1715a7b3969a
+Patch0:		%{name}-sfml2.patch
+Patch1:		%{name}-allegro.patch
+Patch2:		%{name}-bootil.patch
+Patch3:		%{name}-shared.patch
+URL:		https://github.com/garrynewman/GWEN
+BuildRequires:	SFML-devel >= 2
+BuildRequires:	allegro5-devel
+BuildRequires:	allegro5-image-devel
+BuildRequires:	allegro5-ttf-devel
+BuildRequires:	bootil-devel
+BuildRequires:	premake >= 4
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GWEN library - GUI Without Extravagant Nonsense.
+
+%description -l pl.UTF-8
+GWEN (GUI Without Extravagant Nonsense) to biblioteka GUI bez
+ekstrawaganckiego nonsensu.
+
+%package devel
+Summary:	Header files for GWEN library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki GWEN
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for GWEN library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki GWEN.
+
+%package static
+Summary:	Static GWEN library
+Summary(pl.UTF-8):	Statyczna biblioteka GWEN
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static GWEN library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka GWEN.
+
+%prep
+%setup -q -n GWEN
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+%build
+cd gwen/Projects
+premake4 gmake
+LDFLAGS="%{rpmldflags}" \
+%{__make} -C linux/gmake \
+	CC="%{__cc}" \
+	CXX="%{__cxx}" \
+	CFLAGS='%{rpmcflags} %{rpmcppflags} $(CPPFLAGS) $(ARCH) -ffast-math -std=c++11' \
+	verbose=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+
+install gwen/lib/linux/gmake/lib*.so $RPM_BUILD_ROOT%{_libdir}
+install gwen/lib/linux/gmake/libgwen_static.a $RPM_BUILD_ROOT%{_libdir}/libgwen.a
+cp -pr gwen/include/Gwen $RPM_BUILD_ROOT%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md
+%attr(755,root,root) %{_libdir}/libgwen.so
+%attr(755,root,root) %{_libdir}/libGWEN-Renderer-Allegro.so
+%attr(755,root,root) %{_libdir}/libGWEN-Renderer-OpenGL.so
+%attr(755,root,root) %{_libdir}/libGWEN-Renderer-OpenGL_DebugFont.so
+%attr(755,root,root) %{_libdir}/libGWEN-Renderer-SFML2.so
+%attr(755,root,root) %{_libdir}/libGWEN-controlfactory.so
+%attr(755,root,root) %{_libdir}/libGWEN-importexport.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/Gwen
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgwen.a
diff --git a/gwen-allegro.patch b/gwen-allegro.patch
new file mode 100644
index 0000000..19c3d3a
--- /dev/null
+++ b/gwen-allegro.patch
@@ -0,0 +1,12 @@
+--- GWEN/gwen/Projects/inc/linux.lua.orig	2014-01-11 16:53:52.836137123 +0100
++++ GWEN/gwen/Projects/inc/linux.lua	2014-01-11 16:51:07.949477377 +0100
+@@ -1,7 +1,7 @@
+ 
+ 
+-ALLEGRO_LIBS	= { "UnitTest", "Renderer-Allegro", "GWEN-Static", "alleg" }
+-ALLEGRO_LIBS_D	= { "UnitTest", "Renderer-Allegro", "GWEN-Static", "alleg" }
++ALLEGRO_LIBS	= { "UnitTest", "Renderer-Allegro", "GWEN-Static", "allegro", "allegro_font", "allegro_image", "allegro_primitives", "allegro_ttf" }
++ALLEGRO_LIBS_D	= { "UnitTest", "Renderer-Allegro", "GWEN-Static", "allegro", "allegro_font", "allegro_image", "allegro_primitives", "allegro_ttf" }
+ 
+ SFML_LIBS		= { "UnitTest", "Renderer-SFML", "GWEN-Static", "sfml-graphics", "sfml-window", "sfml-system", "GL" }
+ SFML_LIBS_D		= { "UnitTest", "Renderer-SFML", "GWEN-Static", "sfml-graphics", "sfml-window", "sfml-system", "GL" }
diff --git a/gwen-bootil.patch b/gwen-bootil.patch
new file mode 100644
index 0000000..ce64110
--- /dev/null
+++ b/gwen-bootil.patch
@@ -0,0 +1,11 @@
+--- GWEN/gwen/Util/ImportExport/DesignerFormat.cpp.orig	2013-12-03 17:59:05.000000000 +0100
++++ GWEN/gwen/Util/ImportExport/DesignerFormat.cpp	2014-01-11 22:03:28.648690905 +0100
+@@ -37,7 +37,7 @@
+ 	{ return; }
+ 
+ 	Bootil::Data::Tree tree;
+-	Bootil::Data::Json::Import( tree, strContents );
++	Bootil::Data::Json::Import( tree, strContents.c_str() );
+ 
+ 	if ( !tree.HasChild( "Controls" ) ) { return; }  // false
+ 
diff --git a/gwen-sfml2.patch b/gwen-sfml2.patch
new file mode 100644
index 0000000..0d38f11
--- /dev/null
+++ b/gwen-sfml2.patch
@@ -0,0 +1,24 @@
+--- GWEN/gwen/Projects/premake4.lua.orig	2013-12-03 17:59:05.000000000 +0100
++++ GWEN/gwen/Projects/premake4.lua	2013-12-07 08:43:00.753323726 +0100
+@@ -61,10 +61,6 @@
+                 { "../Renderers/OpenGL/OpenGL.cpp",
+                   "../Renderers/OpenGL/DebugFont/OpenGL_DebugFont.cpp" } )
+ 
+-DefineRenderer( "SFML",
+-                { "../Renderers/SFML/SFML.cpp" },
+-                SFML_DEFINES )
+-
+ DefineRenderer( "SFML2",
+                 { "../Renderers/SFML2/SFML2.cpp" },
+                 SFML2_DEFINES )
+@@ -98,10 +94,6 @@
+               nil,
+               { "USE_DEBUG_FONT" } )
+ 
+-DefineSample( "SFML",
+-              { "../Samples/SFML/SFML.cpp" },
+-              SFML_LIBS, SFML_LIBS_D, SFML_DEFINES )
+-
+ DefineSample( "SFML2",
+               { "../Samples/SFML2/SFML2.cpp" },
+               SFML2_LIBS, SFML2_LIBS_D, SFML2_DEFINES )
diff --git a/gwen-shared.patch b/gwen-shared.patch
new file mode 100644
index 0000000..f2ed2a0
--- /dev/null
+++ b/gwen-shared.patch
@@ -0,0 +1,28 @@
+--- GWEN/gwen/Projects/premake4.lua.orig	2014-01-11 22:04:10.678689141 +0100
++++ GWEN/gwen/Projects/premake4.lua	2014-01-12 09:18:46.416990534 +0100
+@@ -135,10 +135,10 @@
+ 
+ project "ControlFactory"
+ 	files { "../Util/ControlFactory/**.*" }
+-	kind "StaticLib"
+-	targetname( "controlfactory" )
++	kind "SharedLib"
++	targetname( "GWEN-controlfactory" )
+ 
+ project "ImportExport"
+ 	files { "../Util/ImportExport/**.*" }
+-	kind "StaticLib"
+-	targetname( "importexport" )
++	kind "SharedLib"
++	targetname( "GWEN-importexport" )
+--- GWEN/gwen/Projects/inc/include.lua.orig	2013-12-03 17:59:05.000000000 +0100
++++ GWEN/gwen/Projects/inc/include.lua	2014-01-12 09:19:28.623655429 +0100
+@@ -6,7 +6,7 @@
+ 	project ( "Renderer-"..name )
+ 	files( filetable )
+ 	flags( { "Symbols" } )
+-	kind( "StaticLib" )
++	kind( "SharedLib" )
+     if ( definestable ) then defines( definestable ) end
+ 	
+ 	configuration( "Release" )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gwen.git/commitdiff/40315dde60c44ce8b9a6be9ea6f23202b77814ee



More information about the pld-cvs-commit mailing list