]>
Commit | Line | Data |
---|---|---|
71a48b43 | 1 | Summary: Open source Colonization clone |
a3074e7c | 2 | Summary(pl.UTF-8): Klon gry Colonization o otwartych źródłach |
71a48b43 | 3 | Name: freecol |
89157766 | 4 | Version: 0.7.2 |
37f4dd21 | 5 | Release: 1 |
71a48b43 AG |
6 | License: GPL v2 |
7 | Group: X11/Applications/Games | |
8 | Source0: http://dl.sourceforge.net/freecol/%{name}-%{version}-src.tar.gz | |
89157766 | 9 | # Source0-md5: 254576cbfada1f20535e641feb2b38f0 |
71a48b43 | 10 | Source1: %{name}.sh |
d02d5cb6 | 11 | Source2: %{name}.desktop |
71a48b43 | 12 | URL: http://www.freecol.org/ |
27dddae2 | 13 | BuildRequires: ant-nodeps |
71a48b43 AG |
14 | BuildRequires: higlayout |
15 | BuildRequires: jdk >= 1.4 | |
16 | Requires: higlayout | |
17 | Requires: jre >= 1.4 | |
27dddae2 | 18 | Requires: jre-X11 |
71a48b43 AG |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The FreeCol team aims to create an Open Source version of Colonization | |
24 | (released under the GPL). | |
25 | ||
6a98b589 JR |
26 | %description -l pl.UTF-8 |
27 | Celem zespoły FreeCol jest stworzenie otwartej wersji gry Colonization | |
c11c3ed9 JB |
28 | (wydanej na licencji GPL). |
29 | ||
71a48b43 AG |
30 | %prep |
31 | %setup -q -n %{name} | |
71a48b43 AG |
32 | |
33 | %build | |
ce3e0bba | 34 | CLASSPATH="$(build-classpath higlayout)" |
71a48b43 AG |
35 | JAVA_HOME=%{java_home} |
36 | export CLASSPATH JAVA_HOME | |
10fc61f9 | 37 | %ant |
71a48b43 AG |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
71a48b43 | 41 | |
6a0f3c63 | 42 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/freecol,%{_desktopdir},%{_pixmapsdir}} |
89157766 | 43 | |
44 | install FreeCol.jar $RPM_BUILD_ROOT%{_datadir}/freecol/FreeCol.jar | |
45 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/freecol | |
46 | ||
ce3e0bba | 47 | cp -ar data/* $RPM_BUILD_ROOT%{_datadir}/freecol/ |
d02d5cb6 | 48 | install %SOURCE2 $RPM_BUILD_ROOT%{_desktopdir} |
6a0f3c63 | 49 | install %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
ce3e0bba | 50 | |
71a48b43 AG |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
c11c3ed9 | 56 | %doc README |
71a48b43 | 57 | %attr(755,root,root) %{_bindir}/freecol |
ce3e0bba | 58 | %{_datadir}/freecol |
65a579f7 | 59 | %{_desktopdir}/%{name}.desktop |
6a0f3c63 | 60 | %{_pixmapsdir}/%{name}.xpm |