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