Blob Blame History Raw
%global srcname esip


Name: erlang-%{srcname}
Version: 1.0.10
Release: 2%{?dist}

License: ASL 2.0
Summary: ProcessOne SIP server component in Erlang
URL: https://github.com/processone/esip/
Source0: https://github.com/processone/%{srcname}/archive/%{version}.tar.gz
# Patch an 'include' statement to search the system libraries rather than
# its deps directory.
Patch0: include_lib.patch

Provides:  erlang-p1_sip = %{version}-%{release}
Obsoletes: erlang-p1_sip < 1.0.2

BuildRequires: gcc
BuildRequires: erlang-fast_tls >= 1.0.9
BuildRequires: erlang-p1_utils >= 1.0.6
BuildRequires: erlang-rebar
BuildRequires: erlang-stun >= 1.0.9

%{?__erlang_nif_version:Requires: %{__erlang_nif_version}}


%description
ProcessOne SIP server component in Erlang.


%prep
%setup -n %{srcname}-%{version} -q
%patch0 -p0
rm -rf ebin


%build
%{rebar_compile}


%install
%{erlang_install}

install -d $RPM_BUILD_ROOT%{_erllibdir}/esip-%{version}/include
install -d $RPM_BUILD_ROOT%{_erllibdir}/esip-%{version}/priv/lib

install -pm644 include/* $RPM_BUILD_ROOT%{_erllibdir}/esip-%{version}/include/
install -pm755 priv/lib/*.so $RPM_BUILD_ROOT%{_erllibdir}/esip-%{version}/priv/lib/


%check
%{rebar_eunit}


%files
%license LICENSE.txt
%doc CHANGELOG.md README.md
%{erlang_appdir}


%changelog
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Dec 31 2016 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.10-1
- Update to 1.0.10 (#1398607).

* Fri Sep 16 2016 Randy Barlow <randy@electronsweatshop.com> - 1.0.8-1
- Update to 1.0.8 (#1365077).

* Sat Jul 30 2016 Randy Barlow <randy@electronsweatshop.com> - 1.0.7-1
- Update to 1.0.7 (#1354089).

* Fri Jul 01 2016 Jeremy Cline <jeremy@jcline.org> - 1.0.6-1
- Update to 1.0.6 (#1349871).
- Update build requirement version.

* Tue May 03 2016 Randy Barlow <rbarlow@redhat.com> - 1.0.4-1
- Update to 1.0.4 (#1330990).
- Add versions to the BuildRequires.

* Thu Apr 21 2016 Randy Barlow <rbarlow@redhat.com> - 1.0.2-1
- Initial release.