代码拉取完成,页面将自动刷新
%global debug_package %{nil}
Summary: This is the swagger codegen project
Name: swagger-codegen
Version: 2.2.2
Release: 1
License: Apache License v2.0
URL: https://swagger.io/tools/swagger-codegen/
Source0: https://github.com/polycube-network/swagger-codegen/archive/v%{version}.tar.gz
Patch0: 0001-add-polycube-codegen-tools.patch
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: maven
Requires: java-1.8.0-openjdk
Requires: pyang-swagger
ExclusiveArch: x86_64 aarch64
%description
This is the swagger codegen project, which allows generation of API client libraries (SDK generation),
server stubs and documentation automatically given an OpenAPI Spec.
%prep
%autosetup -n %{name}-%{version} -p1
%build
mvn clean package
%install
mkdir -p %{buildroot}/%{_bindir}/%{name}/
cp -rf %{_builddir}/%{name}-%{version}/modules/* %{buildroot}/%{_bindir}/%{name}/
cp -rf %{_builddir}/%{name}-%{version}/tools %{buildroot}/%{_bindir}/%{name}/
%files
%defattr(-,root,root)
%{_bindir}/%{name}/*
%changelog
* Thu Nov 19 2020 peanut_huang<huangliming5@huawei.com> - 2.2.2-1
- add polycube-codegen.sh
* Mon Oct 19 2020 peanut_huang<huangliming5@huawei.com> - 2.2.2-0
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。