]> git.pld-linux.org Git - packages/freecol.git/blob - freecol.spec
- new
[packages/freecol.git] / freecol.spec
1 # TODO:
2 #  - make it build
3 Summary:        Open source Colonization clone
4 Summary(pl):    Klon gry Colonization o otwartych ¼ród³ach
5 Name:           freecol
6 Version:        0.5.0
7 Release:        0.1
8 License:        GPL v2
9 Group:          X11/Applications/Games
10 Source0:        http://dl.sourceforge.net/freecol/%{name}-%{version}-src.tar.gz
11 # Source0-md5:  fa33b91c291665dc94382afcfc4be69a
12 Source1:        %{name}.sh
13 URL:            http://www.freecol.org/
14 BuildRequires:  ant
15 BuildRequires:  higlayout
16 BuildRequires:  jdk >= 1.4
17 Requires:       higlayout
18 Requires:       jre >= 1.4
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 %prep
27 %setup -q -n %{name}
28 #rm -rf jars
29 #sed -i -e /Class-Path/d src/MANIFEST.MF
30
31 %build
32 CLASSPATH=$(build-classpath higlayout)
33 JAVA_HOME=%{java_home}
34 export CLASSPATH JAVA_HOME
35 %{ant} -Dnojars -Dnodata fullpackage
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -Dpm 644 FreeCol.jar \
40     $RPM_BUILD_ROOT%{_datadir}/games/freecol/FreeCol.jar
41 install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/freecol
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc COPYING README
49 %attr(755,root,root) %{_bindir}/freecol
50 %{_datadir}/games/freecol/
This page took 0.038707 seconds and 3 git commands to generate.