]> git.pld-linux.org Git - packages/netris.git/blob - netris.spec
- added link patch (kill unnecessary linking with -lnsl); release 9
[packages/netris.git] / netris.spec
1 Summary:        A free networked version of T*tris
2 Summary(pl.UTF-8):      Darmowa, sieciowa wersja T*trisa
3 Name:           netris
4 Version:        0.52
5 Release:        9
6 License:        GPL v2+
7 Group:          Applications/Games
8 Source0:        ftp://ftp.netris.org/pub/netris/%{name}-%{version}.tar.gz
9 # Source0-md5:  b55af5697175ee06f7c6e40101979c38
10 Patch0:         %{name}-make.patch
11 Patch1:         %{name}-debian.patch
12 Patch2:         %{name}-link.patch
13 URL:            http://www.netris.org/
14 BuildRequires:  ncurses-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 A free networked version of T*tris.
19
20 %description -l pl.UTF-8
21 Darmowa, sieciowa wersja T*trisa.
22
23 %prep
24 %setup -q
25 %patch0 -p1
26 %patch1 -p1
27 %patch2 -p1
28
29 %build
30 ./Configure \
31         --cc "%{__cc}" \
32         --copt "%{rpmcflags} %{rpmcppflags}" \
33         --lextra "%{rpmldflags}"
34
35 %{__make} proto.h
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6}
41
42 install {netris,sr} $RPM_BUILD_ROOT%{_bindir}
43 install debian/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README FAQ *_desc
51 %attr(755,root,root) %{_bindir}/netris
52 %attr(755,root,root) %{_bindir}/sr
53 %{_mandir}/man6/netris.6*
54 %{_mandir}/man6/netris-sample-robot.6*
This page took 0.067683 seconds and 3 git commands to generate.