SPECS: ufoai.spec (NEW), ufoai-data.spec (NEW) - init - really ugl...

arvenil arvenil at pld-linux.org
Sun Jan 13 17:19:14 CET 2008


Author: arvenil                      Date: Sun Jan 13 16:19:14 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init
- really ugly spec but works fine

---- Files affected:
SPECS:
   ufoai.spec (NONE -> 1.1)  (NEW), ufoai-data.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ufoai.spec
diff -u /dev/null SPECS/ufoai.spec:1.1
--- /dev/null	Sun Jan 13 17:19:14 2008
+++ SPECS/ufoai.spec	Sun Jan 13 17:19:08 2008
@@ -0,0 +1,113 @@
+# $Revision$, $Date$
+Summary:	UFO: ALIEN INVASION is a squad-based tactical strategy game in the tradition of the old X-COM PC games
+Name:		ufoai
+Version:	2.2
+Release:	0.1
+License:	GPL
+Group:		X11/Applications/Games/Strategy
+URL:		http://ufoai.sourceforge.net/
+Source0:	http://dl.sourceforge.net/ufoai/%{name}-%{version}-source.tar.bz2
+# Source0-md5:	67347e7124fe5679c672a392161a6611
+BuildRequires:	OpenGL-GLU-devel
+BuildRequires:	SDL-devel
+BuildRequires:	SDL_mixer-devel
+BuildRequires:	SDL_ttf-devel
+BuildRequires:	curl-devel
+BuildRequires:	gettext-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libpng-devel
+BuildRequires:	ncurses-devel
+BuildRequires:	zlib-devel
+Requires:	ufoai-data = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+It is the year 2084. You control a secret organisation charged with
+defending Earth from a brutal alien enemy. Build up your bases,
+prepare your team, and dive head-first into the fast and flowing
+turn-based combat.
+
+UFO: ALIEN INVASION is a squad-based tactical strategy game in the
+tradition of the old X-COM PC games, but with a twist. This game
+combines military realism with hard science-fiction and the weirdness
+of an alien invasion. The carefully constructed turn-based system
+gives you pin-point control of your squad while maintaining a sense of
+pace and danger.
+
+Over the long term you will need to conduct research into the alien
+threat to figure out their mysterious goals and use their powerful
+weapons for your own ends. You will produce unique items and use them
+in combat against your enemies. If you like, you can even use them
+against your friends with multiplayer functionality.
+
+'UFO: Alien Invasion'. Endless hours of gameplay -- absolutely free.
+
+%prep
+%setup -q -n %{name}-%{version}-source
+
+%build
+CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
+%configure \
+	--enable-mmx \
+	--with-curses \
+	--with-shaders
+%{__make}
+%{__make} lang
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/base,%{_datadir}/%{name}/base/i18n}
+install base/game.so $RPM_BUILD_ROOT%{_libdir}/%{name}/base/game.so
+install ufo $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoai
+install ufoded $RPM_BUILD_ROOT%{_libdir}/%{name}/ufoaided
+install ufo2map $RPM_BUILD_ROOT%{_bindir}/ufoai2map
+cp -rf base/i18n $RPM_BUILD_ROOT%{_datadir}/%{name}/base
+
+cat > ufoai << EOF
+#!/bin/sh
+cd %{_libdir}/%{name}
+./ufoai
+EOF
+cat > ufoaided << EOF
+#!/bin/sh
+cd %{_libdir}/%{name}
+./ufoaided
+EOF
+
+install %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+install %{name}ded $RPM_BUILD_ROOT%{_bindir}/%{name}ded
+
+ln -s %{_datadir}/%{name}/base/i18n $RPM_BUILD_ROOT%{_libdir}/%{name}/base/i18n
+for i in 0base 0maps 0media 0models 0music 0pics 0snd 0ufos; do
+    ln -s %{_datadir}/%{name}/base/$i.pk3 $RPM_BUILD_ROOT%{_libdir}/%{name}/base/$i.pk3
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ufoai
+%attr(755,root,root) %{_bindir}/ufoaided
+%attr(755,root,root) %{_bindir}/ufoai2map
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/ufoai
+%attr(755,root,root) %{_libdir}/%{name}/ufoaided
+%dir %{_libdir}/%{name}/base
+%attr(755,root,root) %{_libdir}/%{name}/base/game.so
+%attr(755,root,root) %{_libdir}/%{name}/base/i18n
+%attr(755,root,root) %{_libdir}/%{name}/base/*.pk3
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/base
+%{_datadir}/%{name}/base/i18n
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-01-13 16:19:08  arvenil
+- init
+- really ugly spec but works fine

================================================================
Index: SPECS/ufoai-data.spec
diff -u /dev/null SPECS/ufoai-data.spec:1.1
--- /dev/null	Sun Jan 13 17:19:14 2008
+++ SPECS/ufoai-data.spec	Sun Jan 13 17:19:09 2008
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%define	_name	ufoai
+Summary:	UFO: ALIEN INVASION is a squad-based tactical strategy game in the tradition of the old X-COM PC games
+Name:		ufoai-data
+Version:	2.2
+Release:	0.1
+License:	GPL
+Group:		X11/Applications/Games/Strategy
+URL:		http://ufoai.sourceforge.net/
+Source0:	http://dl.sourceforge.net/ufoai/%{_name}-%{version}-data.tar
+# Source0-md5:	a6bb13414d01299679c4e2effc6e41b7
+Requires:	ufoai = %{version}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+It is the year 2084. You control a secret organisation charged with
+defending Earth from a brutal alien enemy. Build up your bases,
+prepare your team, and dive head-first into the fast and flowing
+turn-based combat.
+
+UFO: ALIEN INVASION is a squad-based tactical strategy game in the
+tradition of the old X-COM PC games, but with a twist. This game
+combines military realism with hard science-fiction and the weirdness
+of an alien invasion. The carefully constructed turn-based system
+gives you pin-point control of your squad while maintaining a sense of
+pace and danger.
+
+Over the long term you will need to conduct research into the alien
+threat to figure out their mysterious goals and use their powerful
+weapons for your own ends. You will produce unique items and use them
+in combat against your enemies. If you like, you can even use them
+against your friends with multiplayer functionality.
+
+'UFO: Alien Invasion'. Endless hours of gameplay -- absolutely free.
+
+This package contains UFO: ALIEN INVASION data files.
+
+%prep
+%setup -q -c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/%{_name}/base
+cp -rf base/*.pk3 $RPM_BUILD_ROOT%{_datadir}/%{_name}/base
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_datadir}/%{_name}/base/*.pk3
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-01-13 16:19:09  arvenil
+- init
+- really ugly spec but works fine
================================================================


More information about the pld-cvs-commit mailing list