mxparser package init

This commit is contained in:
jackie_wu 2021-04-27 09:24:26 +08:00
parent 700fb815ce
commit 828ec99adf
3 changed files with 54 additions and 0 deletions

41
mxparser.spec Normal file
View File

@ -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 <wutao61@huawei.com> - 1.2.1-1
- package init

13
settings.xml Normal file
View File

@ -0,0 +1,13 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>aliyun-central</id>
<mirrorOf>*</mirrorOf>
<name>aliyun central</name>
<url>https://maven.aliyun.com/repository/central</url>
</mirror>
</mirrors>
</settings>

BIN
v-1.2.1.tar.gz Normal file

Binary file not shown.