]> git.pld-linux.org Git - packages/cuyo.git/blob - cuyo.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/cuyo.git] / cuyo.spec
1 Summary:        Cuyo - a Tetris clone
2 Summary(pl):    Cuyo - klon Tetrisa
3 Name:           cuyo
4 Version:        1.6.0alpha5
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://freesoftware.fsf.org/download/%{name}/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-make.patch
10 URL:            http://www.karimmi.de/%{name}/
11 BuildRequires:  automake
12 BuildRequires:  autoconf
13 BuildRequires:  qt-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _prefix         /usr/X11R6
17 %define         _mandir         %{_prefix}/man
18
19 %description
20 Cuyo is an interesting Tetris clone.
21
22 %description -l pl
23 Cuyo to ciekawy klon Tetrisa.
24
25 %prep
26 %setup -q
27 %patch0 -p1
28
29 %build
30 rm -f missing
31 %{__aclocal} -I .
32 %{__autoconf}
33 %{__automake}
34 %configure
35 %{__make}
36
37 %install
38 #Could somebody help me to force automake using DESTDIR? //pascalek
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT/%{_bindir}
41 install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/pics
42 install -d $RPM_BUILD_ROOT/%{_mandir}/man6
43
44 cp src/%{name} $RPM_BUILD_ROOT/%{_bindir}
45 cp data/*.ld $RPM_BUILD_ROOT/%{_datadir}/%{name}
46 cp data/pics/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/pics
47 cp docs/%{name}.6 $RPM_BUILD_ROOT/%{_mandir}/man6
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc AUTHORS COPYING ChangeLog NEWS TODO README docs/cual
55 %attr(755,root,root) %{_bindir}/%{name}
56 %dir %{_datadir}/%{name}
57 %{_datadir}/%{name}/*.ld
58 %dir %{_datadir}/%{name}/pics
59 %{_datadir}/%{name}/pics/*
60 %{_mandir}/man6/*
This page took 0.055252 seconds and 3 git commands to generate.