* Fix some stats where host is a string but tables store as binary * Fix to work with mod_stats2file in recent ejabberd * Fix typo in previous commit * Updated to fix traffic stats * Updated to fix iq:version stats * Fixed stats: login, logout, accounts registered and deleted (#235) * Update mod_grafite to start correctly in recent ejabberd (#234) * Change proposed to update module to last ejabberd_auth API (#228, #230) OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/ejabberd-contrib?expand=0&rev=2
133 lines
4.4 KiB
RPMSpec
133 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package ejabberd
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
%define enabled_modules ejabberd_auth_http mod_log_chat mod_logsession mod_logxml mod_message_log mod_post_log mod_rest mod_s2s_log mod_shcommands mod_statsdx mod_webpresence
|
|
# Broken (as mentioned in readme-broken.md): atom_pubsub ircd mod_archive mod_openid mod_profile
|
|
# removed mod_cron needs ns.hrl
|
|
# remove mod_muc_log_http undefined callbacks
|
|
# do NOT enable mod_multicast in contrib
|
|
|
|
Name: ejabberd-contrib
|
|
Version: 0~git1516748049.fc40a38
|
|
Release: 0
|
|
Summary: A distributed, fault-tolerant Jabber/XMPP server
|
|
Group: Productivity/Networking/Talk/Servers
|
|
License: GPL-2.0
|
|
URL: http://ejabberd.im/
|
|
Source: %{name}-%{version}.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: xz
|
|
BuildRequires: fdupes
|
|
BuildRequires: erlang >= 17.1
|
|
BuildRequires: ejabberd-devel
|
|
BuildRequires: erlang-fast_xml
|
|
BuildRequires: erlang-xmpp-devel
|
|
%requires_eq ejabberd
|
|
|
|
%description
|
|
Various plugins for ejabberd
|
|
|
|
This package holds the following modules:
|
|
|
|
%{enabled_modules}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%global ejabberd_dir %(rpm -ql ejabberd | grep -E '/ejabberd-[0-9]+\.[0-9]+$')
|
|
pejabberd=$(rpm -ql ejabberd-devel | grep -E '/include$' )
|
|
pxml=$(rpm -ql erlang-fast_xml | grep -E '/include$' )
|
|
pxmpp=$(rpm -ql erlang-xmpp-devel | grep -E '/include$' )
|
|
for i in %{enabled_modules} ; do
|
|
pushd $i
|
|
mkdir ebin
|
|
/usr/bin/erlc \
|
|
-o ebin \
|
|
-I include \
|
|
-I $pejabberd \
|
|
-I $pxml \
|
|
-I $pxmpp \
|
|
-DLAGER -DNO_EXT_LIB \
|
|
-pa ../../ebin \
|
|
src/*erl
|
|
popd
|
|
done
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{ejabberd_dir}/data/mod_webpresence/ \
|
|
%{buildroot}%{ejabberd_dir}/priv/msgs/
|
|
#
|
|
install -D -m 0755 -d %{buildroot}%{ejabberd_dir}/{ebin,data/mod_webpresence}/ %{buildroot}%{_docdir}/ejabberd/
|
|
cp $(find -name \*.beam -not -path '*/ejabberd-dev/*') %{buildroot}%{ejabberd_dir}/ebin/
|
|
for i in %{enabled_modules} ; do
|
|
pushd $i
|
|
for j in $(find -iname README\* -o -iname COPYING\* -o -iname ChangeLog\* -o -iname LICENSE\* -o -iname AUTHOR\* ) ; do
|
|
mod_doc_dir="%{buildroot}%{_docdir}/ejabberd/$i"
|
|
test -d $mod_doc_dir || install -Dd $mod_doc_dir
|
|
cp $j $mod_doc_dir
|
|
done
|
|
popd
|
|
done
|
|
cp -a mod_webpresence/priv/msgs/*msg %{buildroot}%{ejabberd_dir}/priv/msgs/
|
|
cp -a mod_webpresence/priv/pixmaps/ %{buildroot}%{ejabberd_dir}/data/mod_webpresence/
|
|
#
|
|
install -m 0755 -D mod_mam_mnesia/import-mam-archives %{buildroot}%{_sbindir}/import-mam-archives
|
|
install -m 0644 -D mod_mam_mnesia/README.md %{buildroot}%{_docdir}/ejabberd/mod_mam_mnesia/README.md
|
|
#
|
|
%fdupes -s %{buildroot}%{ejabberd_dir}/data/mod_webpresence/
|
|
|
|
%fdupes -s %{buildroot}%{_docdir}/ejabberd/
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_sbindir}/import-mam-archives
|
|
%{ejabberd_dir}/priv/msgs/*mod_webpresence*
|
|
%{ejabberd_dir}/data/mod_webpresence/
|
|
#
|
|
%{ejabberd_dir}/ebin/ejabberd_auth_http.beam
|
|
%{ejabberd_dir}/ebin/mod_log_chat.beam
|
|
%{ejabberd_dir}/ebin/mod_logxml.beam
|
|
%{ejabberd_dir}/ebin/mod_logsession.beam
|
|
%{ejabberd_dir}/ebin/mod_message_log.beam
|
|
%{ejabberd_dir}/ebin/mod_post_log.beam
|
|
%{ejabberd_dir}/ebin/mod_rest.beam
|
|
%{ejabberd_dir}/ebin/mod_s2s_log.beam
|
|
%{ejabberd_dir}/ebin/scram2.beam
|
|
%{ejabberd_dir}/ebin/mod_shcommands.beam
|
|
%{ejabberd_dir}/ebin/mod_statsdx.beam
|
|
%{ejabberd_dir}/ebin/mod_stats2file.beam
|
|
%{ejabberd_dir}/ebin/mod_webpresence.beam
|
|
#
|
|
%{_docdir}/ejabberd/ejabberd_auth_http/
|
|
%{_docdir}/ejabberd/mod_shcommands/
|
|
%{_docdir}/ejabberd/mod_log_chat/
|
|
%{_docdir}/ejabberd/mod_logxml/
|
|
%{_docdir}/ejabberd/mod_logsession/
|
|
%{_docdir}/ejabberd/mod_mam_mnesia/
|
|
%{_docdir}/ejabberd/mod_message_log/
|
|
%{_docdir}/ejabberd/mod_post_log/
|
|
%{_docdir}/ejabberd/mod_rest/
|
|
%{_docdir}/ejabberd/mod_s2s_log/
|
|
%{_docdir}/ejabberd/mod_statsdx/
|
|
%{_docdir}/ejabberd/mod_webpresence/
|
|
|
|
%changelog
|