Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
tuxmath
tuxmath.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tuxmath.spec of Package tuxmath
## tuxmath.spec.in - process with configure to substitute in PACKAGE ## VERSION strings # # 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. # Name: tuxmath Version: 2.0.3 Release: 1 License: GPL %define realname tuxmath_w_fonts %define progname tuxmath Summary: Educational math game Url: http://tux4kids.alioth.debian.org/ Group: Amusements/Teaching/Mathematics Obsoletes: tuxmath = 2001.09.07 Obsoletes: tuxmath_preview < 1.7.2 Provides: tuxmath_preview = 1.7.2 Vendor: openSUSE-Education ## https://alioth.debian.org/frs/?group_id=31080 Source0: %{realname}-%{version}.tar.bz2 Patch1: tuxmath-bufferoverflowstrncat.patch BuildRequires: ImageMagick BuildRequires: SDL-devel BuildRequires: SDL_Pango-devel BuildRequires: SDL_image-devel >= 1.2.2 BuildRequires: SDL_mixer-devel BuildRequires: SDL_net-devel BuildRequires: SDL_ttf-devel > 2.0.8 BuildRequires: t4k_common-devel Requires: t4k_common %if 0%{?suse_version} BuildRequires: fdupes BuildRequires: librsvg-devel BuildRequires: update-desktop-files %endif %if 0%{?fedora_version} BuildRequires: desktop-file-utils BuildRequires: librsvg2-devel %endif %if 0%{?mandriva_version} BuildRequires: desktop-file-utils BuildRequires: librsvg-devel Requires(post): desktop-file-utils Requires(postun): desktop-file-utils %endif %if 0%{?mandriva_version} >= 2009 BuildRequires: pulseaudio-esound-compat %endif 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. %prep %setup -q -n %{realname}-%{version} %patch1 -p0 rm -rf $(find . -type d -name CVS) rm -rf $(find . -type d -name .svn) rm -rf $(find . -type d -name .xvpics) # build section: --------------------------------------------------------- %build %configure --disable-rpath make %{?jobs:-j %jobs} # install section: --------------------------------------------------------- %install install -d %{buildroot}{%{_bindir},%{_datadir}/pixmaps,%{_datadir}/applications,%{_datadir}/%progname,%_defaultdocdir/%progname} %makeinstall install -m 644 data/images/icons/icon.png %{buildroot}%{_datadir}/pixmaps/%progname.png %if 0%{?suse_version} # handle special docdir path mv %{buildroot}%{_datadir}/doc/%progname/* %{buildroot}%_defaultdocdir/%progname/ rm -rf %{buildroot}%{_datadir}/doc/%progname # remove invalid lc-messages dirs on openSUSE rm -rf %buildroot/%{_datadir}/locale/{ast,zam} # install desktop file %suse_update_desktop_file -i %progname Education Math %fdupes -s %{buildroot} %endif %if 0%{?fedora_version} # install desktop file desktop-file-install --vendor="%{vendor}" \ --dir=%{buildroot}%{_datadir}/applications \ %progname.desktop %endif %if 0%{?mandriva_version} desktop-file-install --vendor="%{vendor}" \ --dir=%{buildroot}%{_datadir}/applications \ %progname.desktop %endif # remove invalid locale directories rm -rf %{buildroot}%{_datadir}/locale/en@* %find_lang %progname %if 0%{?mandriva_version} %post %{update_menus} %postun %{clean_menus} %endif %clean rm -rf %{buildroot} # files section: --------------------------------------------------------- %files -f %progname.lang %defattr(-,root,root) %doc %_defaultdocdir/%progname %{_bindir}/* %{_datadir}/pixmaps/* %{_datadir}/applications/* %{_datadir}/%progname %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor