]> git.pld-linux.org Git - packages/chessprn.git/blob - chessprn.spec
- pl, some cleanups
[packages/chessprn.git] / chessprn.spec
1 Summary:        Utility to print chess games in various formats
2 Summary(pl):    Narzêdzie do drukowania rozgrywek szachowych w ró¿nych formatach
3 Name:           chessprn
4 Version:        1.0.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Games
8 Source0:        http://kamp.pl/~havner/%{name}.tar.gz
9 # Source0-md5:  9f3fe9a548d319d2328fc0c98c521096
10 Source2:        Cheq.ps
11 Source3:        http://kamp.pl/~havner/ChessFont.sh.gz
12 # Source3-md5:  8a694f8059c0270f2a57cdbca1e7ef8a
13 Patch0:         %{name}.diff
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Utility to print chess games in various formats.
18
19 %description -l pl
20 Narzêdzie do drukowania rozgrywek szachowych w ró¿nych formatach.
21
22 %prep
23 %setup -q -n chessprn
24 %patch -p1
25 zcat %{SOURCE3} | unshar
26 mv Font ChessFont.ps
27 mv README README.ChessFont
28
29 %build
30 %{__make}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}/lib/games/chessprn/tex}
35 install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/chessprn
36
37 %{__make} install \
38         LIBDIR=$RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn \
39         BINDIR=$RPM_BUILD_ROOT%{_bindir}
40
41 install %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn
42 cp ChessFont.ps $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn/ChessFont.ps
43 cp -a $RPM_BUILD_ROOT%{_prefix}/lib/games/chessprn/tex/* \
44         $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/chessprn
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post   -p /usr/bin/texhash
50 %postun -p /usr/bin/texhash
51
52 %files
53 %defattr(644,root,root,755)
54 %doc notation.doc symboles.txt readme README.ChessFont Demo Table
55 %attr(755,root,root) %{_libdir}/chessprn
56 %{_prefix}/lib/games/chessprn
57 /usr/share/texmf/tex/latex/chessprn
This page took 0.061929 seconds and 3 git commands to generate.