Name: gtans Version: 1.2 Release: 6mamba Summary: The Tangram is a chinese puzzle Group: Graphical Desktop/Applications/Games Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro URL: http://gtans.sourceforge.net/ Source0: http://download.sourceforge.net/gtans/%{name}-%{version}.tar.gz Source1: alpha.figures.gz Source2: gtans.png Source3: gtans-lang_it.po Source4: gtanshelpit.txt Source5: gtans-desktop Patch0: %{name}-makefile.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libglib1-devel BuildRequires: libgtk1-devel BuildRequires: libX11-devel BuildRequires: libXext-devel ## AUTOBUILDREQ-END %description The Tangram is a chinese puzzle. The object is to put seven geometric shapes together so as to form a given outline. All the pieces must be used and are laid next to one another. The pieces are five triangles, a square and a parallelogram. %prep %setup -q %patch0 -p1 install -m 644 %{SOURCE3} ./po/gtans.po-it install -m 644 %{SOURCE4} . %build %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall install -d %{buildroot}%{_mandir}/man6 mv %{buildroot}/usr/man/man6/gtans.6 \ %{buildroot}%{_mandir}/man6 install -D %{SOURCE1} %{buildroot}%{_datadir}/figures/alpha.figures.gz gunzip %{buildroot}%{_datadir}/figures/*.gz # create the system menu entry install -D %{SOURCE5} %{buildroot}%{_datadir}/applications/%{name}.desktop %{find_lang} %{name} %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/* %{_datadir}/applications/gtans.desktop %exclude %{_datadir}/gnome/apps/Games/gtans.desktop %{_datadir}/figures/alpha.figures %dir %{_datadir}/gtans %{_datadir}/gtans/* %{_datadir}/pixmaps/gtans_icon.png %{_mandir}/man6/* %doc AUTHORS COPYING %changelog * Wed Oct 29 2008 Tiziana Ferro 1.2-6mamba - rebuilt - mantainer changed - added buildrequirements list * Wed Apr 26 2006 Davide Madrisan 1.2-5qilnx - fixed desktop file * Thu Apr 13 2006 Davide Madrisan 1.2-4qilnx - desktop file converted to UTF-8 encoding, fixed category entry * Wed Nov 30 2005 Davide Madrisan 1.2-3qilnx - added italian translation to desktop file * Fri Oct 28 2005 Alessandro Ramazzina 1.2-2qilnx - added italian translation * Mon Jul 18 2005 Alessandro Ramazzina 1.2-1qilnx - package created by autospec