]>
Commit | Line | Data |
---|---|---|
ed103712 | 1 | Summary: Utility to print chess games in various formats |
deb8e5b4 | 2 | Summary(pl.UTF-8): Narzędzie do drukowania rozgrywek szachowych w różnych formatach |
46bbf7b5 | 3 | Name: chessprn |
4 | Version: 1.0.1 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Games | |
f5f941da | 8 | Source0: http://kamp.pl/~havner/%{name}.tar.gz |
a37319dd | 9 | # Source0-md5: 9f3fe9a548d319d2328fc0c98c521096 |
46bbf7b5 | 10 | Source2: Cheq.ps |
f5f941da | 11 | Source3: http://kamp.pl/~havner/ChessFont.sh.gz |
a37319dd | 12 | # Source3-md5: 8a694f8059c0270f2a57cdbca1e7ef8a |
46bbf7b5 | 13 | Patch0: %{name}.diff |
1778a68b | 14 | BuildRequires: flex |
15 | BuildRequires: sharutils | |
46bbf7b5 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | Utility to print chess games in various formats. | |
20 | ||
d72dc728 JR |
21 | %description -l pl.UTF-8 |
22 | Narzędzie do drukowania rozgrywek szachowych w różnych formatach. | |
ed103712 | 23 | |
46bbf7b5 | 24 | %prep |
25 | %setup -q -n chessprn | |
04f1cebf | 26 | %patch0 -p1 |
ed103712 | 27 | zcat %{SOURCE3} | unshar |
46bbf7b5 | 28 | mv Font ChessFont.ps |
29 | mv README README.ChessFont | |
30 | ||
31 | %build | |
32 | %{__make} | |
33 | ||
46bbf7b5 | 34 | %install |
35 | rm -rf $RPM_BUILD_ROOT | |
ed103712 | 36 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}/lib/games/chessprn/tex} |
46bbf7b5 | 37 | install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/chessprn |
ed103712 JB |
38 | |
39 | %{__make} install \ | |
40 | LIBDIR=$RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn \ | |
41 | BINDIR=$RPM_BUILD_ROOT%{_bindir} | |
42 | ||
43 | install %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn | |
46bbf7b5 | 44 | cp ChessFont.ps $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn/ChessFont.ps |
45 | cp -a $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn/tex/* \ | |
46 | $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/chessprn | |
47 | ||
ed103712 JB |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post -p /usr/bin/texhash | |
52 | %postun -p /usr/bin/texhash | |
53 | ||
46bbf7b5 | 54 | %files |
55 | %defattr(644,root,root,755) | |
ed103712 | 56 | %doc notation.doc symboles.txt readme README.ChessFont Demo Table |
be944410 | 57 | %attr(755,root,root) %{_bindir}/chessprn |
ed103712 | 58 | %{_prefix}/lib/games/chessprn |
46bbf7b5 | 59 | /usr/share/texmf/tex/latex/chessprn |