%global srcname oauth2 # Erlang packages do not provide debug subpackages. %global debug_package %{nil} Name: erlang-%{srcname} Version: 0.6.1 Release: %mkrel 5 Group: Development/Erlang License: MIT Summary: An Oauth2 implementation for Erlang URL: https://github.com/kivra/%{srcname} Source0: https://github.com/kivra/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz Patch1: erlang-oauth2-0001-Implicit-Grant-doesn-t-need-client-secret.patch Patch2: erlang-oauth2-0002-Add-refresh_token-to-access_token-context.patch Patch3: erlang-oauth2-0003-Don-t-use-deprecated-funs-in-Erlang-18.patch BuildRequires: erlang-meck BuildRequires: erlang-proper BuildRequires: erlang-rebar %description This library is designed to simplify the implementation of the server side of OAuth2. %prep %autosetup -n %{srcname}-%{version} -p 1 %build %{erlang_compile} %install %{erlang_install} %check %{erlang_test} %files %license LICENSE %doc README.md %{erlang_appdir}/ %changelog * Wed Feb 12 2020 umeabot <umeabot> 0.6.1-5.mga8 + Revision: 1511355 - Mageia 8 Mass Rebuild * Sat Sep 22 2018 wally <wally> 0.6.1-4.mga7 + Revision: 1296381 - sync patches with Fedora * Sat May 07 2016 neoclust <neoclust> 0.6.1-3.mga6 + Revision: 1010415 - Rebuild as it as been rejected - imported package erlang-oauth2