1 |
Name: txw2 |
2 |
Version: 20110809 |
3 |
Release: %mkrel 5 |
4 |
Summary: Typed XML writer for Java |
5 |
Group: Development/Java |
6 |
License: CDDL and GPLv2 with exceptions |
7 |
URL: https://txw.dev.java.net |
8 |
|
9 |
# svn export https://svn.java.net/svn/jaxb~version2/tags/txw2-project-20110809/ txw2-20110809 |
10 |
# tar -zcvf txw2-20110809.tar.gz txw2-20110809 |
11 |
Source0: %{name}-%{version}.tar.gz |
12 |
|
13 |
# Remove the reference to the parent net.java:jvnet-parent, as no package |
14 |
# contains that artifact: |
15 |
Patch0: %{name}-%{version}-pom.patch |
16 |
|
17 |
# Update to use the version of args4j available in the distribution: |
18 |
Patch1: %{name}-%{version}-args4j.patch |
19 |
|
20 |
BuildArch: noarch |
21 |
|
22 |
BuildRequires: jpackage-utils |
23 |
BuildRequires: java-devel |
24 |
BuildRequires: maven |
25 |
|
26 |
BuildRequires: maven-compiler-plugin |
27 |
BuildRequires: maven-install-plugin |
28 |
BuildRequires: maven-jar-plugin |
29 |
BuildRequires: maven-javadoc-plugin |
30 |
BuildRequires: maven-release-plugin |
31 |
BuildRequires: maven-resources-plugin |
32 |
BuildRequires: maven-surefire-plugin |
33 |
BuildRequires: maven-surefire-provider-junit4 |
34 |
BuildRequires: args4j |
35 |
BuildRequires: xsom |
36 |
BuildRequires: rngom |
37 |
BuildRequires: codemodel |
38 |
|
39 |
Requires: jpackage-utils |
40 |
Requires: java |
41 |
Requires: args4j |
42 |
Requires: xsom |
43 |
Requires: rngom |
44 |
Requires: codemodel |
45 |
|
46 |
|
47 |
%description |
48 |
Typed XML writer for Java. |
49 |
|
50 |
|
51 |
%package javadoc |
52 |
Summary: Javadocs for %{name} |
53 |
Group: Development/Java |
54 |
Requires: jpackage-utils |
55 |
|
56 |
|
57 |
%description javadoc |
58 |
This package contains the API documentation for %{name}. |
59 |
|
60 |
|
61 |
%prep |
62 |
%setup -q |
63 |
%patch0 -p1 |
64 |
%patch1 -p1 |
65 |
|
66 |
|
67 |
%build |
68 |
mvn-rpmbuild \ |
69 |
-Dproject.build.sourceEncoding=UTF-8 \ |
70 |
install \ |
71 |
javadoc:aggregate |
72 |
|
73 |
|
74 |
%install |
75 |
|
76 |
# Jar files: |
77 |
install -d -m 755 %{buildroot}%{_javadir} |
78 |
cp -p runtime/target/txw2-%{version}.jar %{buildroot}%{_javadir}/txw2.jar |
79 |
cp -p compiler/target/txwc2-%{version}.jar %{buildroot}%{_javadir}/txwc2.jar |
80 |
|
81 |
# POM files: |
82 |
install -d -m 755 %{buildroot}%{_mavenpomdir} |
83 |
cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-txw2-project.pom |
84 |
cp -p runtime/pom.xml %{buildroot}%{_mavenpomdir}/JPP-txw2.pom |
85 |
cp -p compiler/pom.xml %{buildroot}%{_mavenpomdir}/JPP-txwc2.pom |
86 |
|
87 |
# Dependencies map: |
88 |
%add_maven_depmap JPP-txw2-project.pom |
89 |
%add_maven_depmap JPP-txw2.pom txw2.jar |
90 |
%add_maven_depmap JPP-txwc2.pom txwc2.jar |
91 |
|
92 |
# Javadoc files: |
93 |
install -d -m 755 %{buildroot}%{_javadocdir}/%{name} |
94 |
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} |
95 |
|
96 |
|
97 |
%files |
98 |
%{_mavenpomdir}/* |
99 |
%{_mavendepmapfragdir}/* |
100 |
%{_javadir}/* |
101 |
%doc license.txt |
102 |
|
103 |
|
104 |
%files javadoc |
105 |
%{_javadocdir}/%{name} |
106 |
%doc license.txt |
107 |
|
108 |
|