Benoît Marcelin 7bcfd6f
# http://fedoraproject.org/wiki/Packaging/Debuginfo#Useless_or_incomplete_debuginfo_packages_due_to_other_reasons
Benoît Marcelin 7bcfd6f
%global debug_package %{nil}
Benoît Marcelin 7bcfd6f
194012f
Name:       gbrainy
Benoît Marcelin e159f91
Version:    2.06
194012f
Release:    1%{?dist}
194012f
Summary:    A brain teaser game and trainer to keep your brain trained
194012f
194012f
Group:      Amusements/Games
194012f
License:    GPLv2
194012f
URL:        http://live.gnome.org/gbrainy
194012f
Source0:    http://gent.softcatala.org/jmas/%{name}/%{name}-%{version}.tar.gz
194012f
# To fix 460353 :
194012f
Patch0:     fix-location.patch
194012f
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a5c9ff3
194012f
BuildRequires:  gtk-sharp2-devel mono-addins-devel gnome-sharp-devel
194012f
BuildRequires:  librsvg2-devel gnome-doc-utils
194012f
BuildRequires:  intltool 
a5c9ff3
194012f
# JIT (mono) only availible on these:
194012f
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
194012f
    reasoning and thinking skills.
a5c9ff3
* Mental calculation. Games based on arithmetical
194012f
    operations designed to prove your mental calculation skills.
a5c9ff3
* Memory trainers. Games designed to challenge your short term memory.
a5c9ff3
Paul F. Johnson 98fcbae
%package devel
Paul F. Johnson 98fcbae
Summary:      Files needed for developing with gbrainy
Paul F. Johnson 98fcbae
Group:        Development/Libraries
Paul F. Johnson 98fcbae
Requires: %{name} = %{version}-%{release}
Paul F. Johnson 98fcbae
Paul F. Johnson 98fcbae
%description devel
Paul F. Johnson 98fcbae
This package provides the necessary development libraries and headers
Paul F. Johnson 98fcbae
for writing gbrainy applications.
Paul F. Johnson 98fcbae
a5c9ff3
%prep
a5c9ff3
%setup -q
194012f
%patch0 -p1
Paul F. Johnson 98fcbae
sed -i -e 's!{exec_prefix}/lib!%{_libdir}!' data/gbrainy.pc.in
194012f
echo "sed done $PWD"
a5c9ff3
a5c9ff3
%build
Paul F. Johnson 98fcbae
a5c9ff3
%configure
a5c9ff3
make %{?_smp_mflags}
a5c9ff3
a5c9ff3
%install
a5c9ff3
rm -rf $RPM_BUILD_ROOT
a5c9ff3
make install DESTDIR=$RPM_BUILD_ROOT
194012f
desktop-file-install                                \
194012f
    --delete-original                               \
194012f
    --vendor fedora                                 \
194012f
    --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
194012f
    $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
194012f
if [ $1 -eq 0 ] ;then 
194012f
    touch --no-create %{_datadir}/icons/hicolor 2> /dev/null ||:
194012f
    if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
194012f
        %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
194012f
    fi
194012f
fi
194012f
194012f
%posttrans
a5c9ff3
if [ -x  %{_bindir}/gtk-update-icon-cache ] ; then
194012f
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
a5c9ff3
fi
a5c9ff3
a5c9ff3
%files -f %{name}.lang
Paul F. Johnson 98fcbae
%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}
Paul F. Johnson 98fcbae
%{_datadir}/gnome/help/%{name}
a5c9ff3
%{_datadir}/icons/hicolor/*/apps/%{name}*
a5c9ff3
%{_mandir}/man6/%{name}.6.gz
a5c9ff3
%{_datadir}/pixmaps/%{name}*
a5c9ff3
Paul F. Johnson 98fcbae
%files devel
Paul F. Johnson 98fcbae
%defattr(-,root,root,-)
Paul F. Johnson 98fcbae
%{_libdir}/pkgconfig/gbrainy.pc
Paul F. Johnson 98fcbae
a5c9ff3
%changelog
Benoît Marcelin e159f91
* Mon Nov 14 2011 Benoît Marcelin <sereinity@online.fr> 2.06-1
Benoît Marcelin e159f91
- Update to 2.06
Benoît Marcelin 1a5feac
- Remove Ubuntu cleaner patch (now clean from upstream)
Benoît Marcelin e159f91
194012f
* Mon Jul 25 2011 Benoît Marcelin <sereinity@online.fr> 2.00-1
194012f
- Update to 2.00
194012f
15895ee
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.52-4.1
15895ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
15895ee
Paul F. Johnson dfa810c
* Thu Oct 28 2010 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.52-3.1
Paul F. Johnson dfa810c
- Add BR libtool
Paul F. Johnson dfa810c
Paul F. Johnson e227818
* Thu Oct 28 2010 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.52-3
Paul F. Johnson e227818
- Change gnome-common to gnome-doc-utils
Paul F. Johnson e227818
Paul F. Johnson 33e1465
* Thu Oct 28 2010 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.52-2
Paul F. Johnson 33e1465
- Add BR gnome-common
Paul F. Johnson 33e1465
Paul F. Johnson 98fcbae
* Wed Oct 27 2010 Paul F. Johnson <paul@all-the-johnsons.co.uk> 1.52-1
Paul F. Johnson 98fcbae
- Bump to 1.52
Paul F. Johnson 98fcbae
- Add devel subpackage
Paul F. Johnson 98fcbae
- Rebuild against mono-2.8
Paul F. Johnson 98fcbae
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