]>
Commit | Line | Data |
---|---|---|
835ab21c | 1 | # |
2 | # TODO: runs only with --no-sound | |
3 | # | |
28578258 | 4 | %include /usr/lib/rpm/macros.java |
71a48b43 | 5 | Summary: Open source Colonization clone |
a3074e7c | 6 | Summary(pl.UTF-8): Klon gry Colonization o otwartych źródłach |
71a48b43 | 7 | Name: freecol |
9a430c7d | 8 | Version: 0.9.4 |
9b013d1e | 9 | Release: 0.1 |
5c4243bd | 10 | License: GPL v2+ |
71a48b43 | 11 | Group: X11/Applications/Games |
5c4243bd | 12 | Source0: http://downloads.sourceforge.net/freecol/%{name}-%{version}-src.tar.gz |
9a430c7d | 13 | # Source0-md5: f0c0f5f2ce22a825a3182bf0ac23c9a8 |
71a48b43 | 14 | Source1: %{name}.sh |
d02d5cb6 | 15 | Source2: %{name}.desktop |
71a48b43 | 16 | URL: http://www.freecol.org/ |
27dddae2 | 17 | BuildRequires: ant-nodeps |
71a48b43 AG |
18 | BuildRequires: higlayout |
19 | BuildRequires: jdk >= 1.4 | |
28578258 | 20 | BuildRequires: jpackage-utils |
9a430c7d | 21 | BuildRequires: miglayout |
28578258 ER |
22 | BuildRequires: rpm-javaprov |
23 | BuildRequires: rpmbuild(macros) >= 1.300 | |
71a48b43 | 24 | Requires: higlayout |
c0d232d6 | 25 | Requires: java-commons-cli |
71a48b43 | 26 | Requires: jre >= 1.4 |
27dddae2 | 27 | Requires: jre-X11 |
9a430c7d | 28 | Requires: miglayout |
28578258 | 29 | BuildArch: noarch |
71a48b43 AG |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | The FreeCol team aims to create an Open Source version of Colonization | |
34 | (released under the GPL). | |
35 | ||
6a98b589 | 36 | %description -l pl.UTF-8 |
5c4243bd | 37 | Celem zespołu FreeCol jest stworzenie otwartej wersji gry Colonization |
c11c3ed9 JB |
38 | (wydanej na licencji GPL). |
39 | ||
71a48b43 AG |
40 | %prep |
41 | %setup -q -n %{name} | |
71a48b43 AG |
42 | |
43 | %build | |
e7be0782 | 44 | required_jars="higlayout miglayout-swing" |
28578258 | 45 | export CLASSPATH=$(build-classpath $required_jars) |
10fc61f9 | 46 | %ant |
71a48b43 AG |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
71a48b43 | 50 | |
c0d232d6 | 51 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/freecol,%{_desktopdir},%{_pixmapsdir},%{_javadir}} |
89157766 | 52 | |
c0d232d6 | 53 | install FreeCol.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar |
89157766 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/freecol |
55 | ||
a1201480 | 56 | # install freecol specific cortado library |
57 | install jars/cortado-fc-1.0.jar $RPM_BUILD_ROOT%{_javadir}/ | |
58 | ln -s cortado-fc-1.0.jar $RPM_BUILD_ROOT%{_javadir}/cortado-fc.jar | |
59 | ||
69b1d945 | 60 | cp -a data/* $RPM_BUILD_ROOT%{_datadir}/freecol/ |
d02d5cb6 | 61 | install %SOURCE2 $RPM_BUILD_ROOT%{_desktopdir} |
6a0f3c63 | 62 | install %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
ce3e0bba | 63 | |
71a48b43 AG |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
c11c3ed9 | 69 | %doc README |
71a48b43 | 70 | %attr(755,root,root) %{_bindir}/freecol |
ce3e0bba | 71 | %{_datadir}/freecol |
c0d232d6 | 72 | %{_javadir}/%{name}.jar |
a1201480 | 73 | %{_javadir}/cortado-fc*.jar |
65a579f7 | 74 | %{_desktopdir}/%{name}.desktop |
6a0f3c63 | 75 | %{_pixmapsdir}/%{name}.xpm |