%global realname stdlib2 %global upstream kivra # # This package contains only arch-independent data but install it into # arch-dependent directory thus making this package arch-dependent. In order to # suppress empty *-debuginfo generation we have to explicitly order # debuginfo-generator to skip trying to build *-debuiginfo for that package. # %global debug_package %{nil} %global git_tag 5ccd9b2985552d41d8469440759d9dd59757f733 %global short_tag %(c=%{git_tag}; echo ${c:0:7}) Name: erlang-%{realname} Version: 0 Release: 0.1.20170810git%{short_tag}%{?dist} Summary: Erlang stdlib extensions Group: Development/Languages License: BSD URL: https://github.com/%{upstream}/%{realname} %if 0%{?el7}%{?fedora} VCS: scm:git:https://github.com/%{upstream}/%{realname}.git %endif #Source0: https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz Source0: https://github.com/%{upstream}/%{realname}/archive/%{git_tag}/%{realname}-%{version}.tar.gz Patch1: erlang-stdlib2-0001-Add-missing-f2l-and-l2f-macros.patch Patch2: erlang-stdlib2-0002-Ensure-timestamps-are-monotonically-increasing.patch BuildRequires: erlang-folsom BuildRequires: erlang-rebar %description Erlang stdlib extensions. %prep %autosetup -p1 -n %{realname}-%{git_tag} %build %{erlang_compile} %install %{erlang_install} %check %{erlang_test} %files %doc README.md %{erlang_appdir}/ %changelog * Tue Aug 22 2017 Peter Lemenkov - 0-0.1.20170810git5ccd9b2 - Initial build