rpms/nexuiz/devel nexuiz-1.0-basedir.patch, NONE, 1.1 nexuiz-1.1-nostrip.patch, NONE, 1.1 nexuiz.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Adrian Reber (adrian)
fedora-extras-commits at redhat.com
Sat Jul 9 11:59:35 UTC 2005
Author: adrian
Update of /cvs/extras/rpms/nexuiz/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30299/devel
Modified Files:
.cvsignore sources
Added Files:
nexuiz-1.0-basedir.patch nexuiz-1.1-nostrip.patch nexuiz.spec
Log Message:
auto-import nexuiz-1.1-1 on branch devel from nexuiz-1.1-1.src.rpm
nexuiz-1.0-basedir.patch:
--- NEW FILE nexuiz-1.0-basedir.patch ---
--- fs.c.orig 2005-07-08 13:00:47.000000000 +0200
+++ fs.c 2005-07-08 13:01:06.000000000 +0200
@@ -902,7 +902,7 @@ void FS_Init (void)
fs_mempool = Mem_AllocPool("file management", 0, NULL);
- strcpy(fs_basedir, ".");
+ strcpy(fs_basedir, "/usr/share/nexuiz");
strcpy(fs_gamedir, "");
#ifdef MACOSX
nexuiz-1.1-nostrip.patch:
--- NEW FILE nexuiz-1.1-nostrip.patch ---
--- makefile.inc.orig 2005-06-20 18:35:34.000000000 +0200
+++ makefile.inc 2005-07-08 15:32:57.000000000 +0200
@@ -342,7 +342,6 @@ bin-release :
DP_MAKE_TARGET=$(DP_MAKE_TARGET) DP_SOUND_API=$(DP_SOUND_API) \
CFLAGS="$(CFLAGS_COMMON) $(CFLAGS_EXTRA) $(CFLAGS_RELEASE) $(OPTIM_RELEASE)"\
LDFLAGS="$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)"
- strip $(EXE)
vid_glx.o: vid_glx.c
$(DO_CC) -I/usr/X11R6/include
--- NEW FILE nexuiz.spec ---
Summary: Multiplayer, deathmatch oriented first person shooter
Name: nexuiz
Version: 1.1
Release: 1
License: GPL
Group: Amusements/Games
URL: http://www.nexuiz.com/
# Source is custom, obtained with :
# wget http://dl.sf.net/sourceforge/nexuiz/nexuiz11.zip
# unzip nexuiz11.zip
# mkdir nexuiz-1.1/
# mv Nexuiz/sources/darkplaces/* Nexuiz/Readme.htm nexuiz-1.1/
# tar cjvf nexuiz-1.1.tar.bz2 nexuiz-1.1/
Source: nexuiz-%{version}.tar.bz2
Patch0: nexuiz-1.0-basedir.patch
Patch1: nexuiz-1.1-nostrip.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# For the .ico extraction
BuildRequires: ImageMagick, file
BuildRequires: xorg-x11-devel, alsa-lib-devel, desktop-file-utils
# This is necessary as these libraries are loaded during runtime
# and therefore it isn't picked up by RPM during build
Requires: libz.so.1 libvorbis.so.0 libvorbisfile.so.3 libjpeg.so.62
Requires: desktop-file-utils >= 0.9
Requires: nexuiz-data
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description
Nexuiz is a fast-paced, chaotic, and intense multiplayer first person shooter,
focused on providing basic, old style deathmatches.
%package server
Group: Amusements/Games
Summary: Dedicated server for the Nexuiz first person shooter
Requires: nexuiz-data
# This is necessary as these libraries are loaded during runtime
# and therefore it isn't picked up by RPM during build
Requires: libz.so.1
%description server
Nexuiz is a fast-paced, chaotic, and intense multiplayer first person shooter,
focused on providing basic, old style deathmatches.
This is the nexuiz dedicated server required to host network games.
%prep
%setup -q
%patch0 -p0 -b .basedir
%patch1 -p0 -b .nostrip
%{__sed} -i 's/\r//' Readme.htm
%build
%{__make} %{?_smp_mflags} cl-release sv-release OPTIM_RELEASE="$RPM_OPT_FLAGS"
convert nexuiz.ico nexuiz.png
%install
%{__rm} -rf %{buildroot}
# Install the main programs
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 0755 nexuiz-{glx,dedicated} \
%{buildroot}%{_bindir}/
# Create the desktop file
%{__cat} > %{name}.desktop << EOF
[Desktop Entry]
Name=Nexuiz
Comment=Multiplayer, deathmatch oriented first person shooter
Encoding=UTF-8
Icon=nexuiz
Exec=nexuiz-glx
Terminal=false
Type=Application
EOF
# Install the desktop file
%{__mkdir_p} %{buildroot}%{_datadir}/applications
desktop-file-install \
--vendor=fedora \
--dir %{buildroot}%{_datadir}/applications \
--add-category X-Fedora \
--add-category Application \
--add-category Game \
%{name}.desktop
# Install all png files previously extracted from the .ico file
for file in nexuiz*.png; do
res="`file ${file} | tr -d ' ' | cut -d ',' -f 2`"
%{__install} -D -m 0644 ${file} \
%{buildroot}%{_datadir}/icons/hicolor/${res}/apps/nexuiz.png
done
%post
update-desktop-database %{_datadir}/applications 2>/dev/null || :
gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2>/dev/null || :
%postun
update-desktop-database %{_datadir}/applications 2>/dev/null || :
gtk-update-icon-cache -qf %{_datadir}/icons/hicolor 2>/dev/null || :
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Readme.htm COPYING
%{_bindir}/nexuiz-glx
%{_datadir}/icons/hicolor/*/apps/nexuiz.png
%{_datadir}/applications/*%{name}.desktop
%files server
%defattr(-,root,root,-)
%doc Readme.htm COPYING
%{_bindir}/nexuiz-dedicated
%changelog
* Sat Jul 09 2005 Adrian Reber <adrian at lisas.de> - 1.1-1
- added gtk-update-icon-cache to %%post and %%postun
- added desktop-file-utils as Requires({post,postun})
* Fri Jul 8 2005 Matthias Saou <http://freshrpms.net/> 1.1-0
- Update to 1.1.
- Split off the huge data, unfortunately requires using custom sources.
- Major spec file changes.
* Thu Jun 09 2005 Adrian Reber <adrian at lisas.de> - 1.0-2
- comments concerning the requires added
- better(???) descriptions
* Thu Jun 09 2005 Adrian Reber <adrian at lisas.de> - 1.0-1
- initial version
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/nexuiz/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 9 Jul 2005 11:57:58 -0000 1.1
+++ .cvsignore 9 Jul 2005 11:59:33 -0000 1.2
@@ -0,0 +1 @@
+nexuiz-1.1.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nexuiz/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 9 Jul 2005 11:57:58 -0000 1.1
+++ sources 9 Jul 2005 11:59:33 -0000 1.2
@@ -0,0 +1 @@
+a2177339360d4ad19816c66a7dfd0353 nexuiz-1.1.tar.bz2
More information about the fedora-extras-commits
mailing list