%define name gtkdive %define version 0.71 %define release %mkrel 2 %define title GtkDive %define longtitle Buehlmann ZH-L16 model diving simulation Name: %{name} Version: %{version} Release: %{release} Summary: Buehlmann ZH-L16 model diving simulation License: GPL Group: Sciences/Other URL: http://mattzz.dyndns.org/twiki/bin/view/Projects/GtkDive Source0: http://mattzz.dyndns.org/twiki/pub/Projects/GtkDive/%{name}-%{version}.tar.bz2 Source1: %{name}-16.png.bz2 Source2: %{name}-32.png.bz2 Source3: %{name}-48.png.bz2 BuildRequires: gtk+2-devel BuildRequires: libxml2-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description This program was written to learn about the Buehlmann ZH-L16 model that deals with accumulation of inert gas in body tissues. Currently it compiles for GNU/Linux. Do not use this to plan any dive! %prep %setup -q bzcat %{SOURCE1} > %{name}-16.png bzcat %{SOURCE2} > %{name}-32.png bzcat %{SOURCE3} > %{name}-48.png %build %configure %make %install rm -rf %{buildroot} %makeinstall # icons install -D -m 644 %{name}-48.png %{buildroot}%{_liconsdir}/%{name}.png install -D -m 644 %{name}-32.png %{buildroot}%{_iconsdir}/%{name}.png install -D -m 644 %{name}-16.png %{buildroot}%{_miconsdir}/%{name}.png # menu entry mkdir -p %{buildroot}%{_menudir} cat >%{buildroot}%{_menudir}/%{name} <<EOF ?package(%{name}):\ needs="x11"\ section="More Applications/Sciences/Other"\ command="%{_bindir}/%{name}"\ icon="%{name}.png" \ title="%{title}" \ longtitle="%{longtitle}" \ xdg="true" EOF install -d -m 755 %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=%{title} Comment=%{longtitle} Exec=%{_bindir}/%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=false Categories=GTK;-MandrivaLinux-MoreApplications-Sciences-Other;Science EOF %find_lang %{name} %post %{update_menus} %postun %{clean_menus} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING INSTALL ChangeLog README %{_bindir}/%{name} %{_menudir}/%{name} %{_datadir}/applications/mandriva-%{name}.desktop %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %changelog * Fri Aug 04 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.71-2mdv2007.0 - xdg menu * Tue Mar 07 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.71-1mdk - New release 0.71 - drop gcc4 patch, merged upstream * Thu Sep 29 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.7-5mdk - Fix group (fix #18917) * Wed Sep 28 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.7-4mdk - Fix BuildRequires * Fri Aug 26 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.7-3mdk - fix build - fix menu entry * Wed Jul 21 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.7-2mdk - rebuild * Mon Apr 26 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.7-1mdk - first mdk release