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
c9984ea
Version:    2.3.2
Benoît Marcelin 19eab69
Epoch:      1
c9984ea
Release:    1%{?dist}
194012f
Summary:    A brain teaser game and trainer to keep your brain trained
194012f
194012f
Group:      Amusements/Games
194012f
License:    GPLv2
714fe43
URL:        https://wiki.gnome.org/Apps/gbrainy
714fe43
Source0:    https://gent.softcatala.org/jmas/%{name}/%{name}-%{version}.tar.gz
194012f
# To fix 460353 :
8383c98
Patch0:     %{name}-fix-location.patch
c82a048
3ba528a
BuildRequires:  desktop-file-utils
4dde1dd
BuildRequires:  gtk-sharp3-devel
714fe43
BuildRequires:  intltool
714fe43
BuildRequires:  itstool
c82a048
BuildRequires:  librsvg2-devel
c82a048
BuildRequires:  mono-devel
714fe43
BuildRequires:  yelp-tools
a5c9ff3
c82a048
# Mono only available on these:
c82a048
ExclusiveArch: %mono_arches
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
Benoît Marcelin 29b7686
Requires: %{name}%{?_isa} = %{epoch}:%{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
8383c98
%patch0 -p0
Paul F. Johnson 98fcbae
sed -i -e 's!{exec_prefix}/lib!%{_libdir}!' data/gbrainy.pc.in
194012f
echo "sed done $PWD"
a5c9ff3
714fe43
# use mcs instead of gmcs to compile, as recommended in below link
714fe43
# http://www.mono-project.com/docs/about-mono/languages/csharp/
c82a048
sed -i "s#gmcs#mcs#g" configure
c82a048
sed -i "s#gmcs#mcs#g" configure.ac
3ba528a
autoconf
c82a048
a5c9ff3
%build
Paul F. Johnson 98fcbae
a5c9ff3
%configure
a5c9ff3
make %{?_smp_mflags}
a5c9ff3
a5c9ff3
%install
a5c9ff3
make install DESTDIR=$RPM_BUILD_ROOT
194012f
desktop-file-install                                \
194012f
    --delete-original                               \
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
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
a5c9ff3
%doc AUTHORS NEWS README COPYING MAINTAINERS
a5c9ff3
%{_bindir}/%{name}
a5c9ff3
%{_libdir}/%{name}
7f4345f
%{_datadir}/applications/%{name}.desktop
b4b2bdd
%{_datadir}/%{name}
714fe43
%{_datadir}/help/*
a5c9ff3
%{_datadir}/icons/hicolor/*/apps/%{name}*
a5c9ff3
%{_mandir}/man6/%{name}.6.gz
a5c9ff3
%{_datadir}/pixmaps/%{name}*
eff3d5b
%{_datadir}/appdata/%{name}.appdata.xml
a5c9ff3
Paul F. Johnson 98fcbae
%files devel
Paul F. Johnson 98fcbae
%{_libdir}/pkgconfig/gbrainy.pc
Paul F. Johnson 98fcbae
a5c9ff3
%changelog
c9984ea
* Fri Jul 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.3.2-1
c9984ea
- Rebuilt for new upstream version 2.3.2
c9984ea
0d78c4a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3.1-2
0d78c4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0d78c4a
714fe43
* Tue Nov 01 2016 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.3.1-1
714fe43
- Rebuilt for new upstream version 2.3.1
714fe43
- Migrating docs from gnome-doc-utils to yelp-tools
714fe43
- Added itstool as BR
714fe43
- Fix URLs and use https, fixes rhbz #1380996 - thanks to terrycloth
714fe43
417e4e6
* Thu Oct 13 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.3.0-2
417e4e6
- mono rebuild for aarch64 support
417e4e6
4dde1dd
* Wed Sep 14 2016 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.3.0-1
4dde1dd
- Rebuilt for new upstream version 2.3.0
4dde1dd
68d01e7
* Wed May 18 2016 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.2.7-1
68d01e7
- Rebuilt for new upstream version 2.2.7
68d01e7
9361815
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.2.5-2
9361815
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9361815
3ba528a
* Mon Jul 06 2015 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.2.5-1
3ba528a
- Rebuilt for new upstream version 2.2.5, fixes rhbz #1232684, #1239519, #1222424
3ba528a
6e610f5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.2.3-3
6e610f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6e610f5
6a083aa
* Mon May 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1:2.2.3-2
6a083aa
- Rebuild (mono4)
6a083aa
eff3d5b
* Wed Aug 27 2014 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.2.3-1
eff3d5b
- Rebuilt for new upstream version 2.2.3, fixes rhbz #1008213
eff3d5b
66fb8ff
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.2.2-4
66fb8ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
66fb8ff
296d70a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.2.2-3
296d70a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
296d70a
1a012bf
* Sat May 31 2014 Filipe Rosset <rosset.filipe@gmail.com> - 1:2.2.2-2
8383c98
- Rebuilt for new upstream version 2.2.2, spec cleanup, fixes rhbz #925388
8383c98
cc566a4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1.3-6
cc566a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc566a4
7f4345f
* Mon Apr 08 2013 Jon Ciesla <limburgher@gmail.com> - 1:2.1.3-5
7f4345f
- Drop desktop vendor tag.
7f4345f
dc63127
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1.3-4
dc63127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc63127
2518c3f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1.3-3
2518c3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2518c3f
Benoît Marcelin 29b7686
* Thu Jun 28 2012 Benoît Marcelin <sereinity@online.fr> 1:2.1.3-2
Benoît Marcelin 29b7686
- Add Epoch in dependencies
Benoît Marcelin 29b7686
Benoît Marcelin 19eab69
* Wed Jun 27 2012 Benoît Marcelin <sereinity@online.fr> 1:2.1.3-1
Benoît Marcelin 19eab69
- Update to 2.1.3
Benoît Marcelin 19eab69
e99e654
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06-2
e99e654
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e99e654
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
8383c98
* Sat 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