2013-04-30 09:20:20 +00:00
|
|
|
#
|
2023-09-19 11:06:20 +00:00
|
|
|
# spec file
|
2013-04-30 09:20:20 +00:00
|
|
|
#
|
2023-02-27 12:47:02 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2013-04-30 09:20:20 +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.
|
|
|
|
|
2021-01-16 06:32:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-30 09:20:20 +00:00
|
|
|
#
|
|
|
|
|
2014-06-17 09:11:57 +00:00
|
|
|
|
|
|
|
%define app_name erlware_commons
|
2023-02-27 12:47:02 +00:00
|
|
|
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
|
2014-06-17 09:11:57 +00:00
|
|
|
Name: erlang-%{app_name}
|
2023-02-27 12:47:02 +00:00
|
|
|
Version: 1.6.0
|
2013-04-30 09:20:20 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A project focused on all aspects of reusable Erlang components
|
2023-09-19 11:06:20 +00:00
|
|
|
License: Apache-2.0 AND MIT
|
2013-04-30 09:20:20 +00:00
|
|
|
Group: Development/Libraries/Other
|
2021-01-16 06:32:47 +00:00
|
|
|
URL: https://github.com/erlware/erlware_commons
|
|
|
|
Source: %{app_name}-%{version}.tar.xz
|
2014-06-17 09:11:57 +00:00
|
|
|
BuildRequires: erlang
|
2021-01-16 06:32:47 +00:00
|
|
|
BuildRequires: erlang-cf
|
2014-06-17 09:11:57 +00:00
|
|
|
BuildRequires: erlang-rebar
|
2022-04-04 20:00:19 +00:00
|
|
|
# make the tests happy
|
|
|
|
BuildRequires: git
|
2023-02-27 12:47:02 +00:00
|
|
|
Requires: erlang
|
2021-01-16 06:32:47 +00:00
|
|
|
Requires: erlang-cf
|
2013-04-30 09:20:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Erlware Commons is an Erlware project focused on all aspects of reusable Erlang components.
|
|
|
|
|
|
|
|
%prep
|
2014-06-17 09:11:57 +00:00
|
|
|
%setup -q -n %{app_name}-%{version}
|
2013-04-30 09:20:20 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-16 06:32:47 +00:00
|
|
|
%rebar compile
|
2013-04-30 09:20:20 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-17 09:11:57 +00:00
|
|
|
for dir in ebin include priv ; do
|
|
|
|
mkdir -p %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}
|
|
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}/
|
2013-04-30 09:20:20 +00:00
|
|
|
done
|
|
|
|
|
2014-06-17 09:11:57 +00:00
|
|
|
%check
|
2021-01-25 12:31:20 +00:00
|
|
|
# ec_cmd_log:color_test is expecting that erlang-cf package considers the TERMinal
|
|
|
|
# as color-capable one.
|
|
|
|
export TERM=ansi
|
2021-01-16 06:32:47 +00:00
|
|
|
%rebar eunit
|
2014-06-17 09:11:57 +00:00
|
|
|
|
2013-04-30 09:20:20 +00:00
|
|
|
%files
|
2021-01-16 06:32:47 +00:00
|
|
|
%license COPYING
|
2014-06-17 09:11:57 +00:00
|
|
|
%doc doc
|
|
|
|
%dir %{erlang_libdir}/%{app_name}-%{app_ver}
|
|
|
|
%dir %{erlang_libdir}/%{app_name}-%{app_ver}/ebin
|
|
|
|
%{erlang_libdir}/%{app_name}-%{app_ver}/ebin/%{app_name}.app
|
|
|
|
%{erlang_libdir}/%{app_name}-%{app_ver}/ebin/*.beam
|
|
|
|
%dir %{erlang_libdir}/%{app_name}-%{app_ver}/include
|
|
|
|
%{erlang_libdir}/%{app_name}-%{app_ver}/include/*.hrl
|
|
|
|
%{erlang_libdir}/%{app_name}-%{app_ver}/priv
|
2013-04-30 09:20:20 +00:00
|
|
|
|
2014-06-17 09:11:57 +00:00
|
|
|
%changelog
|