commit dba83637dac4dcea5e27e584f14f16bc52318ef4 Author: Ville Skyttä ville.skytta@iki.fi Date: Sat Jul 12 15:29:57 2014 +0300
Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely
- Run unit tests during build
erlang-jiffy.spec | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) --- diff --git a/erlang-jiffy.spec b/erlang-jiffy.spec index a44bafc..49ecb61 100644 --- a/erlang-jiffy.spec +++ b/erlang-jiffy.spec @@ -2,7 +2,7 @@
Name: erlang-%{realname} Version: 0.8.5 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Erlang JSON parser Group: Development/Libraries License: MIT @@ -14,6 +14,7 @@ Patch2: jiffy-system-double-conversion.patch
BuildRequires: erlang >= R14B BuildRequires: erlang-rebar +BuildRequires: erlang-rpm-macros >= 0.1.4 BuildRequires: gcc-c++ BuildRequires: double-conversion-devel
@@ -35,7 +36,7 @@ rm -r c_src/double-conversion
%build -CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" rebar compile -vv +%rebar_compile
%install @@ -49,12 +50,20 @@ install -pm644 ebin/jiffy.app $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-% install -p priv/jiffy.so $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/priv
+%check +%__rebar eunit -v + + %files %{_libdir}/erlang/lib/%{realname}-%{version} %doc LICENSE README.md
%changelog +* Sat Jul 12 2014 Ville Skyttä ville.skytta@iki.fi - 0.8.5-6 +- Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely +- Run unit tests during build + * Sat Jun 07 2014 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.8.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
erlang@lists.fedoraproject.org