c93009
%global realname riak_sysmon
c93009
%global upstream basho
c93009
%global debug_package %{nil}
7d5bbb
%global git_tag abe744c
c93009
%global patchnumber 0
c93009
c93009
c93009
Name:		erlang-%{realname}
7d5bbb
Version:	1.1.3
d640dd
Release:	7%{?dist}
c93009
Summary:	Rate-limiting system_monitor event handler for Riak
c93009
Group:		Development/Languages
c93009
License:	ASL 2.0
c93009
URL:		https://github.com/basho/riak_sysmon
7d5bbb
# wget --content-disposition https://github.com/basho/riak_sysmon/tarball/1.1.3
c93009
Source0:	%{upstream}-%{realname}-%{version}-%{patchnumber}-g%{git_tag}.tar.gz
2a7b03
# Fedora/EPEL-specific
2a7b03
Patch1:		erlang-riak_sysmon-0001-Proper-file-layout.patch
c93009
BuildRequires:	erlang-rebar
7d5bbb
Requires:	erlang-erts%{?_isa}
7d5bbb
Requires:	erlang-kernel%{?_isa}
7d5bbb
Requires:	erlang-stdlib%{?_isa}
c93009
c93009
c93009
%description
c93009
Simple OTP app for managing Erlang VM system_monitor event messages.
c93009
c93009
c93009
%prep
7d5bbb
%setup -q -n %{upstream}-%{realname}-a8837a7
2a7b03
%patch1 -p1 -b .layout
c93009
c93009
c93009
%build
c93009
rebar compile -v
c93009
c93009
c93009
%install
c93009
install -p -m 0644 -D ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
c93009
install -p -m 0644 ebin/%{realname}_app.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
c93009
install -p -m 0644 ebin/%{realname}_filter.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
c93009
install -p -m 0644 ebin/%{realname}_sup.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
c93009
c93009
c93009
%check
c93009
epmd -daemon
7d5bbb
rebar eunit skip_deps=true -v
c93009
epmd -kill
c93009
c93009
c93009
%files
c93009
%doc LICENSE README.md
c93009
%dir %{_libdir}/erlang/lib/%{realname}-%{version}
c93009
%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
c93009
%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
c93009
%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}_*.beam
c93009
c93009
c93009
%changelog
d640dd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-7
d640dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d640dd
0e4dd2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
0e4dd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e4dd2
fa6aee
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
fa6aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fa6aee
196011
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
196011
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
196011
a10b76
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
a10b76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a10b76
2a7b03
* Mon Mar 11 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.1.3-2
2a7b03
- Fix file layout
2a7b03
7d5bbb
* Mon Mar 11 2013 Peter Lemenkov <lemenkov@gmail.com> - 1.1.3-1
7d5bbb
- Ver. 1.1.3
7d5bbb
a9295b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-5
a9295b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a9295b
d5a522
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-4
d5a522
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d5a522
c93009
* Thu Jun 07 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.1.2-3
c93009
- Stop epmd gracefully after running tests
c93009
c93009
* Tue May 22 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.1.2-2
c93009
- Fixed tests
c93009
c93009
* Tue May 15 2012 Peter Lemenkov <lemenkov@gmail.com> - 1.1.2-1
c93009
- Ver. 1.1.2
c93009
c93009
* Fri Sep 16 2011 Peter Lemenkov <lemenkov@gmail.com> - 1.0.0-1
c93009
- Ver. 1.0.0