- added qt patch, use qt-mt; simplified install, release 2
[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:        2
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://freesoftware.fsf.org/download/cuyo/%{name}-%{version}.tar.gz
9 # Source0-md5:  9c250217ab90baeb993a238b9b98f63f
10 Patch0:         %{name}-make.patch
11 Patch1:         %{name}-qt.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 %{__aclocal} -I .
31 %{__autoconf}
32 %{__autoheader}
33 %{__automake}
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 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT \
49         gamesdir=%{_bindir}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc AUTHORS ChangeLog NEWS TODO README
57 %attr(755,root,root) %{_bindir}/%{name}
58 %dir %{_datadir}/%{name}
59 %{_datadir}/%{name}/*.ld
60 %dir %{_datadir}/%{name}/pics
61 %{_datadir}/%{name}/pics/*
62 %{_mandir}/man6/*
This page took 0.046153 seconds and 3 git commands to generate.