diff --git a/0001-Allow-ignoring-missing-deps.patch b/0001-Allow-ignoring-missing-deps.patch new file mode 100644 index 0000000..2463ecb --- /dev/null +++ b/0001-Allow-ignoring-missing-deps.patch @@ -0,0 +1,23 @@ +From: Peter Lemenkov +Date: Mon, 7 Mar 2016 16:51:03 +0300 +Subject: [PATCH] Allow ignoring missing deps + +Some deps cannot be satisfied (upstream requires %appname%-1.8.2 while we +provide %appname%-1.8.3). So let's allow ignoring this. + +Signed-off-by: Peter Lemenkov + +diff --git a/macros.erlang b/macros.erlang +index b956ced..778ff92 100644 +--- a/macros.erlang ++++ b/macros.erlang +@@ -12,7 +12,8 @@ + FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \ + %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \ + VSN="%{version}" ; export VSN ; \ +- %__rebar compile -vv ++ IGNORE_MISSING_DEPS="TRUE" ; export IGNORE_MISSING_DEPS ; \ ++ %__rebar compile skip_deps=true -vv + # deprecated backwards compatibility + %__rebar_compile %rebar_compile + diff --git a/erlang-rpm-macros.spec b/erlang-rpm-macros.spec index 300c0dd..126bcdd 100644 --- a/erlang-rpm-macros.spec +++ b/erlang-rpm-macros.spec @@ -1,12 +1,13 @@ Name: erlang-rpm-macros Version: 0.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Macros for simplifying building of Erlang packages Group: Development/Libraries License: MIT URL: https://github.com/lemenkov/erlang-rpm-macros VCS: scm:git:https://github.com/lemenkov/erlang-rpm-macros.git Source0: https://github.com/lemenkov/erlang-rpm-macros/archive/%{version}/%{name}-%{version}.tar.gz +Patch1: 0001-Allow-ignoring-missing-deps.patch BuildArch: noarch Requires: rpm-build >= 4.11 # Requires for BEAM parsing @@ -20,6 +21,7 @@ Macros for simplifying building of Erlang packages. %prep %setup -q +%patch1 -p1 %build @@ -52,6 +54,9 @@ install -p -m 0644 erlang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/ %changelog +* Mon Mar 7 2016 Peter Lemenkov - 0.2.1-2 +- Allow skippind dependency checking in rebar + * Sun Mar 6 2016 Peter Lemenkov - 0.2.1-1 - Ver. 0.2.1