diff --git a/erlang-hamcrest.spec b/erlang-hamcrest.spec new file mode 100644 index 0000000..13682be --- /dev/null +++ b/erlang-hamcrest.spec @@ -0,0 +1,39 @@ +%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 - 0.1.0-1 +- package init diff --git a/erlang-hamcrest.yaml b/erlang-hamcrest.yaml new file mode 100644 index 0000000..ecc411f --- /dev/null +++ b/erlang-hamcrest.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/hyperthunk/hamcrest-erlang +version_control: github +src_repo: hyperthunk/hamcrest-erlang +tag_prefix: "^" +seperator: "." diff --git a/hamcrest-0.1.0.tar.gz b/hamcrest-0.1.0.tar.gz new file mode 100644 index 0000000..dc136ca Binary files /dev/null and b/hamcrest-0.1.0.tar.gz differ