]> git.pld-linux.org Git - SPECS.git/blob - smw.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / smw.spec
1 #
2 # remember sources are here : svn://svn.72dpiarmy.com/smw
3 # remember to "touch" every file in sources before archive in file (year 1970)
4 #
5 Summary:        Super Mario War - a Super Mario multiplayer game
6 Summary(pl.UTF-8):      Super Mario War - gra Super Mario dla wielu graczy
7 Name:           smw
8 Version:        1.7
9 Release:        5
10 License:        GPL
11 Group:          X11/Applications/Games
12 Source0:        http://starowa.one.pl/~uzi/pld/%{name}-%{version}.tar.gz
13 # Source0-md5:  32d287c39ff190936b343f6a6f51fe14
14 Source1:        %{name}.desktop
15 Source2:        %{name}.png
16 Source3:        %{name}-leveleditor.desktop
17 Source4:        %{name}-leveleditor.png
18 Patch0:         %{name}-gcc44.patch
19 Patch1:         %{name}-libpng15.patch
20 URL:            http://smw.72dpiarmy.com/
21 BuildRequires:  SDL-devel >= 1.2.0
22 BuildRequires:  SDL_image-devel >= 1.2.0
23 BuildRequires:  SDL_mixer-devel >= 1.2.0
24 BuildRequires:  libpng-devel
25 BuildRequires:  libstdc++-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Super Mario War is a Super Mario multiplayer game.
30
31 %description -l pl.UTF-8
32 Super Mario War to gra Super Mario dla wielu graczy.
33
34 %prep
35 %setup -q -n %{name}
36 %patch0 -p1
37 %patch1 -p1
38
39 %build
40 chmod +x ./configure
41 %configure
42 %{__make} \
43         CC="%{__cc}" \
44         CXX="%{__cxx}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
49 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
50 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
51 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
52 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
53
54 export DESTDIR=$RPM_BUILD_ROOT
55 %{__make} install
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc todo.txt README.txt WHATSNEW.txt
63 %attr(755,root,root) %{_bindir}/%{name}*
64 %{_datadir}/%{name}
65 %{_pixmapsdir}/%{name}.png
66 %{_desktopdir}/%{name}.desktop
67 %{_pixmapsdir}/%{name}-leveleditor.png
68 %{_desktopdir}/%{name}-leveleditor.desktop
This page took 0.122512 seconds and 3 git commands to generate.