]> git.pld-linux.org Git - SPECS.git/blob - meritous.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / meritous.spec
1
2 %define src_ver v12
3
4 Summary:        Action-adventure dungeon crawl game
5 Summary(pl.UTF-8):      Przygodowa gra typu roguelike
6 Name:           meritous
7 Version:        1.2
8 Release:        1
9 License:        GPL v3+
10 Group:          X11/Applications/Games
11 Source0:        http://www.asceai.net/files/%{name}_%{src_ver}_src.tar.bz2
12 # Source0-md5:  88e439c773ee0e334fd2b256100983b8
13 Source1:        %{name}.desktop
14 URL:            http://www.asceai.net/meritous/
15 BuildRequires:  SDL_image-devel
16 BuildRequires:  SDL_mixer-devel
17 BuildRequires:  sed >= 4.0
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Meritous is an action-adventure dungeon crawl game.
23
24 %description -l pl.UTF-8
25 Meritious jest przygodową grą typu roguelike.
26
27 %prep
28 %setup -q -n %{name}_%{src_ver}_src
29 %{__sed} -i -e 's@gcc@\$(CC)@g' Makefile
30
31 # change path to data files (manual installation)
32 find . -name '*.c' -exec %{__sed} -i -e 's@dat/@%{_datadir}/%{name}/dat/@g' {} \;
33
34 %build
35 %{__make} \
36         CC="%{__cc}" \
37         CCFLAGS="%{rpmcflags} `sdl-config --cflags`" \
38         LDFLAGS="%{rpmldflags} `sdl-config --libs` -lSDL_image -lSDL_mixer -lz"
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
43
44 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
45 install %{name} $RPM_BUILD_ROOT%{_bindir}
46 install dat/i/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
47 cp -r dat $RPM_BUILD_ROOT%{_datadir}/%{name}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc dat/d/helpfile.txt readme.txt
55 %attr(755,root,root) %{_bindir}/%{name}
56 %{_datadir}/%{name}
57 %{_desktopdir}/%{name}.desktop
58 %{_pixmapsdir}/%{name}.png
This page took 1.111365 seconds and 3 git commands to generate.