File erlang-history.spec of Package erlang-history

%define bname history
Name: erlang-%bname
Version: 0.1.0
Release: 0.2
Summary: Support history in the Erlang shell
License: MIT
Group: Development/Tools/Other
URL: https://github.com/ferd/%name
Source: %name.tar.xz
Patch1: %name-path-unix.patch
BuildArch: noarch
Provides: erlang-group_history = %version-%release
Requires: erlang-otp-base >= 1:18
Conflicts: erlang-otp-base >= 1:20

BuildRequires: rpm-macros-erlang rpm-build-erlang
BuildRequires: erlang >= 1:18
BuildRequires: erlang-otp-base >= 1:18
BuildConflicts: erlang >= 1:20
BuildConflicts: erlang-otp-base >= 1:20

%define kver 5.2

%description
%summary.


%prep
%setup -q -n %name
%patch1 -p1


%build
%__erlc +inline +debug_info -o ./ebin/%kver src/%kver/group_history.erl


%install
install -d -m 0755 %buildroot%_otplibdir/%bname/ebin
install -p -m 0644 ebin/%kver/*.beam %buildroot%_otplibdir/%bname/ebin/


%files
%defattr(-,root,root)
%doc README*
%_otplibdir/*


%changelog
* Fri Dec 29 2017 Led <ledest@gmail.com> 0.1.0-0.2
- remove 'slim' option

* Thu Jun 01 2017 Led <ledest@gmail.com> 0.1.0-0.1
- update patches:
  + erlang-history-path-unix.patch

* Wed May 31 2017 Led <ledest@gmail.com> 0-0.1
- initial build