Egoboo Forum

The Legend of Egoboo Sporks of Yore
Compiling for Mandriva.

 
Post new topic   Reply to topic    Egoboo Forum Forum Index -> -> Help
View previous topic :: View next topic  
Author Message
zombie_ryushu
Grub Bug
Grub Bug


Joined: 10 Mar 2008
Posts: 7


PostPosted: Mon Mar 10, 2008 4:19 pm    Post subject: Compiling for Mandriva. If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

I'm a part time maintainer for Mandriva, and Mandriva has egoboo 2.220 still, I'd like to know iif you will help me modifyt the Mandriva SPEC to meet egoboo's needs.

%define name egoboo
%define version 2.22
%define rel 9
%define release %mkrel %{rel}
%define Summary 3D dungeon crawling game

Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}_%{version}.orig.tar.gz
Patch0: egoboo_2.22-28.diff
License: GPL
Group: Games/Adventure
URL: http://egoboo.sourceforge.net/
Summary: %{Summary}
BuildRequires: SDL-devel mesaglu-devel dos2unix desktop-file-utils ImageMagick
Requires: egoboo-data >= 2.220
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Egoboo is an open source project, using OpenGL and SDL(Simple
DirectMedia Layer) libraries. It is a 3d dungeon role playing
game in the spirit of NetHack. Nice colorful graphics, and
detailed models(using Quake2 modeling tools) make this game
stand out in the gaming open-source community.

%prep
%setup -q -n %{name}
%patch0 -p1 -b .debian
dos2unix egoboo.txt change.log

%build
%make DESTDIR=%{_prefix} BIN_PATH=%{_gamesbindir} SHARE_PATH=%{_gamesdatadir} FLAGS="-D_LINUX $RPM_OPT_FLAGS" LIBDIR="-L%{_libdir}"

%install
rm -rf %{buildroot}
install -d %{buildroot}{%{_gamesbindir},%{_sysconfdir}/egoboo}
%{makeinstall_std}

install -m644 debian/egoboo.desktop -D %{buildroot}%{_datadir}/applications/egoboo.desktop
desktop-file-install --vendor="" \
--remove-category="Application" \
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

install -d %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert -resize 16x16 debian/egoboo.xpm %{buildroot}%{_miconsdir}/%{name}.png
convert -resize 32x32 debian/egoboo.xpm %{buildroot}%{_iconsdir}/%{name}.png
convert -resize 48x48 debian/egoboo.xpm %{buildroot}%{_liconsdir}/%{name}.png

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc %{name}.txt change.log
%{_gamesbindir}/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_datadir}/applications/egoboo.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png



%changelog
* Sun Sep 16 2007 Emmanuel Andry <eandry@mandriva.org> 2.22-9mdv2008.0
+ Revision: 88695
- drop old menu
- uncompress patch
- Import egoboo



* Tue Sep 12 2006 Emmanuel Andry <eandry@mandriva.org> 2.22-8mdv2007.0
- add buildrequires ImageMagick

* Sun Sep 10 2006 Emmanuel Andry <eandry@mandriva.org> 2.22-7mdv2007.0
- buildrequires desktop-file-utils

* Mon Aug 28 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> 2.22-6mdv2007.0
- sync source, patches, etc. with debian as upstream seems dead
- split package
- xdg menu
- fix file encoding with 'dos2unix'
- cleanups

* Fri May 06 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 2.22-5mdk
- lib64 fix
- %%mkrel
- fix summary-ended-with-dot

* Fri Aug 20 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.22-4mdk
- rebuild
- fix summary macro to avoid possible conflicts if we were to build debug package
- fix buildrequires (lib64..)
- don't bzip2 icons in src.rpm

* Sun Jul 20 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.22-3mdk
- don't use soundwrapper (David Walser)

* Tue Mar 11 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.22-2mdk
- Added libMesaGLU-devel to BuildRequires

* Thu Nov 19 2002 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.22-1mdk
- First mdk-release
Back to top
View user's profile Send private message
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Mon Mar 10, 2008 8:11 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

As I've said before, my experience with Linux is mediocre and Mandriva even less so. Does the linux distro on the sourceforge site not work on Mandriva? http://downloads.sourceforge.net/egoboo/ego244b_linux.tar.gz (Stable)
http://sourceforge.net/project/showfiles.php?group_id=12221&package_id=11541 (Developer)

The source should also be available on the same site.
_________________
http://egoboo.sourceforge.net

"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
zombie_ryushu
Grub Bug
Grub Bug


Joined: 10 Mar 2008
Posts: 7


PostPosted: Tue Mar 11, 2008 1:43 am    Post subject: Youi have to compile its various dependances If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Youi have to compile its various dependences first. The thing is, the build process is "unclean/a mess."
Back to top
View user's profile Send private message
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Tue Mar 11, 2008 3:42 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Ah, well yes that does indeed make things a lot more complicated. I'm trying to get linux to work properly on my pc. If I manage to do this, I'm sure linux support for Egoboo will go a lot more smoothly.
_________________
http://egoboo.sourceforge.net

"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
zombie_ryushu
Grub Bug
Grub Bug


Joined: 10 Mar 2008
Posts: 7


PostPosted: Tue Mar 11, 2008 11:44 pm    Post subject: Is there anything I can do to help? If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Is there anything I can do to help? I use Mandriva Fully Mandriva Linux 2008.0
Back to top
View user's profile Send private message
Zefz
Lead Designer
Lead Designer


Joined: 16 Sep 2007
Posts: 2301
Location: Norway

PostPosted: Wed Mar 12, 2008 1:35 pm    Post subject: If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Have you managed to get 2.22 run on Mandriva? If so, you could try to get 2.7.5 or 2.4.4b to run. The dependencies should be listed somewhere (I think even on this forum).
_________________
http://egoboo.sourceforge.net

"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
zombie_ryushu
Grub Bug
Grub Bug


Joined: 10 Mar 2008
Posts: 7


PostPosted: Thu Mar 13, 2008 4:24 pm    Post subject: 2.22 is standard If a post contains some illegal issues you may abuse on it - just click Abuse and fill the form Reply with quote

Yes, it is standard in Mandriva 2008.0

http://wiki.mandriva.com/en/Development/Howto/RPM
This Wiki lays out the packaging policy for Mandriva, its not unlike the Fedora policy or other RPM based distributions. (Once you know this, you should be able to package for almost any RPM based Linux.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Egoboo Forum Forum Index -> -> Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


© 2007 Informe.com. Get Free Forum Hosting
Powered by phpBB © 2001, 2005 phpBB Group

RedSilver 1.01 Theme was programmed by DEVPPL HTML Forum
Images were made by DEVPPL Photoshop Forum