[Tux4kids-commits] r850 - tuxmath/trunk

dbruce-guest at alioth.debian.org dbruce-guest at alioth.debian.org
Thu Jan 22 20:17:38 UTC 2009


Author: dbruce-guest
Date: 2009-01-22 20:17:38 +0000 (Thu, 22 Jan 2009)
New Revision: 850

Added:
   tuxmath/trunk/tuxmath.desktop
   tuxmath/trunk/tuxmath.spec
Modified:
   tuxmath/trunk/Makefile.am
Log:
added spec and desktop files



Modified: tuxmath/trunk/Makefile.am
===================================================================
--- tuxmath/trunk/Makefile.am	2009-01-22 20:08:37 UTC (rev 849)
+++ tuxmath/trunk/Makefile.am	2009-01-22 20:17:38 UTC (rev 850)
@@ -8,7 +8,7 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-EXTRA_DIST = config.rpath m4/ChangeLog
+EXTRA_DIST = tuxmath.spec tuxmath.desktop config.rpath m4/ChangeLog
 datadir = @datadir@
 localedir = $(datadir)/locale
 

Added: tuxmath/trunk/tuxmath.desktop
===================================================================
--- tuxmath/trunk/tuxmath.desktop	                        (rev 0)
+++ tuxmath/trunk/tuxmath.desktop	2009-01-22 20:17:38 UTC (rev 850)
@@ -0,0 +1,15 @@
+Desktop Entry]
+Name=Tux Math 
+GenericName=Educational game
+GenericName[de]=Mathe Spiel
+GenericName[ru]=Образовательная игра
+Comment=Tux Math - Learn math with tux!
+Comment[pl]=Tux Math - Ucz siê matematyki z tuxem!
+Comment[de]=Tux Math - Lerne Mathe mit Tux!
+Comment[ru]=Обучение арифметике с пингвином в главной роли
+Exec=tuxmath
+Icon=tuxmath
+Type=Application
+Terminal=false
+Categories=Education;X-Teaching;
+## X-SuSE-translate=false

Added: tuxmath/trunk/tuxmath.spec
===================================================================
--- tuxmath/trunk/tuxmath.spec	                        (rev 0)
+++ tuxmath/trunk/tuxmath.spec	2009-01-22 20:17:38 UTC (rev 850)
@@ -0,0 +1,115 @@
+#
+# spec file for package tuxmath 
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+# norootforbuild
+
+Name:           tuxmath
+%define         realname tuxmath_w_fonts
+Summary:        Tux Math - educational math game
+Version:        1.7.0
+Release:        1
+License:        GPL
+Group:          Productivity/Scientific/Math
+Url:            http://tux4kids.alioth.debian.org/
+Vendor:         openSUSE-Education
+Obsoletes:      tuxmath = 2001.09.07
+BuildRequires:  SDL_image-devel >= 1.2.2
+BuildRequires:  SDL_ttf-devel > 2.0.8
+BuildRequires:  SDL-devel
+BuildRequires:  SDL_mixer-devel
+BuildRequires:  SDL_Pango-devel
+%if 0%{?suse_version}
+BuildRequires:  update-desktop-files
+BuildRequires:  fdupes
+%endif
+%if 0%{?fedora_version}
+BuildRequires:  desktop-file-utils
+%endif
+%if 0%{?mandriva_version}
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
+%endif
+Source0:        %realname-%version.tar.bz2
+Source1:        %name.desktop
+Source2:        tuxmath-1.7.0-de.po
+Source3:        tuxmath-1.7.0-de.gmo
+Patch1:         tuxmath-1.7.0-german.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+An educational math tutorial game starring Tux, the Linux Penguin.
+
+Based on the classic arcade game "Missile Command," Tux must defend his cities. 
+In this case, though, he must do it by solving math problems.
+
+Authors:
+========
+  Bill Kendrick
+  Sam 'Criswell' Hart
+  Larry Ewing
+
+%prep
+%setup -q -n %realname-%version
+rm -rf $(find . -type d -name CVS)
+rm -rf $(find . -type d -name .svn)
+rm -rf $(find . -type d -name .xvpics)
+install -m644 %{SOURCE2} po/de.po 
+install -m644 %{SOURCE3} po/de.gmo
+%patch1 -p0
+
+%build
+%configure --enable-sdlpango
+make %{?jobs:-j %jobs}
+
+%install
+install -d %buildroot/{%_bindir,%_datadir/pixmaps,%_datadir/applications,%_datadir/%name,%_defaultdocdir/%name}
+make DESTDIR=%{buildroot} install
+install -m 644 data/images/icons/icon.png %buildroot%_datadir/pixmaps/%name.png
+%if 0%{?suse_version}
+# handle special docdir path
+mv %buildroot/%_datadir/doc/%name/* %buildroot/%_defaultdocdir/%name/
+rm -rf %buildroot/%_datadir/doc/%name
+# install desktop file
+%suse_update_desktop_file -i tuxmath Education Math
+%fdupes -s %buildroot
+%endif
+%if 0%{?fedora_version}
+# install desktop file
+desktop-file-install --vendor="%{vendor}" \
+  --dir=%buildroot/%_datadir/applications \
+  %{SOURCE1}
+%endif
+%if 0%{?mandriva_version}
+desktop-file-install --vendor="%{vendor}" \
+  --dir=%buildroot/%_datadir/applications \
+  %{SOURCE1}
+%endif
+# remove invalid locale directories
+rm -rf %buildroot/%{_datadir}/locale/en@*
+%find_lang %name
+
+%if 0%{?mandriva_version}
+%post
+%{update_menus}
+
+%postun
+%{clean_menus}
+%endif
+
+%clean
+rm -rf %buildroot
+
+%files -f %name.lang
+%defattr(-,root,root)
+%doc %_defaultdocdir/%name
+%_bindir/*
+%_datadir/pixmaps/*
+%_datadir/applications/*
+%_datadir/%name
+
+%changelog 
+s
\ No newline at end of file




More information about the Tux4kids-commits mailing list