]> git.pld-linux.org Git - packages/lgeneral.git/blob - lgeneral.spec
- add dirs needed by plugins
[packages/lgeneral.git] / lgeneral.spec
1 # TODO:
2 # - lgeneral-redit: make it installable (source dir paths in main.c, misc.c), build&install
3 # - package addons from http://lgames.sourceforge.net/LGeneral/addons.php (extend lgeneral-scenarios.spec?)
4 Summary:        Panzer General clone
5 Summary(pl.UTF-8):      Klon gry Panzer General
6 Name:           lgeneral
7 Version:        1.3.1
8 Release:        2
9 License:        GPL v2+
10 Group:          X11/Applications/Games/Strategy
11 Source0:        http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
12 # Source0-md5:  7605ccf7eac6ce7a8c36b6db0613ceb6
13 Patch0:         %{name}-desktop.patch
14 Patch1:         %{name}-hash.patch
15 URL:            http://lgames.sourceforge.net/LGeneral
16 BuildRequires:  SDL-devel >= 1.1.4
17 BuildRequires:  SDL_mixer-devel
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  gettext-tools
21 BuildRequires:  sed >= 4.0
22 Requires:       SDL >= 1.1.4
23 Suggests:       %{name}-tools = %{version}-%{release}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 LGeneral is a turn-based strategy engine heavily inspired by Panzer
28 General. You play single scenarios or whole campaigns turn by turn
29 against a human player or the AI. Entrenchment, rugged defense,
30 defensive fire, surprise contacts, surrender, unit supply, weather
31 influence, reinforcements and other implementations contribute to the
32 tactical and strategic depth of the game.
33
34 %description -l pl.UTF-8
35 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
36 General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
37 drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
38 opcji jak na przykład wpływ pogody na warunki walki.
39
40 %package tools
41 Summary:        Tools to manipulate LGeneral data files
42 Summary(pl.UTF-8):      Narzędzia do operacji na plikach danych gry LGeneral
43 Group:          X11/Applications/Games/Strategy
44 Requires:       SDL >= 1.1.4
45 Conflicts:      lgeneral < 1.3.1
46
47 %description tools
48 Tools to manipulate LGeneral data files.
49
50 %description tools -l pl.UTF-8
51 Narzędzia do operacji na plikach danych gry LGeneral.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56 #patch1 -p1 # if using updated intl/
57
58 %{__sed} -i 's@games/@@' configure.in
59
60 %build
61 # cannot use gettextize (po/ is hacked), so just
62 cp -f %{_datadir}/gettext/config.rpath .
63 %{__aclocal}
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure
68
69 %{__make} -j1
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 # Needed by addons
78 install -d $RPM_BUILD_ROOT%{_datadir}/lgeneral/gfx/{flags,terrain,units}
79
80 # lgeneral,pg domains
81 %find_lang %{name} --all-name
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 if [ "$1" = 1 ]; then
88 %banner %{name} -e <<EOF
89 NOTE:
90 LGeneral requires some data pack.
91
92 If you have the orginal Panzer General CD then mount it
93 (e.g., to /media/cdrom) and (having %{name}-tools package installed)
94 run the following command as root user:
95
96         lgc-pg -s /media/cdrom/DAT -d /usr/share/lgeneral
97
98 If you do not have the original Panzer General CD, you can use
99 the abandonware lgeneral-data-pg package.
100
101 Or you can use free lgeneral-data-kukgen data based on k.u.k General.
102 EOF
103 fi
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog README.{lgc-pg,lgeneral} TODO
108 %attr(755,root,root) %{_bindir}/lgeneral
109 %dir %{_datadir}/lgeneral
110 %dir %{_datadir}/lgeneral/ai_modules
111 %dir %{_datadir}/lgeneral/campaigns
112 %{_datadir}/lgeneral/campaigns/PG
113 %{_datadir}/lgeneral/gfx
114 %dir %{_datadir}/lgeneral/maps
115 %dir %{_datadir}/lgeneral/music
116 %dir %{_datadir}/lgeneral/nations
117 %dir %{_datadir}/lgeneral/scenarios
118 %dir %{_datadir}/lgeneral/sounds
119 %dir %{_datadir}/lgeneral/terrain
120 %dir %{_datadir}/lgeneral/themes
121 %{_datadir}/lgeneral/themes/default
122 %dir %{_datadir}/lgeneral/units
123 %{_desktopdir}/lgeneral.desktop
124 %{_mandir}/man6/lgeneral.6*
125 %{_iconsdir}/hicolor/48x48/apps/lgeneral.png
126
127 %files tools
128 %defattr(644,root,root,755)
129 %doc lgc-pg/convdata/COPYING
130 %attr(755,root,root) %{_bindir}/lgc-pg
131 %attr(755,root,root) %{_bindir}/lged
132 %attr(755,root,root) %{_bindir}/ltrextract
133 %attr(755,root,root) %{_bindir}/shptool
134 %dir %{_datadir}/lgeneral
135 %{_datadir}/lgeneral/convdata
136 %{_mandir}/man1/lgc-pg.1*
This page took 0.08722 seconds and 4 git commands to generate.