ed1f84a3a46abaa3f1cb0b3759b1469b9964df92
[packages/cuyo.git] / cuyo.spec
1 Summary:        Cuyo - a Tetris clone
2 Summary(pl):    Cuyo - klon Tetrisa
3 Name:           cuyo
4 Version:        1.8.5
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:  9c250217ab90baeb993a238b9b98f63f
10 Patch0:         %{name}-make.patch
11 URL:            http://www.karimmi.de/cuyo/
12 BuildRequires:  automake
13 BuildRequires:  autoconf
14 BuildRequires:  qt-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Cuyo is an interesting Tetris clone.
19
20 %description -l pl
21 Cuyo to ciekawy klon Tetrisa.
22
23 %prep
24 %setup -q
25 %patch0 -p1
26
27 %build
28 rm -f missing
29 %{__aclocal} -I .
30 %{__autoconf}
31 %{__autoheader}
32 %{__automake}
33 sed -i -e 's/include\/qglobal.h/include\/qt\/qglobal.h/' configure aclocal.m4 gwqt.m4
34 %configure \
35         QTDIR=%{_prefix}
36 for i in src/{cuyo,prefs,punktefeld,spielfeld,startatdlg,tastenbtn,sound}.h; do
37         moc $i > ${i%.h}.moc.cpp
38 done
39 %{__make} \
40         CPPFLAGS=-I/usr/include/qt \
41         %{!?debug:CXXDBGFLAGS="-DQT_NO_DEBUG -DQT_NO_CHECK %{rpmcflags}"} \
42         %{?debug:CXXDBGFLAGS="%{debugcflags}"}
43
44 %install
45 #Could somebody help me to force automake using DESTDIR? //pascalek
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/pics,%{_mandir}/man6}
48
49 cp src/%{name} $RPM_BUILD_ROOT%{_bindir}
50 cp data/*.ld $RPM_BUILD_ROOT%{_datadir}/%{name}
51 cp data/pics/* $RPM_BUILD_ROOT%{_datadir}/%{name}/pics
52 cp docs/%{name}.6 $RPM_BUILD_ROOT%{_mandir}/man6
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc AUTHORS ChangeLog NEWS TODO README
60 %attr(755,root,root) %{_bindir}/%{name}
61 %dir %{_datadir}/%{name}
62 %{_datadir}/%{name}/*.ld
63 %dir %{_datadir}/%{name}/pics
64 %{_datadir}/%{name}/pics/*
65 %{_mandir}/man6/*
This page took 0.02585 seconds and 2 git commands to generate.