MyGUI/MyGUI.spec

296 lines
8.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package MyGUI
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
%define capname MYGUI
%define _sover 3_4_3
Name: MyGUI
Version: 3.4.3
Release: 0
Summary: A GUI library for Ogre Rendering Engine
License: MIT
Group: Development/Tools/GUI Builders
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
URL: http://mygui.info/
Source: https://github.com/MyGUI/mygui/archive/MyGUI%{version}.tar.gz
Source1: %{name}.png
Source99: %{name}-rpmlintrc
BuildRequires: cmake
BuildRequires: dejavu
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libOIS-devel
BuildRequires: libX11-devel
BuildRequires: libboost_system-devel
BuildRequires: ogre-devel
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(uuid)
%description
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
MyGUI has overlays for text and for simple rectangles, allowing
uniting them in one batch.
The library supports plugins that allow you to create
dynamically-loaded custom controls or subsystems. Most subsystems are
expandable with plugins without the need to touch the core code. All
resources and settings are described in XML files. It is possible to
load resources like fonts, cursors, images, skins, etc. Forms
(layouts) via dynamically by using XML files.
This package contains ImageSetViewer and LayoutEditor.
%package demo
Summary: Some demo applications for MyGUI
Group: Development/Tools/GUI Builders
Requires: %{name} = %{version}
%description demo
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This package contains some demo applications for package MyGUI.
%package -n libMyGUIEngine%{_sover}
Summary: Shared library for MyGUI
Group: System/Libraries
%description -n libMyGUIEngine%{_sover}
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This package contains the shared library for package MyGUI.
%package -n libMyGUICommon%{_sover}
Summary: Shared library for MyGUI
Group: System/Libraries
%description -n libMyGUICommon%{_sover}
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This package contains the shared library used by most MyGUI tools and demos.
%package tools
Summary: Tools applications for MyGUI
Group: Development/Tools/GUI Builders
Requires: %{name} = %{version}
%description tools
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This package contains tools applications for package MyGUI.
%package devel
Summary: Development files for MyGUI
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libMyGUICommon%{_sover} = %{version}
Requires: libMyGUIEngine%{_sover} = %{version}
Requires: libOIS-devel
Requires: libOgreMain-devel
Requires: pkgconfig
Requires: pkgconfig(freetype2)
Requires: pkgconfig(uuid)
%description devel
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This subpackage contains libraries and header files for developing
applications that want to make use of MyGUI.
%package devel-doc
Summary: Development documentation for MyGUI
Group: Documentation/HTML
BuildArch: noarch
%description devel-doc
MyGUI is a library for creating Graphical User Interfaces (GUIs)
for games and 3D applications.
This subpackage contains the development documentation for MyGUI.
%prep
%setup -q -n mygui-%{name}%{version}
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
%autopatch -p1
%build
%cmake \
-DMYGUI_STATIC=OFF \
-DMYGUI_USE_FREETYPE=ON \
-DMYGUI_BUILD_PLUGINS=ON \
-DMYGUI_BUILD_TOOLS=ON \
-DMYGUI_BUILD_WRAPPER=OFF \
-DMYGUI_INSTALL_TOOLS=ON \
-DMYGUI_INSTALL_DEMOS=ON \
-DMYGUI_INSTALL_DOCS=ON \
-DMYGUI_INSTALL_MEDIA=ON \
-DMYGUI_DONT_USE_OBSOLETE=ON \
-DMYGUI_FULL_RPATH=OFF \
-DCMAKE_SKIP_RPATH=ON \
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
-DCMAKE_BUILD_TYPE=release \
-DOGRE_CONFIG_DIR=%{_datadir}/OGRE
%cmake_build
pushd ../Docs
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
doxygen -s -g Doxyfile 2> /dev/null
doxygen Doxyfile
popd
%install
%cmake_install
# rename demos to avoid duplicate names with other packages
pushd %{buildroot}%{_bindir}
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
demos=`ls -1 Demo_*`
for i in $demos; do
mv $i %{name}-$i
done
popd
# move those files to /usr/share/MYGUI
mv %{buildroot}%{_bindir}/plugins.cfg %{buildroot}%{_datadir}/%{capname}
mv %{buildroot}%{_bindir}/resources.xml %{buildroot}%{_datadir}/%{capname}
# adjust OGRE path
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
sed -i -e 's|PluginFolder=%{_prefix}/local/lib/OGRE|%{_libdir}/OGRE|g' %{buildroot}%{_datadir}/%{capname}/plugins.cfg
# wrapper-script for binaries
cat > %{name}.sh <<EOF
#!/bin/bash
if [[ -z "\$1" ]]; then
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
echo "missing parameter..."
echo ""
echo "usage:"
echo "\$0 LayoutEditor"
echo "\$0 ImageSetViewer"
echo "\$0 FontViewer"
echo ""
echo "or one of the installed demo applications:"
ls -1 %{_bindir}/%{name}-Demo_* | sed -e 's|%{_bindir}/||g'
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
exit 1
fi
# create local working directory
mkdir -p \$HOME/.%{name}
# link the resources to local dir
# just in case some new files appear (update)
ln -sf %{_datadir}/%{capname}/Media \$HOME/.%{name}
if [ ! -f \$HOME/.%{name}/plugins.cfg ]; then
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
# config should be user writeable
cp %{_datadir}/%{capname}/plugins.cfg \$HOME/.%{name}
fi
if [ ! -f \$HOME/.%{name}/resources.xml ]; then
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
cp %{_datadir}/%{capname}/resources.xml \$HOME/.%{name}
fi
# call binary from local working-directory
cd \$HOME/.%{name}
exec "%{_bindir}/\$1"
EOF
install -m 755 -t %{buildroot}%{_bindir} %{name}.sh
# use system fonts
pushd %{buildroot}%{_datadir}/%{capname}/Media/MyGUI_Media
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
ln -sf %{_datadir}/fonts/truetype/DejaVuSans.ttf .
ln -sf %{_datadir}/fonts/truetype/DejaVuSans-ExtraLight.ttf .
popd
# icon
install -D -m 644 -t %{buildroot}%{_datadir}/pixmaps %{SOURCE1}
# menu-entries
for i in FontEditor ImageEditor LayoutEditor SkinEditor; do
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
cat > $i.desktop << EOF
[Desktop Entry]
Name=MyGUI $i
GenericName=MyGUI $i
Comment=%{name} $i
Exec=%{name}.sh $i
Icon=%{name}
Terminal=false
Type=Application
EOF
%suse_update_desktop_file -i $i Development GUIDesigner
done
# remove unwanted files
rm -r %{buildroot}%{_datadir}/%{capname}/Media/UnitTests
rm -r %{buildroot}%{_datadir}/%{capname}/Media/Wrapper/WrapperBaseApp
%fdupes -s %{buildroot}
%post -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
%postun -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
%post -n libMyGUICommon%{_sover} -p /sbin/ldconfig
%postun -n libMyGUICommon%{_sover} -p /sbin/ldconfig
Accepting request 789453 from home:cgiboudeaux:branches:games - Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
2020-03-29 16:14:26 +02:00
%files
%doc README.md
%license COPYING.MIT
%{_libdir}/Plugin_*.so
%{_datadir}/%{capname}/
%exclude %{_datadir}/%{capname}/Media/Demos/
%exclude %{_datadir}/%{capname}/Media/Tools/
%files devel
%{_includedir}/%{capname}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%files devel-doc
%doc Docs/html/*
%files -n libMyGUIEngine%{_sover}
%{_libdir}/libMyGUIEngine.so.*
%files -n libMyGUICommon%{_sover}
%{_libdir}/libMyGUICommon.so.*
%files demo
%{_bindir}/%{name}-Demo_*
%{_datadir}/%{capname}/Media/Demos/
%files tools
%{_bindir}/%{name}.sh
%{_bindir}/FontEditor
%{_bindir}/ImageEditor
%{_bindir}/LayoutEditor
%{_bindir}/SkinEditor
%{_datadir}/%{capname}/Media/Tools/
%{_datadir}/applications/FontEditor.desktop
%{_datadir}/applications/ImageEditor.desktop
%{_datadir}/applications/LayoutEditor.desktop
%{_datadir}/applications/SkinEditor.desktop
%{_datadir}/pixmaps/*.png
%changelog