forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 133
/
rpm.spec.in
121 lines (96 loc) · 3.06 KB
/
rpm.spec.in
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Name: @PACKAGE@
Summary: @PACKAGE_SHORTDESC@
Version: @VERSION@
Release: 1
Source: https://www.chocolate-doom.org/downloads/@VERSION@/@PACKAGE@-@VERSION@.tar.gz
URL: @PACKAGE_URL@
Group: Amusements/Games
BuildRoot: /var/tmp/@PACKAGE@-buildroot
License: @PACKAGE_LICENSE@
Packager: @PACKAGE_MAINTAINER@ <@PACKAGE_BUGREPORT@>
Prefix: %{_prefix}
Autoreq: 0
Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
./configure \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--localstatedir=/var/lib \
--sharedstatedir=/usr/com \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
%install
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%description
%(sed -n "/##/ q; p " < README.md)
See @PACKAGE_URL@ for more information.
%package -n @PROGRAM_PREFIX@heretic
Summary: @PACKAGE_SHORTDESC@ (Heretic binaries)
Group: Amusements/Games
Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
%files
%{_mandir}/man5/@PROGRAM_PREFIX@doom.cfg.5*
%{_mandir}/man5/default.cfg.5*
%{_mandir}/man6/@PROGRAM_PREFIX@doom.6*
%{_mandir}/man6/@PROGRAM_PREFIX@setup.6*
%{_mandir}/man6/@PROGRAM_PREFIX@server.6*
/usr/share/doc/@PACKAGE@/*
/usr/games/@PROGRAM_PREFIX@doom
/usr/games/@PROGRAM_PREFIX@server
/usr/games/@PROGRAM_PREFIX@doom-setup
/usr/share/icons/hicolor/128x128/apps/*
/usr/share/applications/*
%description -n @PROGRAM_PREFIX@heretic
%(sed -n "/##/ q; p " < README.md)
These are the Heretic binaries.
See @PACKAGE_URL@ for more information.
%files -n @PROGRAM_PREFIX@heretic
%{_mandir}/man5/@PROGRAM_PREFIX@heretic.cfg.5*
%{_mandir}/man5/heretic.cfg.5*
%{_mandir}/man6/@PROGRAM_PREFIX@heretic.6*
/usr/share/doc/@PROGRAM_PREFIX@heretic/*
/usr/games/@PROGRAM_PREFIX@heretic
/usr/games/@PROGRAM_PREFIX@heretic-setup
%package -n @PROGRAM_PREFIX@hexen
Summary: @PACKAGE_SHORTDESC@ (Hexen binaries)
Group: Amusements/Games
Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
%description -n @PROGRAM_PREFIX@hexen
%(sed -n "/##/ q; p " < README.md)
These are the Hexen binaries.
See @PACKAGE_URL@ for more information.
%files -n @PROGRAM_PREFIX@hexen
%{_mandir}/man5/@PROGRAM_PREFIX@hexen.cfg.5*
%{_mandir}/man5/hexen.cfg.5*
%{_mandir}/man6/@PROGRAM_PREFIX@hexen.6*
/usr/share/doc/@PROGRAM_PREFIX@hexen/*
/usr/games/@PROGRAM_PREFIX@hexen
/usr/games/@PROGRAM_PREFIX@hexen-setup
%package -n @PROGRAM_PREFIX@strife
Summary: @PACKAGE_SHORTDESC@ (Strife binaries)
Group: Amusements/Games
Requires: libSDL-1.2.so.0, libSDL_mixer-1.2.so.0, libSDL_net-1.2.so.0
%description -n @PROGRAM_PREFIX@strife
%(sed -n "/##/ q; p " < README.md)
These are the Strife binaries.
See @PACKAGE_URL@ for more information.
%files -n @PROGRAM_PREFIX@strife
%{_mandir}/man5/@PROGRAM_PREFIX@strife.cfg.5*
%{_mandir}/man5/strife.cfg.5*
%{_mandir}/man6/@PROGRAM_PREFIX@strife.6*
/usr/share/doc/@PROGRAM_PREFIX@strife/*
/usr/games/@PROGRAM_PREFIX@strife
/usr/games/@PROGRAM_PREFIX@strife-setup