45 lines
1.4 KiB
RPMSpec
45 lines
1.4 KiB
RPMSpec
Name: codemodel
|
|
Version: 2.6
|
|
Release: 1
|
|
Summary: Java library for code generators
|
|
License: CDDL-1.1 or GPLv2 with exceptions
|
|
URL: http://codemodel.java.net
|
|
Source0: https://github.com/javaee/jaxb-codemodel/archive/%{name}-project-%{version}.tar.gz
|
|
Patch0: %{name}-remove-istack-commons-dependency.patch
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(net.java:jvnet-parent:pom:)
|
|
BuildRequires: mvn(org.apache.ant:ant)
|
|
%description
|
|
CodeModel is a Java library for code generators; it provides a way to
|
|
generate Java programs in a way much nicer than PrintStream.println().
|
|
This project is a spin-off from the JAXB RI for its schema compiler
|
|
to generate Java source files.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jaxb-codemodel-codemodel-project-%{version}
|
|
%patch0 -p1
|
|
find . -name '*.jar' -print -delete
|
|
%mvn_file :%{name} %{name}
|
|
%mvn_file :%{name}-annotation-compiler %{name}-annotation-compiler
|
|
|
|
%build
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.html
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.html
|
|
|
|
%changelog
|
|
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 2.6-1
|
|
- package init
|