%global srcname p1_oauth2
# Erlang packages do not provide debug subpackages.
%global debug_package %{nil}
Name: erlang-%{srcname}
Version: 0.6.1
Release: 2%{?dist}
License: MIT
Summary: An Oauth2 implementation for Erlang
URL: https://github.com/processone/%{srcname}
Source0: https://github.com/processone/%{srcname}/archive/%{version}.tar.gz
BuildRequires: erlang-meck
BuildRequires: erlang-proper
BuildRequires: erlang-rebar
%description
This library is designed to simplify the implementation of the server side of
OAuth2. It is a fork of erlang-oauth2 by processone, and is needed by ejabberd.
%prep
%autosetup -n %{srcname}-%{version}
%build
%{rebar_compile}
%check
%{rebar_eunit}
%install
%{erlang_install}
%files
%license LICENSE
%doc README.md
%{erlang_appdir}
%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sun Mar 13 2016 Randy Barlow <rbarlow@redhat.com> - 0.6.1-1
- Initial release.