2013-04-24 18:53:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package erlang-meck
|
|
|
|
#
|
2022-09-10 07:53:55 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-04-24 18:53:32 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-09-10 07:53:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-24 18:53:32 +00:00
|
|
|
#
|
|
|
|
|
2014-05-12 16:39:06 +00:00
|
|
|
|
2022-09-10 07:53:55 +00:00
|
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
2013-04-24 18:53:32 +00:00
|
|
|
Name: erlang-meck
|
2022-09-10 07:53:55 +00:00
|
|
|
Version: 0.9.2+git20211002.cc47aab
|
2013-04-24 18:53:32 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A mocking library for Erlang
|
2014-05-12 16:39:06 +00:00
|
|
|
License: Apache-2.0
|
2013-04-24 18:53:32 +00:00
|
|
|
Group: Development/Libraries/Other
|
2022-09-10 07:53:55 +00:00
|
|
|
URL: https://github.com/eproxus/meck/
|
2013-06-11 14:57:55 +00:00
|
|
|
Source: meck-%{version}.tar.bz2
|
2013-04-24 18:53:32 +00:00
|
|
|
BuildRequires: erlang-rebar
|
|
|
|
Requires: erlang
|
|
|
|
|
|
|
|
%description
|
|
|
|
A mocking Library for Erlang.
|
2022-09-10 07:53:55 +00:00
|
|
|
With meck you can easily mock modules in Erlang. You can also perform some
|
2013-04-24 18:53:32 +00:00
|
|
|
basic validations on the mocked modules, such as making sure no unexpected
|
|
|
|
exceptions occurred or looking at the call history.
|
|
|
|
|
|
|
|
%prep
|
2022-09-10 07:53:55 +00:00
|
|
|
%setup -q -n meck-%{version}
|
2013-04-24 18:53:32 +00:00
|
|
|
|
|
|
|
%build
|
2014-02-23 09:31:56 +00:00
|
|
|
%rebar compile
|
|
|
|
%rebar doc
|
2013-04-24 18:53:32 +00:00
|
|
|
|
|
|
|
%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
|
2022-09-10 07:53:55 +00:00
|
|
|
%license LICENSE
|
2019-11-12 16:07:26 +00:00
|
|
|
%doc doc README.md CHANGELOG.md
|
2013-04-24 18:53:32 +00:00
|
|
|
%dir %{erlang_libdir}/meck-%{mod_ver}
|
|
|
|
%{erlang_libdir}/meck-%{mod_ver}/ebin
|
|
|
|
|
2014-05-12 16:39:06 +00:00
|
|
|
%changelog
|