scourge.spec
lisu
lisu87 at gmail.com
Sat Aug 26 14:20:48 CEST 2006
Ok. jest to update scourge-0.11 do wersji scourge-0.15.
Trzeba bylo pare rzeczy pozmieniac. Wiekszosc zmian wynika glownie ze
zmiany struktury katalogow w nowej wersji gry. Zrobilem tez patcha,
dzieki ktoremu w /usr/bin/ szukany jest plik wx-gtk2-ansi-config a nie
wx-config. W tym celu dodalem tez BR: wxGTK2-devel.
Nowa wersja gry wnosi znaczace zmiany. Zniknelo bardzo duzo zauwazalnych
w poprzednich wersjach bugow.
-------------- next part --------------
--- scourge.spec.old 2006-08-24 00:01:59.000000000 +0200
+++ scourge.spec 2006-08-26 13:50:00.000000000 +0200
@@ -2,13 +2,14 @@
Summary: Rogue-like game with a 3D user interface
Summary(pl): Tekstowa gra RPG z trójwymiarowym interfejsem użytkownika
Name: scourge
-Version: 0.11
+Version: 0.15
Release: 1
License: GPL v2
Group: X11/Applications/Games
Source0: http://dl.sourceforge.net/scourge/%{name}-%{version}.tar.gz
-# Source0-md5: d214ceeceb3ed8bdf72360dccc0a870f
+# Source0-md5: 026b91d015865455a3dde7643ae74098
Source1: %{name}.desktop
+Patch0: %{name}-configure.patch
URL: http://scourge.sourceforge.net/
BuildRequires: OpenGL-devel
BuildRequires: SDL-devel >= 1.2.7
@@ -17,6 +18,7 @@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libstdc++-devel
+BuildRequires: wxGTK2-devel
Requires: SDL >= 1.2.7
Requires: SDL_mixer >= 1.2
Requires: SDL_net >= 1.2
@@ -34,14 +36,14 @@
zdobywanie poziomów doświadczenia, itp.
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{version}/%{name}
+%patch0 -p1
%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-
%configure \
--with-data-dir=%{_datadir}/%{name}
%{__make}
@@ -54,7 +56,7 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-cp -rf data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -rf ../%{name}_data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install assets/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
@@ -64,7 +66,7 @@
%files
%defattr(644,root,root,755)
-%doc AUTHORS README
+%doc AUTHORS README ChangeLog
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%{_desktopdir}/%{name}.desktop
-------------- next part --------------
--- scourge-0.15/scourge/configure.orig 2006-08-18 06:28:19.000000000 +0200
+++ scourge-0.15/scourge/configure 2006-08-25 14:48:24.000000000 +0200
@@ -8048,7 +8048,7 @@
echo $ECHO_N "checking for wx-config library... $ECHO_C" >&6
# Extract the first word of "wx-config", so it can be a program name with args.
-set dummy wx-config; ac_word=$2
+set dummy wx-gtk2-ansi-config; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_WXWIDGET+set}" = set; then
@@ -8094,8 +8094,8 @@
{ (exit 1); exit 1; }; }
have_WXWIDGET=no
else
- WXWIDGET_CFLAGS=`wx-config --cflags`
- WXWIDGET_LIBS=`wx-config --libs`
+ WXWIDGET_CFLAGS=`wx-gtk2-ansi-config --cflags`
+ WXWIDGET_LIBS=`wx-gtk2-ansi-config --libs`
have_WXWIDGET=yes
fi
More information about the pld-devel-pl
mailing list