rpms/cdogs-sdl/devel cdogs-sdl-0.4-64bit.patch, NONE, 1.1 cdogs-sdl-0.4-default-cfg.patch, NONE, 1.1 cdogs-sdl.desktop, NONE, 1.1 cdogs-sdl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Thu Jul 26 17:43:02 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/cdogs-sdl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14077/devel

Modified Files:
	.cvsignore sources 
Added Files:
	cdogs-sdl-0.4-64bit.patch cdogs-sdl-0.4-default-cfg.patch 
	cdogs-sdl.desktop cdogs-sdl.spec 
Log Message:
initial cdogs-sdl import


cdogs-sdl-0.4-64bit.patch:

--- NEW FILE cdogs-sdl-0.4-64bit.patch ---
diff -up cdogs-sdl-0.4/src/grafx.c~ cdogs-sdl-0.4/src/grafx.c
--- cdogs-sdl-0.4/src/grafx.c~	2007-07-16 20:36:01.000000000 +0200
+++ cdogs-sdl-0.4/src/grafx.c	2007-07-16 20:36:01.000000000 +0200
@@ -219,7 +219,7 @@ void ShutDownVideo(void)
 typedef struct _Pic {
 	short int w;
 	short int h;
-	char *data;
+	char data;
 } Pic;
 
 int ReadPics(const char *filename, void **pics, int maxPics,

cdogs-sdl-0.4-default-cfg.patch:

--- NEW FILE cdogs-sdl-0.4-default-cfg.patch ---
diff -up cdogs-sdl-0.4/src/grafx.c~ cdogs-sdl-0.4/src/grafx.c
--- cdogs-sdl-0.4/src/grafx.c~	2007-07-16 22:01:51.000000000 +0200
+++ cdogs-sdl-0.4/src/grafx.c	2007-07-16 22:01:51.000000000 +0200
@@ -107,9 +107,9 @@ static int ValidMode(int w, int h)
 
 /* These are the default hints as used by the graphics subsystem */
 int hints[HINT_END] = {
-	0,		// HINT_FULLSCREEN
+	1,		// HINT_FULLSCREEN
 	1,		// HINT_WINDOW
-	1,		// HINT_SCALEFACTOR
+	2,		// HINT_SCALEFACTOR
 	320,		// HINT_WIDTH
 	240,		// HINT_HEIGHT
 	0		// HINT_FORCEMODE


--- NEW FILE cdogs-sdl.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=C-Dogs
Comment=An arcade shoot-em-up
Exec=cdogs
Icon=cdogs.png
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;ActionGame;


--- NEW FILE cdogs-sdl.spec ---
Name:           cdogs-sdl
Version:        0.4
Release:        1%{?dist}
Summary:        C-Dogs is an arcade shoot-em-up
Group:          Amusements/Games
License:        GPL
URL:            http://lumaki.com/code/cdogs/
Source0:        http://icculus.org/%{name}/files/src/%{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch0:         cdogs-sdl-0.4-64bit.patch
Patch1:         cdogs-sdl-0.4-default-cfg.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  SDL_mixer-devel desktop-file-utils
Requires:       cdogs-data = 0.4

%description
C-Dogs SDL is a port of the old DOS arcade game C-Dogs to modern operating
systems utilising the SDL Media Libraries. C-Dogs is an arcade shoot-em-up
which lets players work alone and cooperatively during missions or fight
against each other in the “dogfight” deathmatch mode. The DOS version of
C-Dogs came with several built in missions and dogfight maps. This version
does too. The author of the DOS version of C-Dogs was Ronny Wester. We would
like to thank Ronny for releasing the C-Dogs sources to the public.


%prep
%setup -q
%patch0 -p1 -z .64bit
%patch1 -p1 -z .cfg
sed -i 's/\r//' doc/original_readme.txt
# stop this from getting installed as %doc
rm doc/INSTALL


%build
pushd src
make %{?_smp_mflags} DATADIR=%{_datadir}/cdogs-data \
  CFLAGS="$RPM_OPT_FLAGS -fsigned-char -lefence" I_AM_CONFIGURED=yes cdogs
popd


%install
rm -rf $RPM_BUILD_ROOT
# DIY, as make install wants to install the data too, and thats in another rpm
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 src/cdogs $RPM_BUILD_ROOT%{_bindir}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora            \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   %{SOURCE1}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc doc/*
%{_bindir}/cdogs
%{_datadir}/applications/fedora-%{name}.desktop


%changelog
* Mon Jul 16 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.4-1
- Initial Fedora Extras package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/cdogs-sdl/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Jul 2007 16:27:55 -0000	1.1
+++ .cvsignore	26 Jul 2007 17:42:29 -0000	1.2
@@ -0,0 +1 @@
+cdogs-sdl-0.4.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/cdogs-sdl/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Jul 2007 16:27:55 -0000	1.1
+++ sources	26 Jul 2007 17:42:29 -0000	1.2
@@ -0,0 +1 @@
+62f7e055d5febfb8d27ea7ef2c45019f  cdogs-sdl-0.4.tar.bz2




More information about the scm-commits mailing list