Files
erlang-bear/erlang-bear.spec
Matwey Kornilov 990092b457 Accepting request 999199 from home:jubalh:branches:devel:languages:erlang
- Set correct license

- Update to version 0.8.2+git.1418251227.0717c73:
  * Add {modules, []} to bear.app.src
  * Fix harmonic_mean behaviour when all values are 0 OR 0.0
  * Clean up whitespace
  * Remove un-necessary if statement
  * get_statistics_subset should return well-formatted null results
  * Add unit test on uncovered function, move test data from src/ to test/ Use new approx method for floating numbers
  * dont take the log of a negative number dummy
  * empty list case of get_statistics_subset
  * some formating
  * Added unit tests for stats_subset
- Update URL in service file
- Add changes generation to service file
- Update PATCH001-remove-git-dependency.patch

OBS-URL: https://build.opensuse.org/request/show/999199
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-bear?expand=0&rev=6
2022-09-10 07:55:29 +00:00

67 lines
1.9 KiB
RPMSpec

#
# spec file for package erlang-bear
#
# 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-bear
Version: 0.8.2+git.1418251227.0717c73
Release: 0
Summary: Statistics functions for erlang
License: Apache-2.0
Group: Development/Libraries/Other
URL: https://github.com/opscode/bear
Source: bear-%{version}.tar.gz
Patch01: PATCH001-remove-git-dependency.patch
BuildRequires: erlang-rebar
Requires: erlang
%description
A set of statistics functions for erlang.
%package devel
Summary: Statistics functions for erlang
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Provides: %{name}-src = %{version}
Obsoletes: %{name}-src < %{version}
%description devel
A set of statistics functions for erlang.
%prep
%setup -q -n bear-%{version}
%patch01
%build
%rebar compile escriptize
%install
for dir in ebin src ; do
install -d %{buildroot}%{erlang_libdir}/bear-%{mod_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/bear-%{mod_ver}/${dir}/
done
%files
%license LICENSE
%dir %{erlang_libdir}/bear-%{mod_ver}
%{erlang_libdir}/bear-%{mod_ver}/ebin
%files devel
%{erlang_libdir}/bear-%{mod_ver}/src
%changelog