/[packages]/cauldron/gwt/current/SPECS/gwt.spec
ViewVC logotype

Contents of /cauldron/gwt/current/SPECS/gwt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 471786 - (show annotations) (download)
Sun Aug 25 21:29:53 2013 UTC (11 years ago) by pterjan
File size: 2644 byte(s)
imported package gwt
1 Name: gwt
2 Version: 2.5.1
3 Release: %mkrel 1
4 Summary: Google Web Toolkit
5
6 Group: Development/Java
7 License: ASL 2.0
8 URL: http://www.gwtproject.org/
9 # git clone https://gwt.googlesource.com/gwt
10 # cd gwt
11 # git archive --format=tar --prefix=gwt-2.5.1/ -o gwt-2.5.1.tar 2.5.1
12 # xz gwt-2.5.1.tar
13 Source0: gwt-%{version}.tar.xz
14 # svn checkout http://gwt-tools.googlecode.com/svn/trunk/ gwt-tools
15 # + Removal of unused files
16 # + Replacement of some .jar with links to system ones
17 Source1: gwt-tools.tgz
18
19 Source2: gwt-2.5.1.pom
20 Source3: gwt-codeserver-2.5.1.pom
21 Source4: gwt-dev-2.5.1.pom
22 Source5: gwt-servlet-2.5.1.pom
23 Source6: gwt-user-2.5.1.pom
24
25 BuildArch: noarch
26
27 BuildRequires: jpackage-utils
28 BuildRequires: java-devel
29 BuildRequires: jcommon
30 BuildRequires: ant
31 Requires: java
32
33 %description
34 Google Web Toolkit.
35
36 %package javadoc
37 Group: Documentation
38 Summary: Javadoc for %{name}
39
40 %description javadoc
41 API documentation for %{name}.
42
43 %prep
44 %setup -q -a1
45
46 %build
47 export GWT_TOOLS=$(pwd)/gwt-tools
48 ant dist
49
50 %install
51 rm -rf %{buildroot}
52 install -d -m 0755 %{buildroot}%{_javadir}/%{name}
53
54 # jars
55 for jar in ant-gwt gwt-api-checker gwt-codeserver gwt-dev gwt-doctool gwt-servlet-deps gwt-servlet gwt-soyc-vis gwt-user requestfactory-apt requestfactory-client requestfactory-server; do
56 install -m 644 build/lib/$jar.jar %{buildroot}%{_javadir}/%{name}/$jar-%{version}.jar
57 ln -s $jar-%{version}.jar %{buildroot}%{_javadir}/%{name}/$jar.jar
58 done
59
60 # poms
61 install -d -m 755 %{buildroot}%{_datadir}/maven2/poms/
62 install %{SOURCE2} -m 644 %{buildroot}%{_datadir}/maven2/poms/%{name}.pom
63 install %{SOURCE3} -m 644 %{buildroot}%{_datadir}/maven2/poms/%{name}-codeserver.pom
64 install %{SOURCE4} -m 644 %{buildroot}%{_datadir}/maven2/poms/%{name}-dev.pom
65 install %{SOURCE5} -m 644 %{buildroot}%{_datadir}/maven2/poms/%{name}-servlet.pom
66 install %{SOURCE6} -m 644 %{buildroot}%{_datadir}/maven2/poms/%{name}-user.pom
67
68 install -d -m 0755 %{buildroot}%{_datadir}/%{name}
69 install -m 644 build/lib/gwt-benchmark-viewer.war %{buildroot}%{_datadir}/%{name}/benchmark-viewer-%{version}.war
70
71 # javadoc
72 install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
73 cp -pr build/out/doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
74 ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
75
76 %clean
77 rm -rf %{buildroot}
78
79 %files
80 %defattr(-,root,root,-)
81 %{_datadir}/%{name}/
82 %dir %{_javadir}/%{name}/
83 %{_javadir}/%{name}/*.jar
84 %{_datadir}/maven2/poms/*
85 %{_mavendepmapfragdir}/*
86
87 %files javadoc
88 %defattr(-,root,root,-)
89 %{_javadocdir}/%{name}-%{version}
90 %{_javadocdir}/%{name}
91

  ViewVC Help
Powered by ViewVC 1.1.30