- Ship license file - Update to version 0.9.2+git20211002.cc47aab: * Fix typos * Fix calling mocked modules from expectation fun. * Point to correct Erlang version list * Update build badge * Bump least compatible Erlang/OTP version to 22 * Update workflow to use setup-beam * Increase meck_proc stop timeout to infinity * Leave module loaded state as it was * Add sponsorship link, remove build tool badge * Remove deprecated app file field * Version 0.9.2 * Add a further caveat to using `meck` with `ct` * Add OTP 24 to build matrix * Fix a dialyzer-issued warning * Version 0.9.1 * Remove unused chandler tool from cut script check * Add to changelog * Rename module name in type specs * Use Unite for EUnit tests * Clarify and fix example of passthrough/1 * Correct type spec for do_delete_expect/6 * Aim for repeatability * Imagine this is a possible solution to a past requirement * Broaden our check/test scope * Improve repeatability * Fix static analysis (dialyzer) -identified issue * Be stricter in our static analysis OBS-URL: https://build.opensuse.org/request/show/999201 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-meck?expand=0&rev=8
57 lines
1.7 KiB
RPMSpec
57 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package erlang-meck
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
|
Name: erlang-meck
|
|
Version: 0.9.2+git20211002.cc47aab
|
|
Release: 0
|
|
Summary: A mocking library for Erlang
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Other
|
|
URL: https://github.com/eproxus/meck/
|
|
Source: meck-%{version}.tar.bz2
|
|
BuildRequires: erlang-rebar
|
|
Requires: erlang
|
|
|
|
%description
|
|
A mocking Library for Erlang.
|
|
With meck you can easily mock modules in Erlang. You can also perform some
|
|
basic validations on the mocked modules, such as making sure no unexpected
|
|
exceptions occurred or looking at the call history.
|
|
|
|
%prep
|
|
%setup -q -n meck-%{version}
|
|
|
|
%build
|
|
%rebar compile
|
|
%rebar doc
|
|
|
|
%install
|
|
for dir in ebin ; do
|
|
install -d %{buildroot}%{erlang_libdir}/meck-%{mod_ver}/${dir}
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/meck-%{mod_ver}/${dir}/
|
|
done
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc doc README.md CHANGELOG.md
|
|
%dir %{erlang_libdir}/meck-%{mod_ver}
|
|
%{erlang_libdir}/meck-%{mod_ver}/ebin
|
|
|
|
%changelog
|