diff --git a/.cvsignore b/.cvsignore index e69de29..19168c1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gbrainy-0.61.tar.gz diff --git a/gbrainy.spec b/gbrainy.spec new file mode 100644 index 0000000..da677e5 --- /dev/null +++ b/gbrainy.spec @@ -0,0 +1,103 @@ +%define debug_package %{nil} +# Because it's a Mono package and generate an empty debuginfo +# http://fedoraproject.org/wiki/Packaging/Debuginfo#head-29573c4f61c3a4698b2d07c7e73cfa194785f257 + +Name: gbrainy +Version: 0.61 +Release: 5%{?dist} +Summary: Gbrainy is a brain teaser game and trainer to keep your brain trained + +Group: Amusements/Games +License: GPLv2 +URL: http://live.gnome.org/gbrainy +Source0: http://www.softcatala.org/~jmas/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: mono-devel perl(XML::Parser) intltool gettext +BuildRequires: gnome-sharp-devel libglade2-devel gtk-sharp2-devel +BuildRequires: /usr/bin/desktop-file-install + +# Mono only availible on these: +ExclusiveArch: %ix86 x86_64 ppc ia64 armv4l sparc alpha + +%description +gbrainy is a brain teaser game and trainer to have +fun and to keep your brain trained. + +It provides the following types of games: + +* Logic puzzles. Games designed to challenge your + reasoning and thinking skills. +* Mental calculation. Games based on arithmetical + operations designed to prove your mental calculation skills. +* Memory trainers. Games designed to challenge your short term memory. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +desktop-file-install \ + --delete-original \ + --vendor fedora \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + + +%find_lang %{name} + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%post +touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||: +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +fi +%postun +touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||: +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: +fi + +%files -f %{name}.lang +%defattr(-,root,root) +%doc AUTHORS NEWS README COPYING MAINTAINERS +%{_bindir}/%{name} +%{_libdir}/%{name} +%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/games/%{name} +%{_datadir}/icons/hicolor/*/apps/%{name}* +%{_mandir}/man6/%{name}.6.gz +%{_datadir}/pixmaps/%{name}* + +%changelog +* Mon Mar 24 2008 Benoît Marcelin 0.61-5 +- Do if on more than one line (in %%post and %%postun) +- Change ExcludeArch to AxclusiveArch +- Change licence to GPLv2+ +- add directory owner %%{_libdir}/%%{name} + +* Mon Mar 24 2008 Benoît Marcelin 0.61-4 +- Update %%post ans %%postun section + +* Mon Mar 24 2008 Benoît Marcelin 0.61-3 +- Add BuildRequires : desktop-file-utils + +* Mon Mar 24 2008 Benoît Marcelin 0.61-2 +- Exclude arch ppc64 +- Remove --add-category X-Fedora from the desktop file +- Don't generate empty debuginfo +- Add docfile MAINTAINERS + +* Mon Mar 24 2008 Benoît Marcelin 0.61-1 +- Update to 0.61 +- add gtk-update-icon-cache into post and unpost section + +* Sun Mar 09 2008 Benoît Marcelin 0.60-1 +- Initial Fedora build diff --git a/sources b/sources index e69de29..9a12bfa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9e85c503475f04955e48e1b2728700f4 gbrainy-0.61.tar.gz