]> git.pld-linux.org Git - packages/openttd.git/blame - openttd.spec
Release 3 (by relup.sh)
[packages/openttd.git] / openttd.spec
CommitLineData
45485505 1Summary: An open source reimplementation of the Microprose game "Transport Tycoon Deluxe"
305c9ddf 2Summary(pl.UTF-8): Otwarta reimplementacja gry Transport Tycoon Deluxe
a765077e 3Name: openttd
1279788b 4Version: 12.1
18c5269a 5Release: 3
15ba02e8 6License: GPL v2+
a765077e 7Group: X11/Applications/Games
91e6fd36 8Source0: https://cdn.openttd.org/openttd-releases/%{version}/%{name}-%{version}-source.tar.xz
1279788b 9# Source0-md5: 40111762304f5c5dcab83b1540bfbde9
3f7588d8 10Source1: %{name}.desktop
11Source2: %{name}-server.desktop
d1862a9a 12Patch0: %{name}-create-grf.patch
03c463a2 13URL: http://www.openttd.org/
91e6fd36 14BuildRequires: SDL2-devel
159dce7b 15BuildRequires: fontconfig-devel
ea1f199f 16BuildRequires: freetype-devel
3146ae05 17BuildRequires: grfcodec >= 6.0.2
7e49c026 18BuildRequires: libicu-devel
a765077e 19BuildRequires: libpng-devel
ea1f199f 20BuildRequires: libstdc++-devel
f0bac53c 21BuildRequires: lzo-devel
159dce7b 22BuildRequires: pkgconfig
fa2fd0fa 23BuildRequires: sed >= 4.0
2ac54f92 24BuildRequires: xz-devel
a765077e 25BuildRequires: zlib-devel
22d860af 26Requires: %{name}-data = %{version}-%{release}
3f7588d8 27Suggests: %{name}-ai
75ffc7b1 28Suggests: %{name}-opengfx
29Suggests: %{name}-openmsx
30Suggests: %{name}-opensfx
c14be4af 31Provides: %{name}-binary = %{version}-%{release}
a765077e 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
22d860af 35OpenTTD is modeled after the original Transport Tycoon game by Chris
a765077e 36Sawyer and enhances the game experience dramatically. Many features
37were inspired by TTDPatch while others are original.
38
39It requires the original Transport Tycoon Deluxe data files.
40
10703893
JR
41%description -l pl.UTF-8
42OpenTTD powstał na bazie gry Transport Tycoon stworzonej przez Chrisa
43Sawyera, jego grywalność jest jednak dużo większa. Wiele rzeczy
44zostało zainspirowanych przez TTDPatch, dużo jest jednak oryginalnych
45pomysłów.
a765077e 46
10703893 47Do uruchomienia wymagane są pliki danych z Transport Tycoon Deluxe.
a765077e 48
22d860af 49%package data
50Summary: OpenTTD data files
305c9ddf 51Summary(pl.UTF-8): Pliki danych OpenTTD
22d860af 52Group: X11/Applications/Games
22d860af 53
54%description data
55OpenTTD data files.
56
10703893 57%description data -l pl.UTF-8
22d860af 58Pliki danych OpenTTD.
59
60%package server
9407c714 61Summary: OpenTTD dedicated server
305c9ddf 62Summary(pl.UTF-8): Dedykowany serwer OpenTTD
22d860af 63Group: X11/Applications/Games
64Requires: %{name}-data = %{version}-%{release}
a30997ec 65Provides: %{name}-binary = %{version}-%{release}
22d860af 66
67%description server
68This package contains OpenTTD dedicated server. Note that
69graphics-enabled OpenTTD client also has this functionality.
70
10703893 71%description server -l pl.UTF-8
e00f1ca0 72Ten pakiet zawiera dedykowany serwer OpenTTD. Należy zwrócić uwagę, że
73graficzny klient OpenTTD również zawiera taką funkcjonalność.
22d860af 74
a765077e 75%prep
168ca64d 76%setup -q
d1862a9a 77%patch0 -p1
d30d6abb 78
3b1f8cfd 79# Let's pldize
15ba02e8 80find src/lang/ -type f -exec %{__sed} -i 's/:Unix/:PLD Linux/' \{\} \;
3b1f8cfd 81
a765077e 82%build
4d2595b7
AG
83
84# dedicated
91e6fd36
KM
85install -d dedicated
86cd dedicated
87%cmake .. \
88 -DOPTION_DEDICATED:BOOL=ON \
89 -DCMAKE_INSTALL_BINDIR="bin" \
90 -DCMAKE_INSTALL_DATADIR="share"
91
92%{__make}
93
94mv openttd{,-dedicated}
95
96cd ..
22d860af 97
4d2595b7 98# client
91e6fd36
KM
99install -d build
100cd build
101%cmake .. \
102 -DCMAKE_INSTALL_BINDIR="bin" \
103 -DCMAKE_INSTALL_DATADIR="share" \
104 -DOPTION_DEDICATED:BOOL=OFF
105
106%{__make}
a765077e 107
108%install
109rm -rf $RPM_BUILD_ROOT
a765077e 110
3f7588d8 111install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man6,%{_pixmapsdir}}
112install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{ai/library,scenario/heightmap}
7b231dea 113
91e6fd36
KM
114%{__make} -C build install \
115 DESTDIR=$RPM_BUILD_ROOT
a765077e 116
91e6fd36 117install dedicated/openttd-dedicated $RPM_BUILD_ROOT%{_bindir}
3f7588d8 118install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
119install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
0337373b 120install docs/openttd.6 $RPM_BUILD_ROOT%{_mandir}/man6
a097f82a 121install media/openttd.256.png $RPM_BUILD_ROOT%{_pixmapsdir}/openttd.png
22d860af 122
91e6fd36
KM
123%{__rm} $RPM_BUILD_ROOT%{_docdir}/{COPYING.md,README.md,changelog.txt,known-bugs.txt,multiplayer.md}
124
a765077e 125%clean
126rm -rf $RPM_BUILD_ROOT
127
4976cf30
MB
128%post
129%update_icon_cache hicolor
130
131%postun
132%update_icon_cache hicolor
133
a765077e 134%files
135%defattr(644,root,root,755)
91e6fd36 136%doc COPYING.md changelog.txt known-bugs.txt README.md docs/multiplayer.md
22d860af 137%attr(755,root,root) %{_bindir}/%{name}
7b231dea 138%{_desktopdir}/%{name}.desktop
15ba02e8 139%{_mandir}/man6/openttd.*
91e6fd36 140%{_iconsdir}/hicolor/*x*/apps/openttd.png
22d860af 141
142%files data
143%defattr(644,root,root,755)
4d2595b7 144%doc bin/scripts
a765077e 145%{_datadir}/%{name}
15ba02e8 146%{_pixmapsdir}/openttd.*
22d860af 147
148%files server
149%defattr(644,root,root,755)
150%attr(755,root,root) %{_bindir}/%{name}-dedicated
838d1e0a 151%{_desktopdir}/%{name}-server.desktop
This page took 0.157012 seconds and 4 git commands to generate.