~vcs-imports-ii/gnubg/trunk

2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
1
###############################################################
2
#
5516 by mdpetch
Minor edits
3
# Spec file for package gnubg (Version 1.02).
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
4
#
5
# Copyright (c) 2003 Achim Mueller, Germany.
6
# This file and all modifications and additions to the pristine
7
# package are under the same license as the package itself.
8
#
9
# please send bugfixes or comments to info@gnubg.org
10
#
11
###############################################################
12
13
Name:         gnubg
14
License:      GNU General Public License (GPL) - all versions
15
Group:        Amusements/Games/Board/Other
16
Packager:     <ace@gnubg.org>
17
Summary:      A backgammon game and analyser
5516 by mdpetch
Minor edits
18
Version:      1.02
19
Release:      5 
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
20
Source:       %{name}-%{version}.tar.gz
21
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
3784 by ace
some small changes and a new release
22
URL:          http://www.gnubg.org
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
23
24
25
%description
26
GNU Backgammon (@gnubg{}) is software for playing and analysing backgammon
27
positions, games and matches. It's based on a neural network. Although it
28
already plays at a very high level, it's still work in progress. You may
29
play GNU Backgammon using the command line or a graphical interface
30
3784 by ace
some small changes and a new release
31
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
32
Authors:
33
--------
5516 by mdpetch
Minor edits
34
Christian Anthon
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
35
Joseph Heled <joseph@gnubg.org>
36
Oystein Johansen <oystein@gnubg.org>
5516 by mdpetch
Minor edits
37
Jonathan Kinsey
38
Philippe Michel
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
39
David Montgomery
5516 by mdpetch
Minor edits
40
Michael Petch <mpetch@gnubg.org>
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
41
Jim Segrave
42
Joern Thyssen <jth@gnubg.org>
43
Gary Wong <gtw@gnu.org>
44
3784 by ace
some small changes and a new release
45
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
46
%package databases
47
Summary:     Databases for gnubg
48
Requires:    %{name}
49
Group:        Amusements/Games/Board/Other
50
51
%description databases
52
This package contains the GNU Backgammon bearoff databases.
53
54
%package sounds
55
Summary:     Sounds for gnubg
56
Requires:    %{name}
57
Group:        Amusements/Games/Board/Other
58
59
%description sounds
60
This package contains the sounds for GNU Backgammon.
61
3784 by ace
some small changes and a new release
62
%define prefix /usr
63
64
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
65
%prep
66
%setup
67
68
%build
3784 by ace
some small changes and a new release
69
3678 by ace
some small changes
70
./autogen.sh
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
71
./configure --prefix=%{prefix} \
72
            --with-python \
3784 by ace
some small changes and a new release
73
	    --infodir=${RPM_BUILD_ROOT}%{prefix}/share/info \
74
	    --mandir=${RPM_BUILD_ROOT}%{prefix}/share/man \
75
	    --with-board3d \
5416 by mdpetch
Where appropriate use the term SIMD instead of SSE
76
	    --enable-simd
3784 by ace
some small changes and a new release
77
	    
78
make  
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
79
80
%install
81
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
3784 by ace
some small changes and a new release
82
mkdir -p $RPM_BUILD_ROOT%{prefix}
83
make prefix=$RPM_BUILD_ROOT%{prefix} install-strip
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
84
3784 by ace
some small changes and a new release
85
# create this dir empty so we can own it
86
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/aclocal
87
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
88
 
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
89
%post
3784 by ace
some small changes and a new release
90
/sbin/install-info %{_infodir}/gnubg.info.gz %{_infodir}/dir
91
 
92
%preun
93
if [ $1 = 0 ]; then
94
    /sbin/install-info --delete %{_infodir}/gnubg.info.gz %{_infodir}/dir
95
fi
96
97
%clean
98
rm -rf ${RPM_BUILD_ROOT}
99
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
100
101
%files
102
%defattr(-,root,root)
3784 by ace
some small changes and a new release
103
# %doc AUTHORS README COPYING ChangeLog
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
104
%{prefix}/bin/*
105
%{prefix}/share/info/*
3784 by ace
some small changes and a new release
106
%{prefix}/share/gnubg/doc/*
107
%{prefix}/share/gnubg/flags/*
108
%{prefix}/share/gnubg/fonts/*
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
109
%{prefix}/share/gnubg/met/*
3784 by ace
some small changes and a new release
110
%{prefix}/share/gnubg/scripts/*
111
#%{prefix}/share/gnubg/textures/*
112
#%{prefix}/share/gnubg/*.png
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
113
%{prefix}/share/gnubg/boards.xml
114
%{prefix}/share/gnubg/gnubg.*
3784 by ace
some small changes and a new release
115
#%{prefix}/share/gnubg/texinfo.dtd
116
#%{prefix}/share/gnubg/textures*
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
117
%{prefix}/share/locale/*/*/*
118
%{prefix}/share/man/*/*
119
120
%files databases
121
%{prefix}/share/gnubg/*.bd
122
123
%files sounds
124
%{prefix}/share/gnubg/sounds/*
125
126
127
%changelog -n gnubg
3784 by ace
some small changes and a new release
128
* Sat Nov 18 2006 - <ace@gnubg.org>
129
- some slight changes in specfile
130
131
* Wed Dec 28 2004 - <ace@gnubg.org>
132
- new weights including pruning
133
134
* Mon Oct 11 2004 - <ace@gnubg.org>
135
- fixed some minor bugs
136
137
* Wed Sep 01 2004 - <ace@gnubg.org>
138
- new rpms with 3d enabled
139
140
* Wed Nov 05 2003 - <ace@gnubg.org>
141
- made the spec suit to redhat and suse <ace@gnubg.org>
142
- disabled 3d (still problems with nvidia)
143
- added gpg signature
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
144
145
* Thu Oct 23 2003 - <ace@gnubg.org>
3784 by ace
some small changes and a new release
146
- disabled gdbm and guile
2782 by ace
Added spec file for SuSE-rpms <ace@gnubg.org>
147
- changed info- and manpath
148
149
* Mon Oct 20 2003 - <ace@gnubg.org>
150
- divided into three packages (gnubg, databases, sounds)
151
152
* Fri Oct 18 2003 - <ace@gnubg.org>
153
- initial package (Version 0.14)