4502a9948f855e0daca4649a5a39899e1f3de758
[packages/cuyo.git] / cuyo.spec
1 Summary:        Cuyo.
2 Name:           cuyo
3 Version:        1.6.0alpha5
4 Release:        1
5 License:        GPL
6 Group:          X11/Applications/Games
7 Source0:        http://freesoftware.fsf.org/download/%{name}/%{name}-%{version}.tar.gz
8 Patch0:         %{name}-make.patch
9 URL:            http://www.karimmi.de/%{name}/
10 BuildRequires:  automake
11 BuildRequires:  autoconf
12 BuildRequires:  qt-devel
13 Requires:       qt
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 %prep
23 %setup -q
24 %patch0 -p1
25
26 %build
27 aclocal -I .
28 %{__automake}
29 %{__autoconf}
30 %configure
31 %{__make}
32
33 %install
34 #Could somebody help me to force automake using DESTDIR? //pascalek
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT/%{_bindir}
37 install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/pics
38 install -d $RPM_BUILD_ROOT/%{_mandir}/man6
39
40 cp src/%{name} $RPM_BUILD_ROOT/%{_bindir}
41 cp data/*.ld $RPM_BUILD_ROOT/%{_datadir}/%{name}
42 cp data/pics/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/pics
43 cp docs/%{name}.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 AUTHORS COPYING ChangeLog NEWS TODO README docs/cual
51 %attr(755,root,root) %{_bindir}/%{name}
52 %dir %{_datadir}/%{name}
53 %dir %{_datadir}/%{name}/pics
54 %{_datadir}/%{name}/*.ld
55 %{_datadir}/%{name}/pics/*
56 %{_mandir}/man6/*
This page took 0.189525 seconds and 2 git commands to generate.