ba6219d
%global srcname epam
ba6219d
# The Fedora Erlang convention is to avoid separating the debug symbols:
ba6219d
# https://fedoraproject.org/wiki/User:Peter/Erlang_Packaging_Guidelines
ba6219d
%global debug_package %{nil}
ba6219d
ba6219d
ba6219d
Name:       erlang-%{srcname}
c73c8ca
Version:    1.0.4
c73c8ca
Release:    1%{?dist}
ba6219d
ba6219d
Summary:    Library for ejabberd for PAM authentication support
ba6219d
License:    ASL 2.0
ba6219d
URL:        https://github.com/processone/%{srcname}/
ba6219d
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
ba6219d
# Load epam from this package rather than from ejabberd.
ba6219d
# See https://bugzilla.redhat.com/show_bug.cgi?id=1337216 and
ba6219d
# https://github.com/processone/epam/issues/4
ba6219d
Patch0:     0001-Load-epam-from-the-package-s-own-path-rather-than-ej.patch
ba6219d
ba6219d
BuildRequires: autoconf
ba6219d
BuildRequires: automake
1717e21
BuildRequires: gcc
ba6219d
BuildRequires: erlang-rebar
ba6219d
BuildRequires: pam-devel
ba6219d
ba6219d
Provides: erlang-p1_pam = %{version}-%{release}
4752c1b
Obsoletes: erlang-p1_pam < 1.0.3-4%{?dist}
ba6219d
ba6219d
ba6219d
%description
ba6219d
An Erlang library for ejabberd that helps with PAM authentication.
ba6219d
ba6219d
ba6219d
%prep
ba6219d
%setup -q -n %{srcname}-%{version}
ba6219d
ba6219d
%patch0 -p1
ba6219d
ba6219d
ba6219d
%build
ba6219d
autoreconf -ivf
ba6219d
ba6219d
%configure
ba6219d
ba6219d
%{erlang_compile}
ba6219d
ba6219d
ba6219d
%install
ba6219d
%{erlang_install}
ba6219d
ba6219d
install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/bin
ba6219d
install -pm755 priv/bin/%{srcname} $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/bin/
ba6219d
ba6219d
ba6219d
%files
ba6219d
%license LICENSE.txt
ba6219d
%doc CHANGELOG.md
ba6219d
%doc README.md
ba6219d
%{erlang_appdir}/
ba6219d
ba6219d
ba6219d
%changelog
c73c8ca
* Thu Mar 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.4-1
c73c8ca
- Update to 1.0.4 (#1560804).
c73c8ca
- https://github.com/processone/epam/blob/1.0.4/CHANGELOG.md
c73c8ca
f451388
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
f451388
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f451388
4752c1b
* Sat Oct 28 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.3-4
4752c1b
- Bump the obsoletes statement on p1_pam to -4 to account for two mass rebuilds in that package
4752c1b
  (#1506440).
4752c1b
ba6219d
* Sun Sep 24 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.3-2
ba6219d
- Initial release.