51 lines
1.8 KiB
RPMSpec
51 lines
1.8 KiB
RPMSpec
Name: txw2
|
|
Version: 20110809
|
|
Release: 1
|
|
Summary: Typed XML writer for Java
|
|
License: CDDL-1.1 and GPLv2 with exceptions
|
|
URL: https://repo.maven.apache.org/maven2/com/sun/xml/txw2
|
|
Source0: https://repo.maven.apache.org/maven2/com/sun/xml/txw2/txw2/%{version}/%{name}-%{version}-sources.jar
|
|
Source1: https://repo.maven.apache.org/maven2/com/sun/xml/txw2/txw2/%{version}/%{name}-%{version}.pom
|
|
Source2: https://repo.maven.apache.org/maven2/com/sun/xml/txw2/txw2-project/%{version}/%{name}-project-%{version}.pom
|
|
Source3: http://raw.githubusercontent.com/javaee/glassfish/master/LICENSE
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(args4j:args4j) mvn(com.sun.codemodel:codemodel)
|
|
BuildRequires: mvn(com.sun.xsom:xsom) mvn(javax.xml.stream:stax-api) mvn(junit:junit)
|
|
BuildRequires: mvn(org.apache.ant:ant) mvn(org.kohsuke.rngom:rngom)
|
|
BuildRequires: mvn(relaxngDatatype:relaxngDatatype)
|
|
%description
|
|
Typed XML writer for Java.
|
|
|
|
%package javadoc
|
|
Summary: Javadocs for %{name}
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
cp %{SOURCE3} license.txt
|
|
mkdir -p runtime/src/main/java
|
|
mv com runtime/src/main/java
|
|
cp -p %{SOURCE1} runtime/pom.xml
|
|
cp -p %{SOURCE2} pom.xml
|
|
# Remove the reference to the parent net.java:jvnet-parent, as no package
|
|
# contains that artifact:
|
|
%pom_xpath_remove "pom:parent[pom:artifactId='jvnet-parent']"
|
|
sed -i 's|<module>compiler</module>||g' pom.xml
|
|
|
|
%build
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc license.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%doc license.txt
|
|
|
|
%changelog
|
|
* Sat Aug 22 2020 maminjie <maminjie1@huawei.com> - 20110809-1
|
|
- package init
|