Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37770513
en ru br
ALT Linux repos
S:0.9.2-alt1

Group :: Development/Erlang
RPM: erlang-meck

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define realname meck

Name: erlang-%realname
Version: 0.9.2
Release: alt1
Summary: A mocking library for Erlang
Group: Development/Erlang
License: Apache-2.0
Url: https://github.com/eproxus/meck

BuildArch: noarch

# https://github.com/eproxus/meck.git

Source: %name-%version.tar

Patch1: erlang-meck-fedora-workaround-for-Rebar-2.x.patch

BuildRequires(pre): rpm-build-erlang
BuildRequires: erlang-otp-devel erlang-devel
BuildRequires: /usr/bin/rebar
BuildRequires: erlang-hamcrest

%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
%setup
%patch1 -p1

%build
%rebar_compile

%install
%rebar_install %realname

%check
%rebar_eunit -C rebar.test.config

%files
%doc LICENSE
%doc doc README.md
%_erllibdir/%realname-%version

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin