Accepting request 66573 from home:Ansus:games

OBS-URL: https://build.opensuse.org/request/show/66573
OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=1
This commit is contained in:
Pavol Rusnak 2011-04-20 13:32:42 +00:00 committed by Git OBS Bridge
commit ecc7522afa
6 changed files with 422 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

54
LIB_SUFFIX.patch Normal file
View File

@ -0,0 +1,54 @@
Index: CMake/ConfigureBuild.cmake
===================================================================
--- CMake/ConfigureBuild.cmake (revision 2802)
+++ CMake/ConfigureBuild.cmake (working copy)
@@ -44,7 +44,7 @@
else ()
configure_file(${MYGUI_TEMPLATES_DIR}/MYGUI.pc.in ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc @ONLY)
endif ()
- install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION lib/pkgconfig)
+ install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
# configure additional packages
Index: CMake/Utils/MyGUIConfigTargets.cmake
===================================================================
--- CMake/Utils/MyGUIConfigTargets.cmake (revision 2802)
+++ CMake/Utils/MyGUIConfigTargets.cmake (working copy)
@@ -38,8 +38,8 @@
function(mygui_install_target TARGETNAME SUFFIX)
install(TARGETS ${TARGETNAME}
RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
- LIBRARY DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
- ARCHIVE DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
+ LIBRARY DESTINATION "lib${LIB_SUFFIX}${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
+ ARCHIVE DESTINATION "lib${LIB_SUFFIX}${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
FRAMEWORK DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
)
install(TARGETS ${TARGETNAME}
@@ -65,8 +65,8 @@
# setup common target settings
function(mygui_config_common TARGETNAME)
set_target_properties(${TARGETNAME} PROPERTIES
- ARCHIVE_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib
- LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib
+ ARCHIVE_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX}
+ LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX}
RUNTIME_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/bin
)
mygui_create_vcproj_userfile(${TARGETNAME})
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 2802)
+++ CMakeLists.txt (working copy)
@@ -84,8 +84,8 @@
set(MYGUI_LIBRARIES MyGUIEngine)
# Specify build paths
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib)
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib)
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX})
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/bin)
if (WIN32 OR APPLE)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

14
MyGUI-rpmlintrc Normal file
View File

@ -0,0 +1,14 @@
# This line is mandatory to access the configuration functions
from Config import *
addFilter("devel-file-in-non-devel-package .*/MYGUI/Media/Tools/LayoutEditor/CodeTemplates.*")
# MyGUI-devel
addFilter("no-dependency-on .*/libMyGUI")
addFilter("static-library-without-debuginfo .*/libMyGUI.OgrePlatform.a")
# MyGUI-devel-doc
addFilter("devel-package-with-non-devel-group Documentation/HTML")
# MyGUI-demo
setBadness('shlib-policy-name-error', 0)

3
MyGUI.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6396348241b9829925ad08ce8d7d5834170c83dcd3526f7bc74144dbb592f4d
size 2448

325
MyGUI.spec Normal file
View File

@ -0,0 +1,325 @@
# Copyright (c) 2009-2010 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de
# norootforbuild
%define prefix /usr
%define _name2 MYGUI
%define _major 3.0
%define _minor 1
%define _SO_nr 3
Summary: A GUI library for Ogre Rendering Engine
Name: MyGUI
Version: %{_major}.%{_minor}
Release: 1
License: LGPL
Group: Development/Tools/GUI Builders
Source: %{name}_%{version}_source.zip
Source1: %{name}.png
Source90: %{name}-rpmlintrc
Patch0: LIB_SUFFIX.patch
URL: http://my-gui.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: dejavu
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libOIS-devel
BuildRequires: libuuid-devel
BuildRequires: libOgreMain-devel
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: dejavu
BuildRequires: Cg-devel Cg
%description
MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue
next targets: GUI have to be fast, flexible and simple in using.
Speed
We are working above productivity. We have already own variant
of Overlays for the text and for the simple rectangles, allowing
uniting them in one batch. In the future it is planned some more
modifications for improvement of result.
Flexibility
The library supports plug-ins that allows to use your own widgets,
which can be loaded in realtime. Loading description of the majority
of parameters, from XML files, and as creation skins in process.
Loading skins, layouts, descriptions of a plane of overlapping,
cursors and fonts. Creation of skins in a code. Support of parsing
of some parameters for widget, for management of a condition widget,
for example, at loading from XML.
Simplicity
The interface for use is done as much as possible clear. Use of
delegates, this disappears necessity for inheritance for reception
of messages. In addition: support an alpha effects. The coloring
text in one line. Skins, consisting from unlimited quantity pieces.
Unlimited quantity of widget condition's (for developers).
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, it is a GUI library for Ogre Rendering Engine. We pursue
next targets: GUI have to be fast, flexible and simple in using.
This package contains some demo applications for package MyGUI.
%package -n libMyGUIEngine%{_SO_nr}
Summary: Shared library for MyGUI
Group: System/Libraries
Provides: libmygui0 = 2.2.3
Obsoletes: libmygui0 < 2.2.3
%description -n libMyGUIEngine%{_SO_nr}
MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue
next targets: GUI have to be fast, flexible and simple in using.
This package contains the shared library for package MyGUI.
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: freetype2-devel
Requires: libMyGUIEngine%{_SO_nr} = %{version}
Requires: libuuid-devel
Requires: libOIS-devel
Requires: libOgreMain-devel
%description devel
MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue
next targets: GUI have to be fast, flexible and simple in using.
Include Files and Libraries mandatory for Development with
MyGUI.
%package devel-doc
Summary: Development documentation for MyGUI
Group: Documentation/HTML
%description devel-doc
MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue
next targets: GUI have to be fast, flexible and simple in using.
Development documentation for package MyGUI.
%debug_package
%prep
%setup -q -n %{name}%{_major}
%patch0
dos2unix *.txt COPYING.LESSER
%__chmod 644 *.txt COPYING.LESSER
%build
%__install -dm 755 build
pushd build
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_SKIP_RPATH=YES \
-DCMAKE_BUILD_TYPE=release \
%ifarch x86_64
-DLIB_SUFFIX=64 \
%endif
-DMYGUI_STATIC=FALSE \
-DMYGUI_USE_FREETYPE=TRUE \
-DMYGUI_BUILD_SAMPLES=TRUE \
-DMYGUI_BUILD_PLUGINS=TRUE \
-DMYGUI_BUILD_TOOLS=TRUE \
-DMYGUI_BUILD_WRAPPER=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 \
..
%if %suse_version <= 1100
find . -name flags.make | xargs %__sed -i -e 's|-I/usr/include/OGRE|`pkg-config --cflags OGRE`|g'
%endif
%__make %{?jobs:-j%{jobs}}
popd
pushd Docs
doxygen -u 2> /dev/null
doxygen Doxyfile
popd
%install
pushd build
%makeinstall
popd
# rename demos to avoid duplicate names with other packages
pushd %{buildroot}%{_bindir}
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}/%{_name2}
%__mv %{buildroot}%{_bindir}/resources.xml \
%{buildroot}%{_datadir}/%{_name2}
# adjust OGRE path
%__sed -i -e 's|PluginFolder=/usr/local/lib/OGRE|%{_libdir}/OGRE|g' \
%{buildroot}%{_datadir}/%{_name2}/plugins.cfg
# wrapper-script for binaries
%__cat > %{name}.sh <<EOF
#! /bin/bash
if [ -z "\$1" ]; then
echo "missing parameter..."
echo ""
echo "usage:"
echo "\$0 LayoutEditor"
echo "\$0 ImageSetViewer"
echo "\$0 FontViewer"
echo ""
echo "or one of the installed demo applications:"
myDemos=\`ls -1 %{_bindir}/%{name}-Demo_*\`
echo \$myDemos | sed -e 's|%{_bindir}/||g'
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}/%{_name2}/Media \$HOME/.%{name}
if [ ! -f \$HOME/.%{name}/plugins.cfg ]; then
# config should be user writeable
%__cp %{_datadir}/%{_name2}/plugins.cfg \$HOME/.%{name}
fi
if [ ! -f \$HOME/.%{name}/resources.xml ]; then
%__cp %{_datadir}/%{_name2}/resources.xml \$HOME/.%{name}
fi
# call binary from local working-directory
cd \$HOME/.%{name}
%{_bindir}/\$1
EOF
%__install -m 755 %{name}.sh \
%{buildroot}%{_bindir}
# use system fonts
pushd %{buildroot}%{_datadir}/%{_name2}/Media/MyGUI_Media
ln -sf %{_datadir}/fonts/truetype/DejaVuSans.ttf .
ln -sf %{_datadir}/fonts/truetype/DejaVuSans-ExtraLight.ttf .
popd
# icon
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 %{SOURCE1} \
%{buildroot}%{_datadir}/pixmaps
# menu-entries
for i in LayoutEditor ImageSetViewer FontViewer; do
%__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}/%{_name2}/Media/UnitTests
%__rm -r %{buildroot}%{_datadir}/%{_name2}/Media/Wrapper/WrapperBaseApp
%__rm Docs/html/installdox
%fdupes -s %{buildroot}
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%post -n libMyGUIEngine%{_SO_nr} -p /sbin/ldconfig
%postun -n libMyGUIEngine%{_SO_nr} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc *.txt COPYING.LESSER
%{_bindir}/%{name}.sh
%{_bindir}/FontViewer
%{_bindir}/ImageSetViewer
%{_bindir}/LayoutEditor
%dir %{_datadir}/%{_name2}
%{_datadir}/%{_name2}/*.cfg
%{_datadir}/%{_name2}/*.xml
%dir %{_datadir}/%{_name2}/Media
%dir %{_datadir}/%{_name2}/Media/Common
%{_datadir}/%{_name2}/Media/Common/*
%dir %{_datadir}/%{_name2}/Media/MyGUI_Media
%{_datadir}/%{_name2}/Media/MyGUI_Media/*
%dir %{_datadir}/%{_name2}/Media/Tools
%{_datadir}/%{_name2}/Media/Tools/*
%{_datadir}/applications/FontViewer.desktop
%{_datadir}/applications/ImageSetViewer.desktop
%{_datadir}/applications/LayoutEditor.desktop
%{_datadir}/pixmaps/*.png
%files devel
%defattr(-,root,root)
%dir %{_includedir}/%{_name2}
%{_includedir}/%{_name2}/*.h
%{_libdir}/libMyGUIEngine.so
%{_libdir}/libMyGUI.OgrePlatform.a
%{_libdir}/pkgconfig/*.pc
%files devel-doc
%defattr(-,root,root)
%doc Docs/html/*
%files -n libMyGUIEngine%{_SO_nr}
%defattr(-,root,root)
%{_libdir}/libMyGUIEngine.so.*
%files demo
%defattr(-,root,root)
%{_bindir}/%{name}-Demo_*
%{_libdir}/libPlugin_StrangeButton.so
#%dir %{_datadir}/%{_name2}
#%dir %{_datadir}/%{_name2}/Media
%dir %{_datadir}/%{_name2}/Media/Demos
%{_datadir}/%{_name2}/Media/Demos/*
%changelog
* Fri Feb 12 2010 Toni Graffy <toni@links2linux.de> - 3.0.1-0.pm.1
- update to 3.0.1
- renamed libmygui0 ==> libMyGUIEngine3
* Fri Oct 30 2009 Toni Graffy <toni@links2linux.de> - 2.2.3-0.pm.1
- update to 2.2.3
* Mon Apr 13 2009 Toni Graffy <toni@links2linux.de> - 2.2.2-0.pm.2
- rebuild with ogre-1.6.2
* Fri Mar 27 2009 Toni Graffy <toni@links2linux.de> - 2.2.2-0.pm.1
- initial build 2.2.2

3
MyGUI_3.0.1_source.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ba75637966bc652bb148107c583dcf56bf5afe4e667c966804fbadc1edced50
size 9139514