]> git.pld-linux.org Git - packages/freecol.git/blob - freecol.spec
ed7a0c45a7686d48a6e7d889503c687431fbd520
[packages/freecol.git] / freecol.spec
1 Summary:        Open source Colonization clone
2 Summary(pl.UTF-8):      Klon gry Colonization o otwartych źródłach
3 Name:           freecol
4 Version:        0.6.1
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/freecol/%{name}-%{version}-src.tar.gz
9 # Source0-md5:  897eca32fe8f54edf641871b6368c266
10 Source1:        %{name}.sh
11 URL:            http://www.freecol.org/
12 BuildRequires:  ant
13 BuildRequires:  ant-nodeps
14 BuildRequires:  higlayout
15 BuildRequires:  jdk >= 1.4
16 Requires:       higlayout
17 Requires:       jre >= 1.4
18 Requires:       jre-X11
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
26 %description -l pl.UTF-8
27 Celem zespoły FreeCol jest stworzenie otwartej wersji gry Colonization
28 (wydanej na licencji GPL).
29
30 %prep
31 %setup -q -n %{name}
32
33 %build
34 CLASSPATH="$(build-classpath higlayout)"
35 JAVA_HOME=%{java_home}
36 export CLASSPATH JAVA_HOME
37 %ant
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -Dpm 644 FreeCol.jar \
42         $RPM_BUILD_ROOT%{_datadir}/games/freecol/FreeCol.jar
43 install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/freecol
44
45 install -d $RPM_BUILD_ROOT%{_datadir}/freecol
46 cp -ar data/* $RPM_BUILD_ROOT%{_datadir}/freecol/
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README
54 %attr(755,root,root) %{_bindir}/freecol
55 %{_datadir}/games/freecol
56 %{_datadir}/freecol
This page took 0.07219 seconds and 3 git commands to generate.