Files
erlang-meck/erlang-meck.spec

57 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# 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/
Accepting request 178424 from home:matwey:branches:devel:languages:erlang - Update to the latest version. Add _service for disabled run. old: devel:languages:erlang/erlang-meck new: home:matwey:branches:devel:languages:erlang/erlang-meck rev None Index: erlang-meck.changes =================================================================== --- erlang-meck.changes (revision 1) +++ erlang-meck.changes (revision 3) @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Jun 10 10:26:59 UTC 2013 - matwey.kornilov@gmail.com + +- Update to the latest version. Add _service for disabled run. + +------------------------------------------------------------------- Wed Apr 24 15:27:17 UTC 2013 - nkrinner@suse.com - Drop -devel subpackage Index: erlang-meck.spec =================================================================== --- erlang-meck.spec (revision 1) +++ erlang-meck.spec (revision 3) @@ -16,14 +16,14 @@ # Name: erlang-meck -Version: 0.0.0+git.1365955918.161e240 +Version: 0.7.2+git.1365955918.161e240 %define mod_ver %(echo "%{version}" | cut -d "+" -f1) Release: 0 License: Apache-2.0 Summary: A mocking library for Erlang Url: http://github.com/eproxus/meck/ Group: Development/Libraries/Other -Source: meck-%{version}.tar.gz +Source: meck-%{version}.tar.bz2 BuildRequires: erlang-rebar Requires: erlang BuildRoot: %{_tmppath}/%{name}-%{version}-build Index: _service =================================================================== --- _service (added) +++ _service (revision 3) @@ -0,0 +1,11 @@ +<services> + <service name="tar_scm" mode="disabled"> + <param name="versionformat">0.7.2+git.%ct.%h</param> + <param name="url">https://github.com/eproxus/meck.git</param> + <param name="scm">git</param> + </service> + <service name="recompress" mode="disabled"> + <param name="compression">bz2</param> + <param name="file">*.tar</param> + </service> +</services> Index: meck-0.7.2+git.1365955918.161e240.tar.bz2 =================================================================== Binary files meck-0.7.2+git.1365955918.161e240.tar.bz2 (revision 3) added Index: meck-0.0.0+git.1365955918.161e240.tar.gz =================================================================== Binary files meck-0.0.0+git.1365955918.161e240.tar.gz (revision 1) deleted OBS-URL: https://build.opensuse.org/request/show/178424 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-meck?expand=0&rev=2
2013-06-11 14:57:55 +00:00
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