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