%global realname certifi %global upstream certifi %global upstream_reponame erlang-certifi # Technically we're noarch, but our install path is not. %global debug_package %{nil} Name: erlang-%{realname} Version: 2.3.1 Release: 1%{?dist} Summary: CA bundle adapted from Mozilla License: BSD URL: https://github.com/%{upstream}/%{upstream_reponame} Source0: https://github.com/%{upstream}/%{upstream_reponame}/archive/%{version}/%{upstream_reponame}-%{version}.tar.gz BuildRequires: erlang-rebar sed erlang-parse_trans Requires: erlang-rebar %description %{summary}. %prep %autosetup -n %{upstream_reponame}-%{version} # Fix dependency version issue sed -i 's/{parse_trans, "3.2.0"}/{parse_trans, "3.3.0"}/' rebar.config %build %{erlang_compile} %install %{erlang_install} cp -arv priv/ %{buildroot}%{erlang_appdir}/ %check %{erlang_test} %files %license LICENSE %doc README.md %{erlang_appdir}/ %changelog * Sun Jul 15 2018 Timothée Floure - 2.3.1-1 - Let there be package