-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPQ3.spec
72 lines (62 loc) · 2.77 KB
/
PQ3.spec
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# spec file for package PQ3
#
# Copyright (c) 2013 Björn Schramke, Brandenburg an der Havel, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: PQ3
#BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: scummvm
Requires: timidity
Version: 1.0.0
Release: 19920923
Summary: Police Quest III: The Kindred (Adventure Game)
License: proprietary
Group: Amusements/Games/Other
Source: %name.tgz
Source1: %name
Source2: %name.desktop
Source3: PQ3.png
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Police Quest is a series of police simulation video games produced and published by Sierra On-Line between 1987 and 1998.
%prep
%setup -q -c -n %{name}
#unzip $RPM_SOURCE_DIR/%name.tar.gz
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/games
mkdir -p $RPM_BUILD_ROOT/usr/share/games/%name
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/*.SCR $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/*.TEX $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/*.V56 $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/RESOURCE.* $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/INTERP.TXT $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/INSTALL.TXT $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/VERSION $RPM_BUILD_ROOT/usr/share/games/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/PQ3_Map_Color.jpg $RPM_BUILD_ROOT/usr/share/doc/packages/%name
install -m 644 $RPM_BUILD_DIR/%name/%name/PQ3PEN.BMP $RPM_BUILD_ROOT/usr/share/doc/packages/%name
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/games
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/usr/share/pixmaps
%suse_update_desktop_file -i %name Game X-SuSE-AdventureGame
rm -f $RPM_BUILD_ROOT/usr/share/pixmaps/PQ3
%files
%defattr(-,root,root)
%doc /usr/share/doc/packages/%name/
/usr/games/%name
/usr/share/games/%name/
/usr/share/applications/%name.desktop
/usr/share/pixmaps/PQ3.png
%changelog