ed413f0
# http://fedoraproject.org/wiki/Packaging/Debuginfo#Useless_or_incomplete_debuginfo_packages_due_to_other_reasons
ed413f0
%global debug_package %{nil}
ed413f0
ed413f0
Name:       gbrainy
ed413f0
Version:    2.00
ed413f0
Release:    1%{?dist}
ed413f0
Summary:    A brain teaser game and trainer to keep your brain trained
ed413f0
ed413f0
Group:      Amusements/Games
ed413f0
License:    GPLv2
ed413f0
URL:        http://live.gnome.org/gbrainy
ed413f0
Source0:    http://gent.softcatala.org/jmas/%{name}/%{name}-%{version}.tar.gz
ed413f0
# To fix 460353 :
ed413f0
Patch0:     fix-location.patch
ed413f0
# Fix warning when starting
ed413f0
Patch1:     GtkMenu_ubuntu_local.patch
ed413f0
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ed413f0
ed413f0
BuildRequires:  gtk-sharp2-devel mono-addins-devel gnome-sharp-devel
ed413f0
BuildRequires:  librsvg2-devel gnome-doc-utils
9da9ab7
BuildRequires:  intltool /usr/bin/desktop-file-install
a5c9ff3
ed413f0
# JIT (mono) only availible on these:
ed413f0
ExclusiveArch: %ix86 x86_64 ia64 %{arm} sparcv9 alpha s390x ppc ppc64
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
ed413f0
    reasoning and thinking skills.
a5c9ff3
* Mental calculation. Games based on arithmetical
ed413f0
    operations designed to prove your mental calculation skills.
a5c9ff3
* Memory trainers. Games designed to challenge your short term memory.
a5c9ff3
9da9ab7
%package devel
9da9ab7
Summary:      Files needed for developing with gbrainy
9da9ab7
Group:        Development/Libraries
9da9ab7
Requires: %{name} = %{version}-%{release}
9da9ab7
9da9ab7
%description devel
9da9ab7
This package provides the necessary development libraries and headers
9da9ab7
for writing gbrainy applications.
9da9ab7
a5c9ff3
%prep
a5c9ff3
%setup -q
ed413f0
%patch0 -p1
ed413f0
%patch1 -p1
ed413f0
sed -i -e 's!{exec_prefix}/lib!%{_libdir}!' data/gbrainy.pc.in
a5c9ff3
a5c9ff3
%build
9da9ab7
a5c9ff3
%configure
a5c9ff3
make %{?_smp_mflags}
a5c9ff3
a5c9ff3
%install
a5c9ff3
rm -rf $RPM_BUILD_ROOT
a5c9ff3
make install DESTDIR=$RPM_BUILD_ROOT
ed413f0
desktop-file-install                                \
ed413f0
    --delete-original                               \
ed413f0
    --vendor fedora                                 \
ed413f0
    --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
ed413f0
    $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
a5c9ff3
b4b2bdd
# To fix a rpmlint issue
b4b2bdd
chmod a-x $RPM_BUILD_ROOT%{_libdir}/%{name}/%{name}.exe.config
b4b2bdd
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 ||:
6effc4a
a5c9ff3
%postun
ed413f0
if [ $1 -eq 0 ] ;then 
ed413f0
    touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
ed413f0
    if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
ed413f0
        %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
ed413f0
    fi
ed413f0
fi
ed413f0
ed413f0
%posttrans
a5c9ff3
if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
ed413f0
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
a5c9ff3
fi
a5c9ff3
a5c9ff3
%files -f %{name}.lang
9da9ab7
%defattr(-,root,root,-)
a5c9ff3
%doc AUTHORS NEWS README COPYING MAINTAINERS
a5c9ff3
%{_bindir}/%{name}
a5c9ff3
%{_libdir}/%{name}
a5c9ff3
%{_datadir}/applications/fedora-%{name}.desktop
b4b2bdd
%{_datadir}/%{name}
ed413f0
%{_datadir}/gnome/help/%{name}
a5c9ff3
%{_datadir}/icons/hicolor/*/apps/%{name}*
a5c9ff3
%{_mandir}/man6/%{name}.6.gz
a5c9ff3
%{_datadir}/pixmaps/%{name}*
a5c9ff3
9da9ab7
%files devel
9da9ab7
%defattr(-,root,root,-)
9da9ab7
%{_libdir}/pkgconfig/gbrainy.pc
9da9ab7
a5c9ff3
%changelog
ed413f0
* Mon Jul 25 2011 Benoît Marcelin <sereinity@online.fr> 2.00-1
ed413f0
- Update to 2.00
ed413f0
a07ec43
* Mon Jun 07 2010 Christian Krause <chkr@fedoraproject.org> - 1.1-7
a07ec43
- Rebuilt against new mono-addins
a07ec43
8e459b2
* Mon Oct 26 2009 Dennis Gilmore <dennis@ausil.us> - 1.1-6
8e459b2
- Exclude sparc64
8e459b2
e8a80c8
* Thu Aug 20 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1-5
e8a80c8
- Build with ppc64 again due to obsolecense of previous update.
e8a80c8
fa22469
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
fa22469
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fa22469
e8a80c8
* Mon Jun 01 2009 Xavier Lamien <laxathom@fedoraproject.org> - 1.1-4
e8a80c8
- Build arch ppc64.
e8a80c8
3e63ce5
* Tue Apr 14 2009 Benoît Marcelin <sereinity@online.fr> 1.1-3
3e63ce5
- Re-enable ppc
3e63ce5
f406495
* Thu Apr 09 2009 Benoît Marcelin <sereinity@online.fr> 1.1-2
f406495
- Fix buildrequires
f406495
ac3d460
* Wed Apr 08 2009 Benoît Marcelin <sereinity@online.fr> 1.1-1
ac3d460
- Update to 1.1
ac3d460
- Update ExclusiveArch according to mono
ac3d460
e6a0a48
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-4
e6a0a48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e6a0a48
3f80442
* Thu Nov 22 2008 Benoît Marcelin <sereinity@online.fr> 1.00-3
ff901c7
- Fix Summary
ff901c7
c0e4df3
* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.00-2
c0e4df3
- rebuild for new gnome-sharp
c0e4df3
b4b2bdd
* Thu Sep 25 2008 Benoît Marcelin <sereinity@online.fr> 1.00-1
b4b2bdd
- Clean Build Requires
b4b2bdd
- Fix bug 460353
b4b2bdd
- Upate to 1.00
b4b2bdd
- 1 new logic puzzle, 1 new memory puzzle
b4b2bdd
- Better look and feel (new background)
b4b2bdd
- Switch font drawing to Pango
b4b2bdd
- Better I18N support
b4b2bdd
- Bug fixes 
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