From b55135c96e0ef347f895a3ae90dc7a5a254d839f Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Apr 12 2016 15:50:14 +0000 Subject: Initial import (#1317182). --- diff --git a/.gitignore b/.gitignore index e69de29..c41cefb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.1.11.tar.gz diff --git a/erlang-fast_xml.spec b/erlang-fast_xml.spec new file mode 100644 index 0000000..a8e6a9d --- /dev/null +++ b/erlang-fast_xml.spec @@ -0,0 +1,63 @@ +%global srcname fast_xml + + +Name: erlang-%{srcname} +Version: 1.1.11 +Release: 2%{?dist} + +License: ASL 2.0 +Summary: Fast Expat based Erlang XML parsing and manipulation library +URL: https://github.com/processone/fast_xml/ +Source0: https://github.com/processone/fast_xml/archive/%{version}.tar.gz + +Provides: erlang-p1_xml = %{version}-%{release} +Obsoletes: erlang-p1_xml < 1.1.11 + +BuildRequires: erlang-edoc +BuildRequires: erlang-rebar +BuildRequires: erlang-p1_utils +BuildRequires: expat-devel + +%{?__erlang_nif_version:Requires: %{__erlang_nif_version}} + + +%description +Fast Expat based Erlang XML parsing and manipulation library, with a strong +focus on XML stream parsing from network. It supports full XML structure +parsing, suitable for small but complete XML chunks, and XML stream parsing +suitable for large XML document, or infinite network XML stream like XMPP. +This module can parse files much faster than built-in module xmerl. Depending +on file complexity and size xml_stream:parse_element/1 can be 8-18 times faster +than calling xmerl_scan:string/2. + + +%prep +%autosetup -n fast_xml-%{version} + + +%build +%{rebar_compile} + + +%install +%{erlang_install} + +install -p -D -m 755 priv/lib/* --target-directory=$RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib/ + + +%check +%{rebar_eunit} + + +%files +%license LICENSE.txt +%doc CHANGELOG.md README.md +%{erlang_appdir} + + +%changelog +* Fri Mar 18 2016 Randy Barlow - 1.1.11-2 +- Include a debuginfo package. + +* Sat Mar 12 2016 Randy Barlow - 1.1.11-1 +- Initial release. diff --git a/sources b/sources index e69de29..f54b550 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0b38cbffbac6c41c86c369dfd1f488e8 1.1.11.tar.gz