]>
Commit | Line | Data |
---|---|---|
22b35b25 | 1 | Summary: Free cue sports simulator |
2 | Summary(pl.UTF-8): Darmowy symulator bilarda | |
3 | Name: billiards | |
ad420f62 | 4 | Version: 0.4 |
22b35b25 | 5 | Release: 0.1 |
6 | License: GPL v3+ | |
7 | Group: X11/Applications/Games | |
8 | Source0: http://download.savannah.gnu.org/releases/billiards/%{name}-%{version}.tar.gz | |
ad420f62 | 9 | # Source0-md5: 6bcee44199f85a7b6710dc0e06f0db75 |
22b35b25 | 10 | URL: http://www.nongnu.org/billiards/ |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: lua51 | |
14 | BuildRequires: sed >= 4.0 | |
15 | BuildRequires: techne | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Billiards is a free cue sports simulator. It aims for physical | |
20 | accuracy and simplicity and should hopefully be useful for practicing | |
21 | billiards on your own and against your friends when a real pool table | |
22 | is not available. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Billiards to darmowy symulator bilarda. Jego celem jest dokładne | |
26 | odwzorowanie praw fizyki i prostota. Jest przydatny dla osób, które | |
27 | chcą rozwijać swoje umiejętności bilardowe grając w pojedynkę lub z | |
28 | przyjaciółmi, gdy prawdziwy stół bilardowy nie jest dostępny. | |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | %{__sed} -i 's,techne/,,' src/Makefile.am | |
ad420f62 | 33 | %{__sed} -i 's,/techne,,;s,@techne@,%{_bindir}/techne.bin,' src/billiards.in |
34 | %{__sed} -i 's,billiards/,%{_datadir}/billiards/,' src/billiards.lua | |
22b35b25 | 35 | |
36 | %build | |
37 | %{__aclocal} | |
38 | %{__autoconf} | |
39 | %{__automake} | |
40 | %configure | |
41 | %{__make} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
ad420f62 | 49 | # remove symlink |
50 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/billiards-browser.6 | |
51 | ||
22b35b25 | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc AUTHORS ChangeLog NEWS README | |
58 | %attr(755,root,root) %{_bindir}/billiards | |
ad420f62 | 59 | %attr(755,root,root) %{_bindir}/billiards-browser |
22b35b25 | 60 | %{_datadir}/%{name} |
ad420f62 | 61 | %{_mandir}/man6/*.6* |