-
Notifications
You must be signed in to change notification settings - Fork 34
/
poker-eval.spec.in
86 lines (69 loc) · 1.98 KB
/
poker-eval.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
%define ver @PACKAGE_VERSION@
%define rel 1
%define prefix /usr
Summary: Poker hand evalutor library
Name: libpoker-eval
Version: %ver
Release: %rel
Copyright: GPL
Source: %{name}-%{version}.tar.bz2
URL: http://gna.org/projects/pokersource/
Group: Games/Cards
BuildRoot: /tmp/%{name}-%{version}-%{rel}-root
Docdir: %{prefix}/doc
%description
poker hand evaluator library
This package is a free (GPL) toolkit for writing programs which
simulate or analyze poker games.
Authors:
Michael Maurer <[email protected]>
Brian Goetz <[email protected]>
Tim Showalter <[email protected]>
Loic Dachary <[email protected]>
%package devel
Summary: Poker hand evalutor library developpement files
Group: Games/Cards
#Buildrequires: poker-eval
%description devel
poker hand evaluator library developpement files
This package is a free (GPL) toolkit for writing programs which
simulate or analyze poker games.
Authors:
Michael Maurer <[email protected]>
Brian Goetz <[email protected]>
Tim Showalter <[email protected]>
Loic Dachary <[email protected]>
%prep
#%setup -n %{name}-%{version}
%setup -q -a 0
%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
if [ ! -f bootstrap ]; then
CFLAGS="$RPM_OPT_FLAGS" autoconf
else
./bootstrap
fi
fi
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-java
PATH=$PATH:.
( cd lib ; make build_tables ) ; make
%install
[ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
(cd ..; rm -rf %{name}-%{version} ${RPM_BUILD_ROOT})
%files
%defattr(-,root,root)
%{prefix}/lib/libpoker-eval.so.*
%{prefix}/lib/libpoker-eval.so
%{prefix}/lib/libpoker-eval.a
%doc README COPYING NEWS
%files devel
%defattr (-, root, root)
%{prefix}/include/poker-eval/
%{prefix}/lib/pkgconfig/poker-eval.pc
%{prefix}/lib/libpoker-eval.la
%changelog
* Wed Oct 29 2004 Jean-Christophe Duberga <[email protected]>
- initial spec file for RedHat/Mandrake/... rpm based distributions.