| View previous topic :: View next topic |
| Author |
Message |
zombie_ryushu Grub Bug

Joined: 10 Mar 2008 Posts: 7
|
Posted: Mon Mar 10, 2008 4:19 pm Post subject: Compiling for Mandriva. |
|
|
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 |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
|
| Back to top |
|
 |
zombie_ryushu Grub Bug

Joined: 10 Mar 2008 Posts: 7
|
Posted: Tue Mar 11, 2008 1:43 am Post subject: Youi have to compile its various dependances |
|
|
| Youi have to compile its various dependences first. The thing is, the build process is "unclean/a mess." |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Tue Mar 11, 2008 3:42 pm Post subject: |
|
|
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 |
|
 |
zombie_ryushu Grub Bug

Joined: 10 Mar 2008 Posts: 7
|
Posted: Tue Mar 11, 2008 11:44 pm Post subject: Is there anything I can do to help? |
|
|
| Is there anything I can do to help? I use Mandriva Fully Mandriva Linux 2008.0 |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2301 Location: Norway
|
Posted: Wed Mar 12, 2008 1:35 pm Post subject: |
|
|
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 |
|
 |
zombie_ryushu Grub Bug

Joined: 10 Mar 2008 Posts: 7
|
Posted: Thu Mar 13, 2008 4:24 pm Post subject: 2.22 is standard |
|
|
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 |
|
 |
|