From 0e74b6a9e1c60658048094e72c8180b219e995841047b96f68905965383cfcce Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 20 Apr 2011 13:41:53 +0000 Subject: [PATCH] - based on a package by Toni Graffy OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=2 --- LIB_SUFFIX.patch => MyGUI-lib_suffix.patch | 0 MyGUI-rpmlintrc | 2 +- MyGUI.changes | 5 + MyGUI.spec | 201 +++++++++------------ 4 files changed, 94 insertions(+), 114 deletions(-) rename LIB_SUFFIX.patch => MyGUI-lib_suffix.patch (100%) create mode 100644 MyGUI.changes diff --git a/LIB_SUFFIX.patch b/MyGUI-lib_suffix.patch similarity index 100% rename from LIB_SUFFIX.patch rename to MyGUI-lib_suffix.patch diff --git a/MyGUI-rpmlintrc b/MyGUI-rpmlintrc index 8bdc299..0d5419a 100644 --- a/MyGUI-rpmlintrc +++ b/MyGUI-rpmlintrc @@ -11,4 +11,4 @@ addFilter("static-library-without-debuginfo .*/libMyGUI.OgrePlatform.a") addFilter("devel-package-with-non-devel-group Documentation/HTML") # MyGUI-demo -setBadness('shlib-policy-name-error', 0) \ No newline at end of file +setBadness('shlib-policy-name-error', 0) diff --git a/MyGUI.changes b/MyGUI.changes new file mode 100644 index 0000000..8e3aeec --- /dev/null +++ b/MyGUI.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Apr 20 13:35:58 UTC 2011 - prusnak@opensuse.org + +- based on a package by Toni Graffy + diff --git a/MyGUI.spec b/MyGUI.spec index 6c93c2e..cfcb838 100644 --- a/MyGUI.spec +++ b/MyGUI.spec @@ -1,46 +1,41 @@ -# 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 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# -# norootforbuild - -%define prefix /usr -%define _name2 MYGUI +%define capname MYGUI %define _major 3.0 %define _minor 1 -%define _SO_nr 3 +%define _sover 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 +Name: MyGUI +Version: %{_major}.%{_minor} +Release: 1 +License: LGPLv3 +Summary: A GUI library for Ogre Rendering Engine +Url: http://my-gui.sourceforge.net/ +Group: Development/Tools/GUI Builders +Source: %{name}_%{version}_source.zip +Source1: %{name}.png +Source90: %{name}-rpmlintrc +Patch0: %{name}-lib_suffix.patch +BuildRequires: Cg +BuildRequires: Cg-devel +BuildRequires: cmake +BuildRequires: dejavu +BuildRequires: dos2unix +BuildRequires: doxygen +BuildRequires: fdupes +BuildRequires: freetype2-devel +BuildRequires: gcc-c++ +BuildRequires: graphviz +BuildRequires: libOIS-devel +BuildRequires: libOgreMain-devel +BuildRequires: libuuid-devel +BuildRequires: pkgconfig +BuildRequires: unzip +BuildRequires: update-desktop-files +Requires: dejavu +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue @@ -71,9 +66,9 @@ 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} +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 @@ -81,26 +76,26 @@ 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 +%package -n libMyGUIEngine%{_sover} +Summary: Shared library for MyGUI +Group: System/Libraries +Provides: libmygui0 = 2.2.3 +Obsoletes: libmygui0 < 2.2.3 -%description -n libMyGUIEngine%{_SO_nr} +%description -n libMyGUIEngine%{_sover} 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 +Summary: Include Files and Libraries mandatory for Development +Group: Development/Libraries/C and C++ +Requires: freetype2-devel +Requires: libMyGUIEngine%{_sover} = %{version} +Requires: libOIS-devel +Requires: libOgreMain-devel +Requires: libuuid-devel %description devel MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue @@ -110,8 +105,8 @@ Include Files and Libraries mandatory for Development with MyGUI. %package devel-doc -Summary: Development documentation for MyGUI -Group: Documentation/HTML +Summary: Development documentation for MyGUI +Group: Documentation/HTML %description devel-doc MyGUI, it is a GUI library for Ogre Rendering Engine. We pursue @@ -126,10 +121,10 @@ Development documentation for package MyGUI. %patch0 dos2unix *.txt COPYING.LESSER -%__chmod 644 *.txt COPYING.LESSER +chmod 644 *.txt COPYING.LESSER %build -%__install -dm 755 build +install -dm 755 build pushd build cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ @@ -152,11 +147,7 @@ pushd build -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}} + make %{?_smp_mflags} popd pushd Docs @@ -166,29 +157,26 @@ popd %install pushd build - %makeinstall +%make_install 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 + 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} +mv %{buildroot}%{_bindir}/plugins.cfg %{buildroot}%{_datadir}/%{capname} +mv %{buildroot}%{_bindir}/resources.xml %{buildroot}%{_datadir}/%{capname} # adjust OGRE path -%__sed -i -e 's|PluginFolder=/usr/local/lib/OGRE|%{_libdir}/OGRE|g' \ - %{buildroot}%{_datadir}/%{_name2}/plugins.cfg - +sed -i -e 's|PluginFolder=/usr/local/lib/OGRE|%{_libdir}/OGRE|g' %{buildroot}%{_datadir}/%{capname}/plugins.cfg + # wrapper-script for binaries -%__cat > %{name}.sh < %{name}.sh < $i.desktop << EOF + cat > $i.desktop << EOF [Desktop Entry] Name=MyGUI $i GenericName=MyGUI $i @@ -253,18 +241,18 @@ EOF done # remove unwanted files -%__rm -r %{buildroot}%{_datadir}/%{_name2}/Media/UnitTests -%__rm -r %{buildroot}%{_datadir}/%{_name2}/Media/Wrapper/WrapperBaseApp -%__rm Docs/html/installdox +rm -r %{buildroot}%{_datadir}/%{capname}/Media/UnitTests +rm -r %{buildroot}%{_datadir}/%{capname}/Media/Wrapper/WrapperBaseApp +rm Docs/html/installdox %fdupes -s %{buildroot} %clean -[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" +rm -rf %{buildroot} -%post -n libMyGUIEngine%{_SO_nr} -p /sbin/ldconfig +%post -n libMyGUIEngine%{_sover} -p /sbin/ldconfig -%postun -n libMyGUIEngine%{_SO_nr} -p /sbin/ldconfig +%postun -n libMyGUIEngine%{_sover} -p /sbin/ldconfig %files %defattr(-,root,root) @@ -273,16 +261,13 @@ done %{_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/* +%dir %{_datadir}/%{capname} +%{_datadir}/%{capname}/*.cfg +%{_datadir}/%{capname}/*.xml +%dir %{_datadir}/%{capname}/Media +%{_datadir}/%{capname}/Media/Common/ +%{_datadir}/%{capname}/Media/MyGUI_Media/ +%{_datadir}/%{capname}/Media/Tools/ %{_datadir}/applications/FontViewer.desktop %{_datadir}/applications/ImageSetViewer.desktop %{_datadir}/applications/LayoutEditor.desktop @@ -290,8 +275,8 @@ done %files devel %defattr(-,root,root) -%dir %{_includedir}/%{_name2} -%{_includedir}/%{_name2}/*.h +%dir %{_includedir}/%{capname} +%{_includedir}/%{capname}/*.h %{_libdir}/libMyGUIEngine.so %{_libdir}/libMyGUI.OgrePlatform.a %{_libdir}/pkgconfig/*.pc @@ -300,7 +285,7 @@ done %defattr(-,root,root) %doc Docs/html/* -%files -n libMyGUIEngine%{_SO_nr} +%files -n libMyGUIEngine%{_sover} %defattr(-,root,root) %{_libdir}/libMyGUIEngine.so.* @@ -308,18 +293,8 @@ done %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/* +#%dir %{_datadir}/%{capname} +#%dir %{_datadir}/%{capname}/Media +%{_datadir}/%{capname}/Media/Demos/ %changelog -* Fri Feb 12 2010 Toni Graffy - 3.0.1-0.pm.1 -- update to 3.0.1 -- renamed libmygui0 ==> libMyGUIEngine3 -* Fri Oct 30 2009 Toni Graffy - 2.2.3-0.pm.1 -- update to 2.2.3 -* Mon Apr 13 2009 Toni Graffy - 2.2.2-0.pm.2 -- rebuild with ogre-1.6.2 -* Fri Mar 27 2009 Toni Graffy - 2.2.2-0.pm.1 -- initial build 2.2.2