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