]>
Commit | Line | Data |
---|---|---|
46bbf7b5 | 1 | Summary: Utility to print chess games in various formats. |
2 | Name: chessprn | |
3 | Version: 1.0.1 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/Games | |
f5f941da | 7 | Source0: http://kamp.pl/~havner/%{name}.tar.gz |
a37319dd | 8 | # Source0-md5: 9f3fe9a548d319d2328fc0c98c521096 |
46bbf7b5 | 9 | Source2: Cheq.ps |
f5f941da | 10 | Source3: http://kamp.pl/~havner/ChessFont.sh.gz |
a37319dd | 11 | # Source3-md5: 8a694f8059c0270f2a57cdbca1e7ef8a |
46bbf7b5 | 12 | Patch0: %{name}.diff |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Utility to print chess games in various formats. | |
17 | ||
18 | %prep | |
19 | %setup -q -n chessprn | |
20 | %patch -p1 | |
21 | zcat ${RPM_SOURCE_DIR}/ChessFont.sh.gz | unshar | |
22 | mv Font ChessFont.ps | |
23 | mv README README.ChessFont | |
24 | ||
25 | %build | |
26 | %{__make} | |
27 | ||
28 | %post | |
29 | texhash | |
30 | ||
31 | %postun | |
32 | texhash | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT/{%{_bindir},%{_prefix}/lib/games/chessprn/tex} | |
40 | install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/chessprn | |
41 | %{__make} LIBDIR=$RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn \ | |
42 | BINDIR=$RPM_BUILD_ROOT%{_bindir} install | |
43 | cp ${RPM_SOURCE_DIR}/Cheq.ps $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn | |
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 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc notation.doc | |
51 | %doc symboles.txt | |
52 | %doc readme | |
53 | %doc README.ChessFont Demo Table | |
a37319dd | 54 | %attr(755,root,root) /usr/bin/chessprn |
46bbf7b5 | 55 | /usr/lib/games/chessprn |
56 | /usr/share/texmf/tex/latex/chessprn |