erlang-getopt/erlang-getopt.spec

40 lines
1.0 KiB
RPMSpec
Raw Normal View History

2020-08-29 18:09:51 +08:00
%global realname getopt
%global upstream jcomellas
%global debug_package %{nil}
Name: erlang-%{realname}
2023-06-20 19:40:32 +08:00
Version: 1.0.2
2020-08-29 18:09:51 +08:00
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
2023-06-20 19:40:32 +08:00
#%%{erlang_test}
2020-08-29 18:09:51 +08:00
%files
%license LICENSE.txt
%doc README.md examples/
%{erlang_appdir}/
2020-08-29 15:32:09 +08:00
%changelog
2023-06-20 19:40:32 +08:00
* Tue Jun 20 2023 wangkai <13474090681@163.com> - 1.0.2-1
- Update to 1.0.2
2020-08-31 11:01:19 +08:00
* Mon Aug 31 2020 wangyue <wangyue92@huawei.com> - 1.0.1-1
2020-08-29 15:32:09 +08:00
- package init