diff --git a/erlang-sext-0001-Adjust-version-in-.app-file.patch b/erlang-sext-0001-Adjust-version-in-.app-file.patch deleted file mode 100644 index 8e89836..0000000 --- a/erlang-sext-0001-Adjust-version-in-.app-file.patch +++ /dev/null @@ -1,22 +0,0 @@ -From: Peter Lemenkov -Date: Wed, 6 Mar 2013 13:11:22 +0400 -Subject: [PATCH] Adjust version in *.app file - -Signed-off-by: Peter Lemenkov - -diff --git a/src/sext.app.src b/src/sext.app.src -index 77d93b1..a58267e 100644 ---- a/src/sext.app.src -+++ b/src/sext.app.src -@@ -30,7 +30,7 @@ - %%% @end - {application, sext, - [{description, "Sortable serialization library"}, -- {vsn, git}, -+ {vsn, "1.3"}, - {modules, []}, - {registered, []}, - {applications, [kernel, stdlib]}, --- -1.8.1.4 - diff --git a/erlang-sext.spec b/erlang-sext.spec index 12dbe32..e873eba 100644 --- a/erlang-sext.spec +++ b/erlang-sext.spec @@ -1,11 +1,17 @@ %global realname sext %global upstream uwiger +# +# 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} Name: erlang-%{realname} Version: 1.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Sortable Erlang Term Serialization Group: Development/Languages License: ASL 2.0 @@ -14,8 +20,6 @@ URL: https://github.com/%{upstream}/%{realname} VCS: scm:git:https://github.com/%{upstream}/%{realname}.git %endif Source0: https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz -# Fedora/EPEL-specific -Patch1: erlang-sext-0001-Adjust-version-in-.app-file.patch BuildRequires: erlang-edown BuildRequires: erlang-rebar @@ -27,29 +31,30 @@ A sortable serialization library This library offers a serialization format %prep %setup -q -n %{realname}-%{version} -%patch1 -p1 -b .fix_ver %build -%{rebar_compile} +%{erlang_compile} %install -install -d %{buildroot}%{_erllibdir}/%{realname}-%{version}/ebin/ -install -p -m 0644 ebin/%{realname}.app ebin/%{realname}.beam %{buildroot}%{_erllibdir}/%{realname}-%{version}/ebin/ +%{erlang_install} %check -rebar eunit skip_deps=true -v +%{erlang_test} %files %license LICENSE %doc NOTICE README.md examples/ -%{_erllibdir}/%{realname}-%{version} +%{erlang_appdir}/ %changelog +* Thu Apr 7 2016 Peter Lemenkov - 1.3-2 +- Spec-file cleanups + * Wed Mar 2 2016 Peter Lemenkov - 1.3-1 - Ver. 1.3