%global srcname oauth2
# Erlang packages do not provide debug subpackages.
%global debug_package %{nil}
Name: erlang-%{srcname}
Version: 0.6.1
Release: 1%{?dist}
Summary: An Oauth2 implementation for Erlang
License: MIT
URL: https://github.com/kivra/%{srcname}
Source0: https://github.com/kivra/%{srcname}/archive/%{version}.tar.gz
BuildRequires: erlang-eunit
BuildRequires: erlang-meck
BuildRequires: erlang-proper
BuildRequires: erlang-rebar
BuildRequires: erlang-rpm-macros
Requires: erlang-erts
%description
This library is designed to simplify the implementation of the server side of
OAuth2.
%prep
%autosetup -n %{srcname}-%{version}
%build
%rebar_compile
%check
%__rebar eunit
%install
install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin
install -pm644 ebin/* $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin
%files
%license LICENSE
%doc README.md
%{_erllibdir}/%{srcname}-%{version}
%changelog
* Tue Feb 16 2016 Randy Barlow <rbarlow@redhat.com> - 0.6.1-1
- Update to 0.6.1.
- Re-enable tests on i686.
- Remove patch for Erlang 18 since it is fixed in this version.
* Sun Feb 07 2016 Randy Barlow <rbarlow@redhat.com> - 0.6.0-4
- Added a patch from upstream commit f1e0cb05 to fix support for Erlang 18.
* Sat Jan 09 2016 Randy Barlow <rbarlow@redhat.com> - 0.6.0-3
- Do not run the tests on i686.
- Use the Erlang macros more effectively.
* Tue Jan 05 2016 Randy Barlow <rbarlow@redhat.com> - 0.6.0-2
- Remove the noarch target, as it causes the package to install outside the erts path.
- Add a Requires on erlang-erts.
* Sun Dec 27 2015 Randy Barlow <rbarlow@redhat.com> - 0.6.0-1
- Initial release.