parent
54795cd33a
commit
4b4a591aae
@ -1,196 +0,0 @@
|
||||
# Default version for this component
|
||||
%if "%{?version}" == ""
|
||||
%define version 3.5.12
|
||||
%endif
|
||||
%define release 2
|
||||
|
||||
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||
%if "%{?_prefix}" != "/usr"
|
||||
%define _variant .opt
|
||||
%define _docdir %{_prefix}/share/doc
|
||||
%endif
|
||||
|
||||
# TDE 3.5.12 specific building variables
|
||||
BuildRequires: autoconf automake libtool m4
|
||||
%define tde_docdir %{_docdir}
|
||||
%define tde_includedir %{_includedir}/kde
|
||||
%define tde_libdir %{_libdir}/kde3
|
||||
|
||||
|
||||
Name: trinity-kdegames
|
||||
Summary: Trinity Desktop Environment - Games
|
||||
Version: %{?version}
|
||||
Release: %{?release}%{?dist}%{?_variant}
|
||||
|
||||
License: GPLv2
|
||||
Group: Amusements/Games
|
||||
|
||||
Vendor: Trinity Project
|
||||
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||
URL: http://www.trinitydesktop.org/
|
||||
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source: kdegames-%{version}.tar.gz
|
||||
|
||||
Provides: kdegames3 = %{version}-%{release}
|
||||
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: trinity-kdelibs-devel
|
||||
|
||||
%description
|
||||
Games and gaming libraries for the K Desktop Environment.
|
||||
Included with this package are: kenolaba, kasteroids, kblackbox, kmahjongg,
|
||||
kmines, konquest, kpat, kpoker, kreversi, ksame, kshisen, ksmiletris,
|
||||
ksnake, ksirtet, katomic, kjumpingcube, ktuberling.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2
|
||||
Provides: kdegames3-devel = %{version}-%{release}
|
||||
Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: trinity-kdelibs-devel
|
||||
%description devel
|
||||
%{summary}.
|
||||
Install %{name}-devel if you wish to develop or compile games for the
|
||||
KDE desktop.
|
||||
|
||||
%package libs
|
||||
Summary: %{name} runtime libraries
|
||||
Group: System Environment/Libraries
|
||||
Requires: trinity-kdelibs
|
||||
License: LGPLv2
|
||||
# include to paranoid, installing libs-only is still mostly untested -- Rex
|
||||
#Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
%description libs
|
||||
%{summary}.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n kdegames
|
||||
|
||||
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||
%__make -f "admin/Makefile.common"
|
||||
|
||||
|
||||
%build
|
||||
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||
|
||||
%if 0%{?fedora} > 0
|
||||
export CXXFLAGS="${CXXFLAGS} -lkio"
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-new-ldflags \
|
||||
--disable-dependency-tracking \
|
||||
--disable-rpath \
|
||||
--enable-final \
|
||||
--disable-debug \
|
||||
--disable-warnings \
|
||||
--includedir=%{_includedir}/kde \
|
||||
--disable-setgid \
|
||||
--with-extra-includes=%{_includedir}/tqt
|
||||
|
||||
%__make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%__rm -rf %{buildroot}
|
||||
%__make install DESTDIR=%{buildroot}
|
||||
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && ln -nsf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# rpmdocs
|
||||
for dir in k* lskat ; do
|
||||
for file in AUTHORS ChangeLog README TODO ; do
|
||||
test -s "$dir/$file" && install -p -m644 -D "$dir/$file" "rpmdocs/$dir/$file"
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
%clean
|
||||
%__rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
for f in crystalsvg hicolor ; do
|
||||
touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
|
||||
done
|
||||
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
|
||||
|
||||
%post libs
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun libs
|
||||
/sbin/ldconfig
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS README COPYING
|
||||
%doc rpmdocs/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/applications/kde/*.desktop
|
||||
%{_datadir}/apps/*
|
||||
%{_datadir}/config*/*
|
||||
%{_datadir}/icons/crystalsvg/*/*/*
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/mimelnk/*/*
|
||||
%{_datadir}/service*/*
|
||||
%{tde_libdir}/*
|
||||
%{_libdir}/libkdeinit_*.so
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/lib*.so.*
|
||||
%{_libdir}/lib*.la
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.LIB
|
||||
%doc libkdegames/README libkdegames/TODO
|
||||
%{tde_includedir}/*
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %{_libdir}/libkdeinit_*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 19 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2
|
||||
- Add support for RHEL5
|
||||
|
||||
* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1
|
||||
- Initial release for RHEL 6
|
||||
- Spec file based on Fedora 8 "kdegames-3.5.10-1"
|
||||
- Import to GIT
|
@ -1,11 +0,0 @@
|
||||
--- kdegames/ktuberling/toplevel.cpp.ORI 2011-12-04 05:49:35.462097224 -0500
|
||||
+++ kdegames/ktuberling/toplevel.cpp 2011-12-04 05:49:38.089040247 -0500
|
||||
@@ -189,7 +189,7 @@
|
||||
// Load the layouts file
|
||||
bool TopLevel::loadLayout(TQDomDocument &layoutDocument)
|
||||
{
|
||||
- TQFile layoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/tqlayout.xml")));
|
||||
+ TQFile layoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/layout.xml")));
|
||||
if (!layoutFile.open(IO_ReadOnly))
|
||||
return false;
|
||||
|
@ -1,44 +0,0 @@
|
||||
--- kdegames/libkdegames/Makefile.am.ORI 2012-07-31 20:25:24.961859509 +0200
|
||||
+++ kdegames/libkdegames/Makefile.am 2012-07-31 20:25:32.306619391 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
lib_LTLIBRARIES = libkdegames.la
|
||||
libkdegames_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 3:0:2
|
||||
libkdegames_la_LIBADD = highscore/libkhighscore.la kgame/libkgame.la kgame/dialogs/libkgamedialogs.la \
|
||||
- $(LIB_KSYCOCA) $(LIB_KDNSSD)
|
||||
+ $(LIB_KSYCOCA) $(LIB_KDNSSD) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI)
|
||||
|
||||
libkdegames_la_SOURCES = kcarddialog.cpp kstdgameaction.cpp \
|
||||
kgamemisc.cpp kchatbase.cpp kchat.cpp \
|
||||
--- kdegames/atlantik/libatlantikclient/Makefile.am.ORI 2012-07-31 20:26:55.089913155 +0200
|
||||
+++ kdegames/atlantik/libatlantikclient/Makefile.am 2012-07-31 20:27:00.414739083 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
INCLUDES = -I$(top_srcdir)/atlantik/libatlantic $(all_includes)
|
||||
lib_LTLIBRARIES = libatlantikclient.la
|
||||
libatlantikclient_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 3:0:2
|
||||
-libatlantikclient_la_LIBADD = ../libatlantic/libatlantic.la $(LIB_KIO)
|
||||
+libatlantikclient_la_LIBADD = ../libatlantic/libatlantic.la $(LIB_KIO) $(LIB_KDECORE)
|
||||
|
||||
libatlantikclient_la_SOURCES = atlantik_network.cpp monopdprotocol.cpp
|
||||
|
||||
--- kdegames/atlantik/libatlantikui/Makefile.am.ORI 2012-07-31 20:29:44.177385572 +0200
|
||||
+++ kdegames/atlantik/libatlantikui/Makefile.am 2012-07-31 20:30:27.821958801 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
INCLUDES = -I$(top_srcdir)/atlantik/libatlantic $(all_includes)
|
||||
lib_LTLIBRARIES = libatlantikui.la
|
||||
libatlantikui_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -no-undefined -version-info 3:0:2
|
||||
-libatlantikui_la_LIBADD = ../libatlantic/libatlantic.la $(LIB_KIO)
|
||||
+libatlantikui_la_LIBADD = ../libatlantic/libatlantic.la $(LIB_KIO) $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx
|
||||
|
||||
libatlantikui_la_SOURCES = auction_widget.cpp board.cpp estatedetails.cpp \
|
||||
estateview.cpp kwrappedlistviewitem.cpp portfolioestate.cpp \
|
||||
--- kdegames/kolf/Makefile.am.ORI 2012-07-31 20:38:20.125518870 +0200
|
||||
+++ kdegames/kolf/Makefile.am 2012-07-31 20:38:30.672174091 +0200
|
||||
@@ -12,7 +12,7 @@
|
||||
floater.cpp slope.cpp
|
||||
|
||||
libkolf_la_LDFLAGS = $(all_libraries) -no-undefined -version-info 3:0:2
|
||||
-libkolf_la_LIBADD = $(LIB_KDEGAMES) $(LIB_KDEPRINT) $(LIB_KIO) -lartskde
|
||||
+libkolf_la_LIBADD = $(LIB_KDEGAMES) $(LIB_KDEPRINT) $(LIB_KIO) -lartskde $(LIB_ARTS) -lkdefx -lartsmodules
|
||||
libkolf_la_DEPENDENCIES = $(LIB_KDEGAMES_DEP)
|
||||
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue