!1 package init

From: @wang_yue111
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2020-09-18 18:34:18 +08:00 committed by Gitee
commit d2217f04d1
3 changed files with 41 additions and 0 deletions

36
erlang-getopt.spec Normal file
View File

@ -0,0 +1,36 @@
%global realname getopt
%global upstream jcomellas
%global debug_package %{nil}
Name: erlang-%{realname}
Version: 1.0.1
Release: 1
Summary: Erlang module to parse command line arguments using the GNU getopt syntax
License: BSD
URL: https://github.com/%{upstream}/%{realname}
VCS: scm:git:https://github.com/%{upstream}/%{realname}.git
Source0: https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz
BuildRequires: erlang-rebar
%description
Command-line parsing module that uses a syntax similar to that of GNU getopt.
%prep
%autosetup -p 1 -n %{realname}-%{version}
chmod 0644 examples/*.escript
%build
%{erlang_compile}
%install
%{erlang_install}
%check
%{erlang_test}
%files
%license LICENSE.txt
%doc README.md examples/
%{erlang_appdir}/
%changelog
* Mon Aug 31 2020 wangyue <wangyue92@huawei.com> - 1.0.1-1
- package init

5
erlang-getopt.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/jcomellas/getopt
version_control: github
src_repo: jcomellas/getopt
tag_prefix: "^v"
seperator: "."

BIN
getopt-1.0.1.tar.gz Normal file

Binary file not shown.