]>
Commit | Line | Data |
---|---|---|
e73f26de AG |
1 | %define _snap 20050409 |
2 | Summary: Reimplemntation of the classic real time strategy hit Command & Conquer | |
406493a3 | 3 | Summary(pl.UTF-8): Reimplementacja strategii czasu rzeczywistego Command & Conquer |
e73f26de AG |
4 | Name: freecnc |
5 | Version: 0.1 | |
6 | Release: 0.%{_snap} | |
7 | License: GPL | |
8 | Group: X11/Applications/Games | |
9 | # taken from cvs://anonymous@cvs.FreeCNC.sourceforge.net:/cvsroot/freecnc | |
10 | Source0: %{name}-%{_snap}.tar.bz2 | |
11 | # Source0-md5: 0458576aa3386292ab9dc8caf6341b02 | |
12 | Patch0: %{name}-paths.patch | |
13 | URL: http://freecnc-sf.holarse.net/ | |
14 | BuildRequires: SDL-devel | |
5415b39e | 15 | BuildRequires: SDL_mixer-devel |
940c0454 | 16 | BuildRequires: boost-devel >= 1.35.0 |
e73f26de AG |
17 | BuildRequires: libstdc++-devel |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | FreeCNC will be a free implementation of the Command & Conquer Game | |
22 | Engine written in SDL. It will support the original C&C graphics and | |
23 | audio, as well as Red Alert's data files. | |
24 | ||
3dfa2ffc JR |
25 | %description -l pl.UTF-8 |
26 | FreeCNC będzie wolnodostępną, napisaną w SDL implementacją silnika gry | |
27 | Command & Conquer. Będzie wspierać grafikę i efekty dźwiękowe zarówno | |
28 | z plików gry Command & Conquer jak i Red Alert. | |
e73f26de AG |
29 | |
30 | %prep | |
31 | %setup -q -n %{name}-%{_snap} | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
35 | %{__make} \ | |
36 | CC="%{__cc}" \ | |
37 | CXX="%{__cxx}" \ | |
38 | CFLAFS="%{rpmcflags} `sdl-config --cflags`" \ | |
39 | CXXFLAGS="%{rpmcflags} `sdl-config --cflags`" | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} | |
45 | install freecnc shpview tmpinied $RPM_BUILD_ROOT%{_bindir} | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc ChangeLog.txt INSTALL.txt README.txt TODO.txt | |
53 | %attr(755,root,root) %{_bindir}/* | |
54 | # empty for now | |
55 | %{_datadir}/%{name} |