3f15c9c
%global srcname xmpp
3f15c9c
c38badf
%global ezlib_ver 1.0.4
c38badf
%global fast_tls_ver 1.0.25
c38badf
%global fast_xml_ver 1.1.34
c38badf
%global p1_utils_ver 1.0.13
c38badf
%global stringprep_ver 1.0.14
3f15c9c
3f15c9c
Name:       erlang-%{srcname}
c38badf
Version:    1.2.5
c38badf
Release:    1%{?dist}
3f15c9c
Summary:    Erlang/Elixir XMPP parsing and serialization library
3f15c9c
3f15c9c
License:    ASL 2.0
3f15c9c
URL:        https://github.com/processone/xmpp/
c7fa56c
Source0:    https://github.com/processone/xmpp/archive/%{version}/xmpp-%{version}.tar.gz
3f15c9c
# https://github.com/processone/xmpp/pull/3
3f15c9c
Patch0:     0001-Allow-fxml.hrl-to-be-found-from-system-libs.patch
3f15c9c
ec46493
BuildRequires: gcc
c38badf
BuildRequires: erlang-ezlib >= %{ezlib_ver}
c38badf
BuildRequires: erlang-fast_tls >= %{fast_tls_ver}
0fe15e2
BuildRequires: erlang-fast_xml >= %{fast_xml_ver}
0fe15e2
BuildRequires: erlang-p1_utils >= %{p1_utils_ver}
3f15c9c
BuildRequires: erlang-rebar
0fe15e2
BuildRequires: erlang-stringprep >= %{stringprep_ver}
3f15c9c
c38badf
Requires: erlang-ezlib >= %{ezlib_ver}
c38badf
Requires: erlang-fast_tls >= %{fast_tls_ver}
0fe15e2
Requires: erlang-fast_xml >= %{fast_xml_ver}
0fe15e2
Requires: erlang-p1_utils >= %{p1_utils_ver}
0fe15e2
Requires: erlang-stringprep >= %{stringprep_ver}
514c5d9
3f15c9c
3f15c9c
%description
d29f749
XMPP is an Erlang XMPP parsing and serialization library, built on top of Fast
d29f749
XML.
3f15c9c
3f15c9c
3f15c9c
%prep
8416e14
%setup -q -n %{srcname}-%{version}
3f15c9c
3f15c9c
%patch0 -p0
3f15c9c
3f15c9c
3f15c9c
%build
3f15c9c
%{rebar_compile}
3f15c9c
3f15c9c
3f15c9c
%install
3f15c9c
%{erlang_install}
3f15c9c
514c5d9
install -p -D -m 755 priv/lib/* --target-directory=%{buildroot}%{erlang_appdir}/priv/lib/
514c5d9
3f15c9c
a8fd208
%check
a8fd208
%{rebar_eunit}
a8fd208
a8fd208
3f15c9c
%files
3f15c9c
%license LICENSE.txt
3f15c9c
%doc CHANGELOG.md
c7fa56c
%doc doc
3f15c9c
%doc README.md
3f15c9c
%{erlang_appdir}
3f15c9c
3f15c9c
3f15c9c
%changelog
c38badf
* Sun Oct 14 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.2.5-1
c38badf
- Update to 1.2.5.
c38badf
- https://github.com/processone/xmpp/blob/1.2.5/CHANGELOG.md
c38badf
644eda7
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.2.2-2
644eda7
- Rebuild with fixed binutils
644eda7
4f11386
* Sun Jul 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.2.2-1
4f11386
- Update to 1.2.2 (#1596226).
4f11386
- Note that 1.2.0 introduced API incompatibility.
4f11386
- https://github.com/processone/xmpp/blob/1.2.2/CHANGELOG.md
4f11386
48ae244
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.21-2
48ae244
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
48ae244
Jeremy Cline eb3ef94
* Sat Jun 09 2018 Jeremy Cline <jeremy@jcline.org> - 1.1.21-1
Jeremy Cline eb3ef94
- Update to 1.1.21 (#1571795).
Jeremy Cline eb3ef94
- https://github.com/processone/xmpp/blob/1.1.21/CHANGELOG.md
Jeremy Cline eb3ef94
0fe15e2
* Thu Mar 29 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.20-1
0fe15e2
- Update to 1.1.20 (#1559664).
0fe15e2
- https://github.com/processone/xmpp/blob/1.1.20/CHANGELOG.md
23711ec
- Provide a debug package.
0fe15e2
8f5822d
* Sun Mar 25 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.19-4
8f5822d
- Re-rebuild against Erlang 20, this time with feeling (and with working automated dependency
8f5822d
  detection.)
8f5822d
a061bb4
* Thu Feb 22 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.19-3
a061bb4
- Rebuild for Erlang 20.
a061bb4
71e00ff
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.19-2
71e00ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71e00ff
41df9de
* Sun Jan 14 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.19-1
41df9de
- Update to 1.1.19 (#1515243).
41df9de
- https://github.com/processone/xmpp/blob/1.1.19/CHANGELOG.md
41df9de
5988a5d
* Fri Nov 10 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.15-1
5988a5d
- Update to 1.1.15 (#1422712).
5988a5d
- https://github.com/processone/xmpp/blob/1.1.15/CHANGELOG.md
5988a5d
514c5d9
* Sun Oct 22 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.13-2
514c5d9
- Install the shared objects and depend on erlang_nif (#1505168).
514c5d9
6f65261
* Mon Jul 31 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.13-1
c7fa56c
- Update to 1.1.13 (#1422712).
c7fa56c
- https://github.com/processone/xmpp/blob/1.1.13/CHANGELOG.md
c7fa56c
bc83bb0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-3
bc83bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bc83bb0
a8fd208
* Mon Feb 13 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.6-2
a8fd208
- Re-enable the tests. It turns out the failure was local to my build environment.
a8fd208
8416e14
* Sun Feb 12 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.1.6-1
8416e14
- Update to 1.1.6 (#1412107).
8416e14
- https://github.com/processone/xmpp/blob/1.1.6/CHANGELOG.md
8416e14
- Disable tests due to same issue as https://github.com/processone/fast_xml/issues/21
8416e14
48e2dbb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-2
48e2dbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild