a5c9ff3
Name:		gbrainy
6effc4a
Version:	0.70
fa60d6b
Release:	4%{?dist}
a5c9ff3
Summary:	Gbrainy is a brain teaser game and trainer to keep your brain trained
a5c9ff3
a5c9ff3
Group:		Amusements/Games
a5c9ff3
License:	GPLv2
a5c9ff3
URL:		http://live.gnome.org/gbrainy
a5c9ff3
Source0:	http://www.softcatala.org/~jmas/%{name}/%{name}-%{version}.tar.gz
a5c9ff3
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a5c9ff3
6effc4a
BuildRequires:	mono-devel intltool
a5c9ff3
BuildRequires:  gnome-sharp-devel libglade2-devel gtk-sharp2-devel
a5c9ff3
BuildRequires:  /usr/bin/desktop-file-install
a5c9ff3
a5c9ff3
# Mono only availible on these:
a5c9ff3
ExclusiveArch: %ix86 x86_64 ppc ia64 armv4l sparc alpha
a5c9ff3
a5c9ff3
%description
a5c9ff3
gbrainy is a brain teaser game and trainer to have
a5c9ff3
fun and to keep your brain trained.
a5c9ff3
a5c9ff3
It provides the following types of games:
a5c9ff3
a5c9ff3
* Logic puzzles. Games designed to challenge your
a5c9ff3
	reasoning and thinking skills.
a5c9ff3
* Mental calculation. Games based on arithmetical
a5c9ff3
	operations designed to prove your mental calculation skills.
a5c9ff3
* Memory trainers. Games designed to challenge your short term memory.
a5c9ff3
a5c9ff3
%prep
a5c9ff3
%setup -q
a5c9ff3
a5c9ff3
%build
a5c9ff3
%configure
a5c9ff3
make %{?_smp_mflags}
a5c9ff3
a5c9ff3
%install
a5c9ff3
rm -rf $RPM_BUILD_ROOT
a5c9ff3
make install DESTDIR=$RPM_BUILD_ROOT
a5c9ff3
desktop-file-install					\
a5c9ff3
	--delete-original				\
a5c9ff3
	--vendor fedora					\
a5c9ff3
	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
a5c9ff3
	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
a5c9ff3
a5c9ff3
%find_lang %{name}
a5c9ff3
a5c9ff3
%clean
a5c9ff3
rm -rf "$RPM_BUILD_ROOT"
a5c9ff3
a5c9ff3
%post
a5c9ff3
touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
a5c9ff3
if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
a5c9ff3
	%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
a5c9ff3
fi
6effc4a
a5c9ff3
%postun
a5c9ff3
touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
a5c9ff3
if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
a5c9ff3
	%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
a5c9ff3
fi
a5c9ff3
a5c9ff3
%files -f %{name}.lang
a5c9ff3
%defattr(-,root,root)
a5c9ff3
%doc AUTHORS NEWS README COPYING MAINTAINERS
a5c9ff3
%{_bindir}/%{name}
a5c9ff3
%{_libdir}/%{name}
a5c9ff3
%{_datadir}/applications/fedora-%{name}.desktop
a5c9ff3
%{_datadir}/games/%{name}
a5c9ff3
%{_datadir}/icons/hicolor/*/apps/%{name}*
a5c9ff3
%{_mandir}/man6/%{name}.6.gz
a5c9ff3
%{_datadir}/pixmaps/%{name}*
a5c9ff3
a5c9ff3
%changelog
fa60d6b
* Fri Aug 01 2008 Benoît Marcelin <sereinity@online.fr> 0.70-4
fa60d6b
- Increase release to fix an EVR problem
fa60d6b
1376645
* Sat Jul 05 2008 Benoît Marcelin <sereinity@online.fr> 0.70-3
1376645
- Rebuild with gnome-sharp-2.20 .pc fix
1376645
6bb767c
* Fri Jul 04 2008 Benoît Marcelin <sereinity@online.fr> 0.70-2
6bb767c
- Rebuild for new gnome-sharp
6bb767c
6effc4a
* Tue Jun 03 2008 Benoît Marcelin <sereinity@online.fr> 0.70-1
6effc4a
- Update to 0.70
6effc4a
- 8 new puzzles
6effc4a
- License included in the about box
6effc4a
- The drawing area is now square and the application resizes better
6effc4a
- Better score feedback
6effc4a
- Player's history
6effc4a
- Preferences persistence
6effc4a
- Better game selection
6effc4a
- Bug fixes
6effc4a
a5c9ff3
* Mon Mar 24 2008 Benoît Marcelin <sereinity@online.fr> 0.61-5
a5c9ff3
- Do if on more than one line (in %%post and %%postun)
a5c9ff3
- Change ExcludeArch to AxclusiveArch
a5c9ff3
- Change licence to GPLv2+
a5c9ff3
- add directory owner %%{_libdir}/%%{name}
a5c9ff3
a5c9ff3
* Mon Mar 24 2008 Benoît Marcelin <sereinity@online.fr> 0.61-4
a5c9ff3
- Update %%post ans %%postun section
a5c9ff3
a5c9ff3
* Mon Mar 24 2008 Benoît Marcelin <sereinity@online.fr> 0.61-3
a5c9ff3
- Add BuildRequires : desktop-file-utils
a5c9ff3
a5c9ff3
* Mon Mar 24 2008 Benoît Marcelin <sereinity@online.fr> 0.61-2
a5c9ff3
- Exclude arch ppc64
a5c9ff3
- Remove --add-category X-Fedora from the desktop file
a5c9ff3
- Don't generate empty debuginfo
a5c9ff3
- Add docfile MAINTAINERS
a5c9ff3
a5c9ff3
* Mon Mar 24 2008 Benoît Marcelin <sereinity@online.fr> 0.61-1
a5c9ff3
- Update to 0.61
a5c9ff3
- add gtk-update-icon-cache into post and unpost section
a5c9ff3
a5c9ff3
* Sun Mar 09 2008 Benoît Marcelin <sereinity@online.fr> 0.60-1
a5c9ff3
- Initial Fedora build