Joost Soeterbroek 7b0ebca
Name:          gnubg
9b61058
License:       GPLv2
Joost Soeterbroek 7b0ebca
Group:         Amusements/Games
Joost Soeterbroek 7b0ebca
Summary:       A backgammon game and analyser
b5ba660
Epoch:         1
b5ba660
Version:       0.9.0.1
8118c16
Release:       7%{?dist}
b5ba660
Source0:       http://gnubg.org/media/sources/gnubg-0.9.0-1.tar.gz
Joost Soeterbroek 7b0ebca
Source1:       gnubg.weights
Joost Soeterbroek 7b0ebca
Source2:       gnubg.desktop
Joost Soeterbroek 7b0ebca
Source3:       gnubg.png
176b8b5
Patch0:        gnubg-0.9.0.1-disable_sse.patch
Joost Soeterbroek 7b0ebca
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n ) 
Joost Soeterbroek 7b0ebca
URL:           http://www.gnubg.org
Joost Soeterbroek 7b0ebca
BuildRequires: gtk2-devel
Joost Soeterbroek 7b0ebca
BuildRequires: esound-devel
Joost Soeterbroek 7b0ebca
BuildRequires: arts-devel
Joost Soeterbroek 7b0ebca
BuildRequires: gettext-devel
Joost Soeterbroek 7b0ebca
BuildRequires: gtkglext-devel
Joost Soeterbroek 7b0ebca
BuildRequires: automake
Joost Soeterbroek 7b0ebca
BuildRequires: bison
Joost Soeterbroek 7b0ebca
BuildRequires: libtool
Joost Soeterbroek 7b0ebca
BuildRequires: texinfo
Joost Soeterbroek 7b0ebca
BuildRequires: python-devel
Joost Soeterbroek 7b0ebca
BuildRequires: netpbm-progs
Joost Soeterbroek 7b0ebca
BuildRequires: gnuplot
Joost Soeterbroek 7b0ebca
BuildRequires: ghostscript
Joost Soeterbroek 7b0ebca
BuildRequires: info
Joost Soeterbroek 7b0ebca
BuildRequires: desktop-file-utils
35024da
BuildRequires: audiofile-devel
35024da
BuildRequires: cairo-devel
35024da
BuildRequires: libxml2-devel
a78ac80
BuildRequires: atk-devel
a78ac80
BuildRequires: pango-devel
a78ac80
BuildRequires: libpng-devel
a78ac80
BuildRequires: readline-devel
a78ac80
BuildRequires: python-devel
bd1ab23
BuildRequires: glib-devel
06f9efd
BuildRequires: freetype-devel
a78b061
BuildRequires: flex
f517d31
%if "0%{?dist}" == "0.fc5"
f517d31
BuildRequires: libXt-devel
f517d31
%endif
Joost Soeterbroek 7b0ebca
Requires(post): /sbin/install-info
Joost Soeterbroek 7b0ebca
Requires(preun): /sbin/install-info
214d40c
Requires(post): coreutils
214d40c
Requires(postun): coreutils
7b416e1
%if "0%{?dist}" == "0.fc10"
1d5f792
Requires: dejavu-fonts
7b416e1
%else
e9f7f8c
Requires: dejavu-sans-fonts
e9f7f8c
Requires: dejavu-serif-fonts
7b416e1
%endif
7b416e1
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%description
Joost Soeterbroek 7b0ebca
GNU Backgammon is software for playing and analysing backgammon
Joost Soeterbroek 7b0ebca
positions, games and matches. It's based on a neural network. Although it
Joost Soeterbroek 7b0ebca
already plays at a very high level, it's still work in progress. You may
Joost Soeterbroek 7b0ebca
play GNU Backgammon using the command line or a graphical interface
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%prep
f725109
%setup -qn %{name}
Joost Soeterbroek 7b0ebca
# convert man page from ISO-8859-1 to UTF8
b5ba660
#/usr/bin/iconv -f ISO-8859-1 -t UTF8 gnubg.6 > gnubg.6.tmp 
b5ba660
#/bin/mv gnubg.6.tmp gnubg.6
b5ba660
/usr/bin/iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp 
b5ba660
/bin/mv ChangeLog.tmp ChangeLog
Joost Soeterbroek 7b0ebca
fd48dae
%patch0 -p0
fd48dae
Joost Soeterbroek 7b0ebca
# running autogen, sources are nightly CVS tarballs not
Joost Soeterbroek 7b0ebca
# containing configure
Joost Soeterbroek 7b0ebca
./autogen.sh
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%build
Joost Soeterbroek 7b0ebca
export CFLAGS="$RPM_OPT_FLAGS"
Joost Soeterbroek 7b0ebca
%configure --with-python \
b5ba660
        --without-gdbm \
b5ba660
        --without-guile \
b5ba660
        --without-timecontrol
Joost Soeterbroek 7b0ebca
make
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%install
Joost Soeterbroek 7b0ebca
rm -rf $RPM_BUILD_ROOT;
Joost Soeterbroek 7b0ebca
mkdir -p $RPM_BUILD_ROOT%{_prefix}
Joost Soeterbroek 7b0ebca
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnubg
Joost Soeterbroek 7b0ebca
make install DESTDIR=$RPM_BUILD_ROOT
e010b31
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnubg/fonts/*.ttf
1d5f792
ln -s ../../fonts/dejavu/DejaVuSans.ttf $RPM_BUILD_ROOT%{_datadir}/gnubg/fonts/Vera.ttf
1d5f792
ln -s ../../fonts/dejavu/DejaVuSans-Bold.ttf $RPM_BUILD_ROOT%{_datadir}/gnubg/fonts/VeraBd.ttf 
1d5f792
ln -s ../../fonts/dejavu/DejaVuSerif-Bold.ttf $RPM_BUILD_ROOT%{_datadir}/gnubg/fonts/VeraSeBd.ttf 
Joost Soeterbroek 7b0ebca
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnubg/gnubg.weights
591dc41
cp -rp textures* $RPM_BUILD_ROOT%{_datadir}/gnubg/
591dc41
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnubg/textures/CVS
591dc41
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnubg/textures/.cvsignore
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%find_lang %{name}
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
# remove /usr/share/info/dir
Joost Soeterbroek 7b0ebca
/bin/rm -f $RPM_BUILD_ROOT/usr/share/info/dir
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
# below is the desktop file and icon stuff.
Joost Soeterbroek 7b0ebca
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
Joost Soeterbroek 7b0ebca
desktop-file-install --vendor fedora            \
Joost Soeterbroek 7b0ebca
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
Joost Soeterbroek 7b0ebca
  %{SOURCE2}
Joost Soeterbroek 7b0ebca
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
Joost Soeterbroek 7b0ebca
install -p -m 644 %{SOURCE3} \
Joost Soeterbroek 7b0ebca
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%post
Joost Soeterbroek 7b0ebca
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
Joost Soeterbroek 7b0ebca
touch --no-create %{_datadir}/icons/hicolor || :
Joost Soeterbroek 7b0ebca
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Joost Soeterbroek 7b0ebca
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Joost Soeterbroek 7b0ebca
fi
Joost Soeterbroek 7b0ebca
 
Joost Soeterbroek 7b0ebca
%preun
Joost Soeterbroek 7b0ebca
if [ $1 = 0 ]; then
Joost Soeterbroek 7b0ebca
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
Joost Soeterbroek 7b0ebca
fi
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%postun
Joost Soeterbroek 7b0ebca
touch --no-create %{_datadir}/icons/hicolor || :
Joost Soeterbroek 7b0ebca
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Joost Soeterbroek 7b0ebca
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Joost Soeterbroek 7b0ebca
fi
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%clean
Joost Soeterbroek 7b0ebca
rm -rf ${RPM_BUILD_ROOT}
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%files -f %{name}.lang
Joost Soeterbroek 7b0ebca
%defattr(-,root,root,-)
Joost Soeterbroek 7b0ebca
%doc AUTHORS README COPYING ChangeLog
Joost Soeterbroek 7b0ebca
%{_bindir}/bearoffdump
Joost Soeterbroek 7b0ebca
%{_bindir}/gnubg
Joost Soeterbroek 7b0ebca
%{_bindir}/makebearoff
Joost Soeterbroek 7b0ebca
%{_bindir}/makehyper
b5ba660
%{_bindir}/makeweights
b5ba660
#%{_infodir}/gnubg.info.gz
Joost Soeterbroek 7b0ebca
%dir %{_datadir}/gnubg
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/met
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/doc
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/boards.xml
b5ba660
#%{_datadir}/gnubg/gnubg.game.sql
Joost Soeterbroek 5eae60b
#%{_datadir}/gnubg/gnubg.gtkrc
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/gnubg_os0.bd
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/gnubg.weights
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/sounds
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/textures.txt
Joost Soeterbroek 7b0ebca
%{_datadir}/gnubg/textures
Joost Soeterbroek 7b0ebca
%{_mandir}/man6/gnubg.*
Joost Soeterbroek 7b0ebca
%{_datadir}/applications/fedora-%{name}.desktop
Joost Soeterbroek 7b0ebca
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
f725109
%dir %{_datadir}/gnubg/fonts
f725109
%{_datadir}/gnubg/fonts/*
f725109
%{_datadir}/gnubg/gnubg.gtkrc
f725109
%{_datadir}/gnubg/gnubg.wd
51f3562
%{_datadir}/gnubg/scripts/
51f3562
%{_datadir}/gnubg/flags/
b5ba660
%{_datadir}/gnubg/gnubg.png
b5ba660
%{_datadir}/gnubg/gnubg.sql
b5ba660
%{_datadir}/gnubg/gnubg.svg
b5ba660
%{_datadir}/gnubg/gnubg_ts0.bd
Joost Soeterbroek 7b0ebca
Joost Soeterbroek 7b0ebca
%changelog
8118c16
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.0.1-7
8118c16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8118c16
e9f7f8c
* Tue Jan 20 2009 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-6
e9f7f8c
- Fix for dejavu renaming, BZ 480456.
1d5f792
* Fri Jan 09 2009 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-5
1d5f792
- Switch to dejavu fonts.
7b416e1
* Fri Jan 02 2009 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-4.1
7b416e1
- Requires fix.
e010b31
* Tue Dec 30 2008 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-4
e010b31
- Drop and symlink to system fonts, BZ 477391.
214d40c
* Thu Dec 11 2008 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-3
214d40c
- Added coreutils requires, BZ 475933.
1e18fef
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:0.9.0.1-2
1e18fef
- Rebuild for Python 2.6
b5ba660
* Fri Sep 05 2008 Jon Ciesla <limb@jcomserv.net> - 1:0.9.0.1-1
b5ba660
- Update to latest version, BZ 461281.
f91dc3e
* Fri Feb 08 2008 Jon Ciesla <limb@jcomserv.net> - 20061119-14
f91dc3e
- GCC 4.3 rebuild.
9b61058
* Thu Aug 16 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-13
9b61058
- License tag correction.
da75c15
* Mon Aug 13 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-12
da75c15
- Fixed .desktop file version.
84b71bd
* Mon Apr 04 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-11
84b71bd
- rel bump for desktop mis-update fix.
84b71bd
* Mon Apr 04 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-10
f517d31
- Unified spec to fix EVR issues.
591dc41
* Tue Mar 20 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-9
591dc41
- Explicity installing textures.
591dc41
- Updated menu categories in desktop.
51f3562
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-8
51f3562
- Corrected some duplicate files
a78b061
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-7
a78b061
- BuildRequires fix.
06f9efd
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-6
06f9efd
- BuildRequires fix.
bd1ab23
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-5
bd1ab23
- BuildRequires fix.
a78ac80
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-4
a78ac80
- BuildRequires fix.
35024da
* Wed Feb 14 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-3
35024da
- BuildRequires fix.
c55e599
* Tue Feb 13 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-2
c55e599
- Removed czech.png, added scripts, flags dirs.
f725109
* Tue Feb 13 2007 Jon Ciesla <limb@jcomserv.net> - 20061119-1
f725109
- Bumped to upstream verion 20061119; Updated URL
Joost Soeterbroek 3fb82c6
* Wed Aug 30 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 20060629-1
Joost Soeterbroek 3fb82c6
- Rebuild for Fedora Extras 6; bumped to upstream version 20060629
Joost Soeterbroek 5eae60b
* Mon Jun 26 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060626-1
Joost Soeterbroek 5eae60b
- update to new upstream version
Joost Soeterbroek 7b0ebca
* Tue Jun  6 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060530-5
Joost Soeterbroek 7b0ebca
- minor change in man file conversion, move from install to prep
Joost Soeterbroek 7b0ebca
* Mon Jun  5 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060530-4
Joost Soeterbroek 7b0ebca
- added BuildReqs desktop-file-utils
Joost Soeterbroek 7b0ebca
* Sun Jun  4 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060530-3
Joost Soeterbroek 7b0ebca
- fixed utf8 error in /usr/share/man/man6/gnubg.6.gz
Joost Soeterbroek 7b0ebca
- removed BuildReqs gtk+-devel, freetype-devel, audiofile-devel
Joost Soeterbroek 7b0ebca
- added BuildReqs gtkglext-devel
Joost Soeterbroek 7b0ebca
- remove /usr/share/info/dir
Joost Soeterbroek 7b0ebca
- removed subpackages database- and sound-
Joost Soeterbroek 7b0ebca
- removed configure option without-board3d 
f725109
- sanitised %%files section
Joost Soeterbroek 7b0ebca
- ghost the .pyo files /usr/share/gnubg/scripts/
Joost Soeterbroek 7b0ebca
- added desktop file and icon
Joost Soeterbroek 7b0ebca
* Thu Jun  1 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060530-2
f725109
- moved autogen.sh from %%build to %%setup
f725109
- changed ./configure to %%configure macro
Joost Soeterbroek 7b0ebca
- removed install-strip
Joost Soeterbroek 7b0ebca
- added directories to files sections
Joost Soeterbroek 7b0ebca
- removed BuildReqs glib2 and autoconf
Joost Soeterbroek 7b0ebca
- added BuildReqs (mock): gettext-devel, gtk2-devel, texinfo, python-devel,
Joost Soeterbroek 7b0ebca
  netpbm-progs, gnuplot, ghostscript, info
Joost Soeterbroek 7b0ebca
* Wed May 31 2006 - Joost Soeterbroek <fedora@soeterbroek.com> - 20060530-1
Joost Soeterbroek 7b0ebca
- added find_lang macro
Joost Soeterbroek 7b0ebca
- added full URL to Source
Joost Soeterbroek 7b0ebca
- added BuildReqs.
Joost Soeterbroek 7b0ebca
- added correct Reqs. to sub-packages
Joost Soeterbroek 7b0ebca
- added defattr to sub-packages' files section
Joost Soeterbroek 7b0ebca
- added correct TexInfo scriptlet for post and preun
Joost Soeterbroek 7b0ebca
* Sun Apr 23 2006 - Joost Soeterbroek <fedora@soeterbroek.com>
Joost Soeterbroek 7b0ebca
- rebuild for FE
Joost Soeterbroek 7b0ebca
* Wed Dec 28 2004 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- new weights including pruning
Joost Soeterbroek 7b0ebca
* Mon Oct 11 2004 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- fixed some minor bugs
Joost Soeterbroek 7b0ebca
* Wed Sep 01 2004 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- new rpms with 3d enabled
Joost Soeterbroek 7b0ebca
* Wed Nov 05 2003 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- made the spec suit to redhat and suse <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- disabled 3d (still problems with nvidia)
Joost Soeterbroek 7b0ebca
- added gpg signature
Joost Soeterbroek 7b0ebca
* Thu Oct 23 2003 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- disabled gdbm and guile
Joost Soeterbroek 7b0ebca
- changed info- and manpath
Joost Soeterbroek 7b0ebca
* Mon Oct 20 2003 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- divided into three packages (gnubg, databases, sounds)
Joost Soeterbroek 7b0ebca
* Fri Oct 18 2003 - <ace@gnubg.org>
Joost Soeterbroek 7b0ebca
- initial package (Version 0.14)