!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2019-12-23 17:21:15 +08:00 committed by Gitee
commit f8f8a91152
2 changed files with 48 additions and 0 deletions

BIN
protoparser-3.1.5.tar.gz Normal file

Binary file not shown.

48
protoparser.spec Normal file
View File

@ -0,0 +1,48 @@
Name: protoparser
Version: 3.1.5
Release: 6
Summary: A parser for .proto schema declarations to java
License: ASL 2.0
URL: https://github.com/square/protoparser
Source0: https://github.com/square/protoparser/archive/%{name}-%{version}.tar.gz
BuildRequires: maven-local mvn(com.google.auto.value:auto-value) mvn(junit:junit)
BuildRequires: mvn(org.assertj:assertj-core) mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
ProtoParser will directly parse independent File or Schema data, then
returns the object representation as a ProtoFile instance.
%package help
Summary: Help documents for protoparser packages
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
Help documents for protoparser packages.
%prep
%autosetup -n %{name}-%{name}-%{version} -p1
%pom_remove_plugin :maven-checkstyle-plugin
%pom_change_dep org.easytesting:fest-assert-core org.assertj:assertj-core:2.0.0
find ./ -name "*.java" -exec sed -i "s/org.fest.assertions/org.assertj.core/g" {} +
%mvn_file : protoparser
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt
%files help -f .mfiles-javadoc
%doc CHANGELOG.md CONTRIBUTING.md README.md
%changelog
* Fri Dec 20 2019 wutao <wutao61@huawei.com> - 3.1.5-6
- Package init