File: wastesedge.spec

package info (click to toggle)
adonthell-data 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 24,860 kB
  • ctags: 456
  • sloc: python: 5,169; sh: 4,355; makefile: 415; sed: 16
file content (56 lines) | stat: -rw-r--r-- 1,709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Spec file to build RPM packages - shamefully ripped from Exult
# (but since they got our configure summary, that's just fair I guess)

%define ver         0.3.6
%define rel         1
%define prefix      /usr
%define name        wastesedge
%define bindir      %prefix/bin
%define datadir     %prefix/share
%define gamedatadir /usr/local/share/adonthell/games/wastesedge

Summary: Official game package for Adonthell %ver
Name: %name
Version: %ver
Release: %rel
License: GPL
Group: Amusements/Games
Source: http://freesoftware.fsf.org/download/adonthell/%{name}-%{ver}.tar.gz
URL: http://adonthell.linuxgames.com
BuildArch: noarch
BuildRoot: /tmp/wastesedge
Requires: adonthell >= %ver
Prefix: %prefix
Docdir: %{prefix}/doc

%description
As a loyal servant of the elven Lady Silverhair, you arrive at the remote
trading post of Waste's Edge, where she is engaged in negotiations with the
dwarish merchant Bjarn Fingolson. But not all is well at Waste's Edge, and
soon you are confronted with circumstances that are about to destroy your
mistress' high reputation. And you are the only one to avert this ...

%prep
%setup

%build
if [ ! -f configure ]; then
  ./autogen.sh
fi
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --bindir=%bindir --datadir=%datadir
make

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} bindir=$RPM_BUILD_ROOT%{bindir} gamedatadir=$RPM_BUILD_ROOT%{gamedatadir} datadir=$RPM_BUILD_ROOT%{datadir} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS PLAYING README
%{bindir}/adonthell-wastesedge
%{datadir}/pixmaps/wastesedge_16x16.xpm
%{datadir}/pixmaps/wastesedge_32x32.xpm
%{gamedatadir}