diff --git a/mxparser.spec b/mxparser.spec new file mode 100644 index 0000000..7431b8b --- /dev/null +++ b/mxparser.spec @@ -0,0 +1,41 @@ +Name: mxparser +Version: 1.2.1 +Release: 1 +License: Lab Software License +Summary: MXParser is a fork of xpp3_min 1.1.7 containing only the parser with merged changes of the Plexus fork. +URL: http://x-stream.github.io/mxparser +Source0: https://github.com/x-stream/mxparser/archive/refs/tags/v-1.2.1.tar.gz +Source1: settings.xml +BuildRequires: javapackages-local java-javadoc xmlpull maven-local maven +BuildArch: noarch + +%description +MXParser is a fork of xpp3_min 1.1.7 containing only the parser with merged changes of the Plexus fork. + +%package help +Summary: Help documents for mxparser +%description help +Help documents for mxparser. + +%prep +%autosetup -n %{name}-v-%{version} +%pom_remove_plugin :maven-bundle-plugin +%pom_remove_plugin :maven-jar-plugin +%pom_remove_plugin :maven-source-plugin +cp -a %{_sourcedir}/settings.xml . + +%build +mvn install --settings ./settings.xml -Dmaven.test.skip=true +%mvn_build -f -s -b -- -Dversion.java.source=8 + +%install +%mvn_install + +%files -f .mfiles-mxparser +%doc changes.xml LICENSE.txt README.md + +%files help -f .mfiles-javadoc + +%changelog +* Tue Apr 13 2021 wutao - 1.2.1-1 +- package init diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..23ee6da --- /dev/null +++ b/settings.xml @@ -0,0 +1,13 @@ + + + + aliyun-central + * + aliyun central + https://maven.aliyun.com/repository/central + + + diff --git a/v-1.2.1.tar.gz b/v-1.2.1.tar.gz new file mode 100644 index 0000000..1c8ac7a Binary files /dev/null and b/v-1.2.1.tar.gz differ