Accepting request 668660 from games
OBS-URL: https://build.opensuse.org/request/show/668660 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MyGUI?expand=0&rev=3
This commit is contained in:
commit
fc934685d3
10
MyGUI-libCommon-fixup.patch
Normal file
10
MyGUI-libCommon-fixup.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- Common/CMakeLists.txt.orig 2016-03-05 07:17:23.175753455 -0600
|
||||||
|
+++ Common/CMakeLists.txt 2016-03-05 07:18:03.880751014 -0600
|
||||||
|
@@ -89,6 +89,7 @@
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(${PROJECTNAME} ${HEADER_FILES} ${SOURCE_FILES})
|
||||||
|
+set_target_properties(${PROJECTNAME} PROPERTIES VERSION ${MYGUI_VERSION} SOVERSION ${MYGUI_VERSION_MAJOR})
|
||||||
|
|
||||||
|
if(MYGUI_RENDERSYSTEM EQUAL 1)
|
||||||
|
add_dependencies(${PROJECTNAME} MyGUI.DummyPlatform)
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 25 09:40:32 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Add _constraints to avoid OOM errors
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 25 09:17:46 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Handle properly libCommon.so*
|
||||||
|
- Add patch to get a versionned libCommon.so file:
|
||||||
|
* MyGUI-libCommon-fixup.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 20 14:27:43 UTC 2018 - guillaume.gardet@opensuse.org
|
||||||
|
|
||||||
|
- Use %cmake macro. This fixes build for aarch64.
|
||||||
|
- Make use of %license
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 24 11:34:18 UTC 2018 - kasimir_@outlook.de
|
Wed Jan 24 11:34:18 UTC 2018 - kasimir_@outlook.de
|
||||||
|
|
||||||
|
64
MyGUI.spec
64
MyGUI.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package MyGUI
|
# spec file for package MyGUI
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ Patch0: %{name}-lib_suffix.patch
|
|||||||
Patch1: %{name}-gcc47-visibility.patch
|
Patch1: %{name}-gcc47-visibility.patch
|
||||||
# PATCH-FIX-OPENSUSE MyGUI-freetype2-include.patch
|
# PATCH-FIX-OPENSUSE MyGUI-freetype2-include.patch
|
||||||
Patch2: MyGUI-freetype2-include.patch
|
Patch2: MyGUI-freetype2-include.patch
|
||||||
|
# PATCH-FIX-UPSTREAM MyGUI-libCommon-fixup.patch -- https://github.com/MyGUI/mygui/issues/157
|
||||||
|
Patch3: MyGUI-libCommon-fixup.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: dejavu
|
BuildRequires: dejavu
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
@ -124,41 +126,34 @@ This subpackage contains the development documentation for MyGUI.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p0
|
||||||
|
|
||||||
dos2unix *.txt COPYING.MIT
|
dos2unix *.txt COPYING.MIT
|
||||||
chmod 644 *.txt COPYING.MIT
|
chmod 644 *.txt COPYING.MIT
|
||||||
|
|
||||||
%build
|
%build
|
||||||
install -dm 755 build
|
install -dm 755 build
|
||||||
pushd build
|
# this is probably an error in OGRE packaging... but let's just fix the build.
|
||||||
# this is probably an error in OGRE packaging... but let's just fix the build.
|
export OGRE_LIBRARIES="`pkg-config --libs OGRE` -lboost_system"
|
||||||
export OGRE_LIBRARIES="`pkg-config --libs OGRE` -lboost_system"
|
%cmake \
|
||||||
cmake \
|
-DCMAKE_BUILD_TYPE=release \
|
||||||
-DOGRE_LIBRARIES="$OGRE_LIBRARIES" \
|
-DOGRE_LIBRARIES="$OGRE_LIBRARIES" \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DMYGUI_STATIC=FALSE \
|
||||||
-DCMAKE_SKIP_RPATH=YES \
|
-DMYGUI_USE_FREETYPE=TRUE \
|
||||||
-DCMAKE_BUILD_TYPE=release \
|
-DMYGUI_BUILD_SAMPLES=TRUE \
|
||||||
%ifarch x86_64 aarch64 ppc64 ppc64le s390x
|
-DMYGUI_BUILD_PLUGINS=TRUE \
|
||||||
-DLIB_SUFFIX=64 \
|
-DMYGUI_BUILD_TOOLS=TRUE \
|
||||||
%endif
|
-DMYGUI_BUILD_WRAPPER=FALSE \
|
||||||
-DMYGUI_STATIC=FALSE \
|
-DMYGUI_INSTALL_SAMPLES=TRUE \
|
||||||
-DMYGUI_USE_FREETYPE=TRUE \
|
-DMYGUI_INSTALL_TOOLS=TRUE \
|
||||||
-DMYGUI_BUILD_SAMPLES=TRUE \
|
-DMYGUI_INSTALL_DOCS=TRUE \
|
||||||
-DMYGUI_BUILD_PLUGINS=TRUE \
|
-DMYGUI_INSTALL_MEDIA=TRUE \
|
||||||
-DMYGUI_BUILD_TOOLS=TRUE \
|
-DMYGUI_INSTALL_SAMPLES_SOURCE=TRUE \
|
||||||
-DMYGUI_BUILD_WRAPPER=FALSE \
|
-DMYGUI_FULL_RPATH=FALSE
|
||||||
-DMYGUI_INSTALL_SAMPLES=TRUE \
|
|
||||||
-DMYGUI_INSTALL_TOOLS=TRUE \
|
|
||||||
-DMYGUI_INSTALL_DOCS=TRUE \
|
|
||||||
-DMYGUI_INSTALL_MEDIA=TRUE \
|
|
||||||
-DMYGUI_INSTALL_SAMPLES_SOURCE=TRUE \
|
|
||||||
-DMYGUI_FULL_RPATH=FALSE \
|
|
||||||
..
|
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
popd
|
|
||||||
|
|
||||||
pushd Docs
|
pushd ../Docs
|
||||||
doxygen -s -g Doxyfile 2> /dev/null
|
doxygen -s -g Doxyfile 2> /dev/null
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
popd
|
popd
|
||||||
@ -166,6 +161,8 @@ popd
|
|||||||
%install
|
%install
|
||||||
pushd build
|
pushd build
|
||||||
%make_install
|
%make_install
|
||||||
|
# Install libCommon manually as cmake does not install it
|
||||||
|
cp -a %{_lib}/libCommon.so* %{buildroot}%{_libdir}/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# rename demos to avoid duplicate names with other packages
|
# rename demos to avoid duplicate names with other packages
|
||||||
@ -262,12 +259,14 @@ rm Docs/html/installdox || true
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc *.txt COPYING.MIT
|
%doc *.txt
|
||||||
|
%license COPYING.MIT
|
||||||
%{_bindir}/%{name}.sh
|
%{_bindir}/%{name}.sh
|
||||||
%{_bindir}/FontEditor
|
%{_bindir}/FontEditor
|
||||||
%{_bindir}/ImageEditor
|
%{_bindir}/ImageEditor
|
||||||
%{_bindir}/LayoutEditor
|
%{_bindir}/LayoutEditor
|
||||||
%{_bindir}/SkinEditor
|
%{_bindir}/SkinEditor
|
||||||
|
%{_libdir}/libCommon.so.*
|
||||||
%dir %{_datadir}/%{capname}
|
%dir %{_datadir}/%{capname}
|
||||||
%{_datadir}/%{capname}/*.cfg
|
%{_datadir}/%{capname}/*.cfg
|
||||||
%{_datadir}/%{capname}/*.xml
|
%{_datadir}/%{capname}/*.xml
|
||||||
@ -300,11 +299,8 @@ rm Docs/html/installdox || true
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_includedir}/%{capname}
|
%dir %{_includedir}/%{capname}
|
||||||
%{_includedir}/%{capname}/*.h
|
%{_includedir}/%{capname}/*.h
|
||||||
%{_libdir}/libMyGUIEngine.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/libMyGUI.OgrePlatform.a
|
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_libdir}/Plugin_StrangeButton.so
|
|
||||||
%{_libdir}/libEditorFramework.so
|
|
||||||
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.cpp
|
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.cpp
|
||||||
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.h
|
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.h
|
||||||
|
|
||||||
|
8
_constraints
Normal file
8
_constraints
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<memory>
|
||||||
|
<size unit="M">4500</size>
|
||||||
|
</memory>
|
||||||
|
</hardware>
|
||||||
|
</constraints>
|
Loading…
Reference in New Issue
Block a user