40 lines
1.2 KiB
RPMSpec
40 lines
1.2 KiB
RPMSpec
%global realname hamcrest
|
|
%global upstream hyperthunk
|
|
%global git_tag 0766ea004f7dd900c36b06aff14dbbac1d03b425
|
|
Name: erlang-%{realname}
|
|
Version: 0.1.0
|
|
Release: 1
|
|
BuildArch: noarch
|
|
Summary: A framework for writing matcher objects using declarative rules
|
|
License: MIT and BSD
|
|
URL: https://github.com/%{upstream}/%{realname}-erlang
|
|
VCS: scm:git:https://github.com/%{upstream}/%{realname}-erlang.git
|
|
Source0: https://github.com/%{upstream}/%{realname}-erlang/archive/%{git_tag}/%{realname}-%{version}.tar.gz
|
|
BuildRequires: erlang-proper erlang-rebar
|
|
%description
|
|
Hamcrest is a framework for writing matcher objects allowing 'match' rules to
|
|
be defined declaratively. There are a number of situations where matchers are
|
|
invaluable, such as UI validation, or data filtering, but it is in the area of
|
|
writing flexible tests that matchers are most commonly used.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{realname}-erlang-%{git_tag}
|
|
|
|
%build
|
|
%{erlang_compile}
|
|
|
|
%install
|
|
%{erlang_install}
|
|
|
|
%check
|
|
%{rebar_ct -C test.config}
|
|
|
|
%files
|
|
%license LICENCE
|
|
%doc NOTES README.markdown
|
|
%{erlang_appdir}/
|
|
|
|
%changelog
|
|
* Sat Aug 29 2020 wangyue <wangyue92@huawei.com> - 0.1.0-1
|
|
- package init
|