From f619167638b5f9c5a599032a74e8d107eb126d1d Mon Sep 17 00:00:00 2001 From: wang_yue111 <648774160@qq.com> Date: Sat, 29 Aug 2020 18:09:51 +0800 Subject: [PATCH] package init --- .erlang-getopt.yaml.swp | Bin 4096 -> 0 bytes erlang-getopt.spec | 34 +++++++++++++++++++++++++++++++++- erlang-getopt.yaml | 4 ++-- 3 files changed, 35 insertions(+), 3 deletions(-) delete mode 100644 .erlang-getopt.yaml.swp diff --git a/.erlang-getopt.yaml.swp b/.erlang-getopt.yaml.swp deleted file mode 100644 index c1289dbec4eb1be57ad3a0d3c4f4a6e2da040407..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmYc?2=nw+u+TGP00IF91`TGfcwY`V2F1&g3`P0*B_Lr!ASXXLF()IxxI_=kO3BYn z%*?~0sSaeIenv)#eri!pVqUs#dTL320UA%QGBGy?i{??G(GVC70SZHam%-S`&;VqJ svXY{Luuv$4=8b9}4S~@R7!85Z5Eu=C(GVC7fzc2c4S~@R7)l`k0JK#h5dZ)H diff --git a/erlang-getopt.spec b/erlang-getopt.spec index 9f2d1d9..1ce89ce 100644 --- a/erlang-getopt.spec +++ b/erlang-getopt.spec @@ -1,4 +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 -* Sat Aug 29 2020 wangyue - -1 +* Sat Aug 29 2020 wangyue - 1.0.1-1 - package init diff --git a/erlang-getopt.yaml b/erlang-getopt.yaml index 4b77b69..75466d2 100644 --- a/erlang-getopt.yaml +++ b/erlang-getopt.yaml @@ -1,5 +1,5 @@ -git_url: https://github.com/ +git_url: https://github.com/jcomellas/getopt version_control: github -src_repo: +src_repo: jcomellas/getopt tag_prefix: "^v" seperator: "."