Signed-off-by: liubo <liubo1@xfusion.com> (cherry picked from commit 87d54708731a4a9a63c72b8ea383a1afe4198509)
46 lines
1.1 KiB
RPMSpec
46 lines
1.1 KiB
RPMSpec
%global realname meck
|
|
%global upstream eproxus
|
|
Name: erlang-meck
|
|
Version: 0.9.2
|
|
Release: 2
|
|
BuildArch: noarch
|
|
Summary: A mocking library for Erlang
|
|
License: ASL 2.0
|
|
URL: https://github.com/eproxus/meck
|
|
Source0: https://github.com/eproxus/meck/archive/%{version}/meck-%{version}.tar.gz
|
|
Patch1: erlang-meck-0001-Workaround-for-Rebar-2.x.patch
|
|
Patch2: 0001-Leave-module-loaded-state-as-it-was.patch
|
|
BuildRequires: erlang-hamcrest
|
|
BuildRequires: erlang-rebar
|
|
%description
|
|
With meck you can easily mock modules in Erlang. Since meck is intended to be
|
|
used in testing, you can also perform some basic validations on the mocked
|
|
modules, such as making sure no function is called in a way it should not.
|
|
|
|
%prep
|
|
%autosetup -p1 -n meck-%{version}
|
|
|
|
%build
|
|
%{erlang_compile}
|
|
|
|
%install
|
|
%{erlang_install}
|
|
|
|
%check
|
|
%{erlang_test -C test.config}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md NOTICE
|
|
%{erlang_appdir}/
|
|
|
|
%changelog
|
|
* Tue Oct 24 2023 liubo <liubo1@xfusion.com> - 0.9.2-2
|
|
- Leave module loaded state as it was
|
|
|
|
* Sat Jan 22 2022 Ge Wang <wangge20@huawei.com> - 0.9.2-1
|
|
- update to version 0.9.2
|
|
|
|
* Sat Aug 29 2020 yaokai <yaokai13@huawei.com> - 0.8.13-1
|
|
- package init
|