]> git.pld-linux.org Git - packages/freecol.git/blob - freecol.spec
d2babfe2ee5d3f4d2b959bf4b985a3d6009edc2f
[packages/freecol.git] / freecol.spec
1 Summary:        Open source Colonization clone
2 Summary(pl):    Klon gry Colonization o otwartych ¼ród³ach
3 Name:           freecol
4 Version:        0.5.0
5 Release:        0.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:  fa33b91c291665dc94382afcfc4be69a
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 %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.032613 seconds and 2 git commands to generate.