File erlang-bear.spec of Package erlang-bear
#
# 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