Blob Blame History Raw
%global srcname unicode_util_compat

Name:       erlang-%{srcname}
Version:    0.7.0
Release:    %autorelease
BuildArch:  noarch
License:    Apache-2.0
Summary:    A unicode_util compatibility library for Erlang < 20
URL:        https://github.com/benoitc/%{srcname}
VCS:        scm:git:%{url}.git
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Patch1:     erlang-unicode_util_compat-0001-Fix-syntax-for-inlining-a-function.patch
Patch2:     erlang-unicode_util_compat-0002-Fix-typos.patch
BuildRequires: erlang-rebar3


%description
This allows the usage of unicode_util and string from Erlang R21 in
older erlang >= R18.


%prep
%autosetup -p1 -n %{srcname}-%{version}


%build
%{erlang3_compile}


%install
%{erlang3_install}


%check
%{erlang3_test}


%files
%license LICENSE
%doc README.md
%{erlang_appdir}


%changelog
%autochangelog