- Update to version 1.1.13:

* Add jid support also in muc_subscribe
  * Makefile: Add dependencies for spec/xdata targets
  * Let Git ignore the "priv" directory and ".o" files
  * Remove unused p1_stream extension
  * Release version 1.1.10
  * Release version 1.1.11
  * Support XEP-0357: Push Notifications
  * Release version 1.1.12
  * Add XEP-0357 to supported extensions list
  * Release 1.1.13

- update to 1.1.9

- initial package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-xmpp?expand=0&rev=1
This commit is contained in:
2017-07-09 23:47:31 +00:00
committed by Git OBS Bridge
commit 9093dcf55f
11 changed files with 226 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="obs_scm">
<param name="url">https://github.com/processone/xmpp.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">1.1.13</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="buildtime" name="set_version" />
</services>

View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/processone/xmpp.git</param>
<param name="changesrevision">2826fc70da079cc7216fafce3829c798c57e1a19</param></service></servicedata>

View File

@@ -0,0 +1,40 @@
-------------------------------------------------------------------
Sun Jul 09 23:47:20 UTC 2017 - opensuse-packaging@opensuse.org
- Update to version 1.1.13:
* Add jid support also in muc_subscribe
* Makefile: Add dependencies for spec/xdata targets
* Let Git ignore the "priv" directory and ".o" files
* Remove unused p1_stream extension
* Release version 1.1.10
* Release version 1.1.11
* Support XEP-0357: Push Notifications
* Release version 1.1.12
* Add XEP-0357 to supported extensions list
* Release 1.1.13
-------------------------------------------------------------------
Sun Jul 09 23:44:24 UTC 2017 - mrueckert@suse.de
- Update to version 1.1.13:
* Add jid support also in muc_subscribe
* Makefile: Add dependencies for spec/xdata targets
* Let Git ignore the "priv" directory and ".o" files
* Remove unused p1_stream extension
* Release version 1.1.10
* Release version 1.1.11
* Support XEP-0357: Push Notifications
* Release version 1.1.12
* Add XEP-0357 to supported extensions list
* Release 1.1.13
-------------------------------------------------------------------
Fri Mar 31 12:44:26 UTC 2017 - mrueckert@suse.de
- update to 1.1.9
-------------------------------------------------------------------
Tue Feb 28 23:33:31 UTC 2017 - mrueckert@suse.de
- initial package

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2dcda0bab82d954e8dd170c30af41ef6e9d33a5d828ee1ce38cb49358d5fc6fa
size 2010636

View File

@@ -0,0 +1,5 @@
name: xmpp
version: 1.1.13
mtime: 1498661147
commit: 2826fc70da079cc7216fafce3829c798c57e1a19

View File

@@ -0,0 +1,19 @@
commit cb394e2f2899fed2280f5f3c05c80f69611b135e
Author: Holger Weiss <holger@zedat.fu-berlin.de>
Date: Fri Jul 7 18:40:41 2017 +0200
Fix namespace string for PubSub publishing options
diff --git a/include/ns.hrl b/include/ns.hrl
index a1ebf63..0753966 100644
--- a/include/ns.hrl
+++ b/include/ns.hrl
@@ -78,7 +78,7 @@
-define(NS_PUBSUB_SUBSCRIBE_OPTIONS,
<<"http://jabber.org/protocol/pubsub#subscribe_options">>).
-define(NS_PUBSUB_PUBLISH_OPTIONS,
- <<"http://jabber.org/protocol/pubsub#publish_options">>).
+ <<"http://jabber.org/protocol/pubsub#publish-options">>).
-define(NS_PUBSUB_SUB_AUTH,
<<"http://jabber.org/protocol/pubsub#subscribe_authorization">>).
-define(NS_PUBSUB_GET_PENDING,

25
erlang-xmpp.changes Normal file
View File

@@ -0,0 +1,25 @@
-------------------------------------------------------------------
Sun Jul 09 23:44:24 UTC 2017 - mrueckert@suse.de
- Update to version 1.1.13:
* Add jid support also in muc_subscribe
* Makefile: Add dependencies for spec/xdata targets
* Let Git ignore the "priv" directory and ".o" files
* Remove unused p1_stream extension
* Release version 1.1.10
* Release version 1.1.11
* Support XEP-0357: Push Notifications
* Release version 1.1.12
* Add XEP-0357 to supported extensions list
* Release 1.1.13
-------------------------------------------------------------------
Fri Mar 31 12:44:26 UTC 2017 - mrueckert@suse.de
- update to 1.1.9
-------------------------------------------------------------------
Tue Feb 28 23:33:31 UTC 2017 - mrueckert@suse.de
- initial package

78
erlang-xmpp.spec Normal file
View File

@@ -0,0 +1,78 @@
#
# spec file for package erlang-xmpp
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: erlang-xmpp
Version: 1.1.13
Release: 0
Summary: Erlang/Elixir XMPP parsing and serialization library on top of Fast XML
License: Apache-2.0
Group: Development/Libraries/Other
Url: https://github.com/processone/xmpp
Source: xmpp-%{version}.tar.xz
Patch: cb394e2f2899fed2280f5f3c05c80f69611b135e.patch
Patch1: include-fxml.patch
BuildRequires: erlang-p1_utils >= 1.0.9
BuildRequires: erlang-stringprep >= 1.0.7
BuildRequires: erlang-fast_xml >= 1.1.22
%requires_eq erlang-stringprep
%requires_eq erlang-fast_xml
BuildRequires: erlang-rebar
Requires: erlang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
XMPP is an Erlang XMPP parsing and serialization library, built on top of Fast XML.
%package devel
Summary: Erlang/Elixir XMPP parsing and serialization library on top of Fast XML
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Provides: %{name}-src = %{version}
Obsoletes: %{name}-src < %{version}
%description devel
XMPP is an Erlang XMPP parsing and serialization library, built on top of Fast XML.
This package contains the sources for %{name}.
%prep
%setup -n xmpp-%{version}
%patch -p1
%patch1 -p1
%build
%rebar compile
%install
for dir in include ebin src ; do
install -d %{buildroot}%{erlang_libdir}/xmpp-%{version}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/xmpp-%{version}/${dir}/
done
%check
%rebar ct
%files
%defattr(-,root,root)
%doc README.md LICENSE.txt
%dir %{erlang_libdir}/xmpp-%{version}
%{erlang_libdir}/xmpp-%{version}/ebin
%files devel
%defattr(-,root,root)
%{erlang_libdir}/xmpp-%{version}/include
%{erlang_libdir}/xmpp-%{version}/src

13
include-fxml.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: xmpp-1.1.13/include/xmpp.hrl
===================================================================
--- xmpp-1.1.13.orig/include/xmpp.hrl
+++ xmpp-1.1.13/include/xmpp.hrl
@@ -26,7 +26,7 @@
-include("ns.hrl").
-include("jid.hrl").
-include("xmpp_codec.hrl").
--include("fxml.hrl").
+-include_lib("fast_xml/include/fxml.hrl").
-type stanza() :: iq() | presence() | message().