]> git.pld-linux.org Git - packages/ejabberd.git/blobdiff - ejabberd.spec
- up to 20.07; logdb unmaintained (so disabled)
[packages/ejabberd.git] / ejabberd.spec
index b3455baf6a6c67a85fff135e00fe26f7429ef22f..af33f094a590088af044d64bc69406a758cd4ebb 100644 (file)
 #   (like in fedora)
 # Conditional build:
 %bcond_with    pam             # PAM authentication support
-%bcond_without logdb           # enable mod_logdb (server-side message logging)
-%bcond_with    weaker_crypto   # enable SSLv3
+%bcond_with    logdb           # enable mod_logdb (server-side message logging)
+%bcond_with    new_sql_schema  # build with the new SQL schema
 
 Summary:       Fault-tolerant distributed Jabber/XMPP server
 Summary(pl.UTF-8):     Odporny na awarie rozproszony serwer Jabbera/XMPP
 Name:          ejabberd
-Version:       16.12
+Version:       20.07
 Release:       1
 License:       GPL
 Group:         Applications/Communications
-Source0:       http://www.process-one.net/downloads/ejabberd/%{version}/%{name}-%{version}.tgz
-# Source0-md5: fc571f0c0459860e876100ef1e1d225e
+# Source0:     http://www.process-one.net/downloads/ejabberd/%{version}/%{name}-%{version}.tgz
+Source0:       https://www.process-one.net/downloads/downloads-action.php?file=/%{version}/%{name}-%{version}.tgz
+# Source0-md5: f44a5fa45a0a27d196dc98335b1474e0
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.service
 Source4:       %{name}.logrotate
 #
 # Archives created with the ejabberd-pack_deps.sh script (in this repo)
-Source10: ejabberd-cache_tab-20161125.tar.gz
-# Source10-md5:        2e249c108a599ba853e86ab1a7ad6425
-Source11: ejabberd-elixir-20160606.tar.gz
-# Source11-md5:        982db37dc8c8646a3053044dbdc7c030
-Source12: ejabberd-esip-20161222.tar.gz
-# Source12-md5:        5f1c5d6e87031f78cf5b901fbe012c50
-Source13: ejabberd-ezlib-20160122.tar.gz
-# Source13-md5:        295896d09211eba4d2c23f7f80c8ae7e
-Source14: ejabberd-fast_tls-20161222.tar.gz
-# Source14-md5:        1cfa0d5501c73d3e68849a0c87217cbc
-Source15: ejabberd-fast_xml-20161125.tar.gz
-# Source15-md5:        c56bbbf355bf6c9c0fb7a2f1df7dbd07
-Source16: ejabberd-fast_yaml-20161125.tar.gz
-# Source16-md5:        41771c5f3e45e2e2e91f426a89a53f47
-Source17: ejabberd-goldrush-20151116.tar.gz
-# Source17-md5:        5313eb34d8f4ab935307510c9c1c928d
-Source18: ejabberd-iconv-20161125.tar.gz
-# Source18-md5:        7e124d4f51703f994da6b7c5ae147213
-Source19: ejabberd-jiffy-20160331.tar.gz
-# Source19-md5:        96c2d7ef60375cf9c967d077be27678d
-Source20: ejabberd-lager-20160610.tar.gz
-# Source20-md5:        501e65b999507b3043741fbb31512fce
-Source21: ejabberd-luerl-20151210.tar.gz
-# Source21-md5:        22bd7e897cd41dd49623b0be698b9c5b
-Source22: ejabberd-p1_mysql-20161125.tar.gz
-# Source22-md5:        41ad1bf928ff160df1d9112da19de59f
-Source23: ejabberd-p1_oauth2-20160123.tar.gz
-# Source23-md5:        d16a2368fad6859e2fc4d93a15d4cd43
-Source24: ejabberd-p1_pgsql-20161125.tar.gz
-# Source24-md5:        446809132277766ba515deb24e0d547c
-Source25: ejabberd-p1_utils-20161125.tar.gz
-# Source25-md5:        1df40d68faecf5b546bc49b046ffde67
-Source26: ejabberd-rebar_elixir_plugin-20160105.tar.gz
-# Source26-md5:        3e9fcc00865d05472934d6eb414a2a1e
-Source27: ejabberd-stringprep-20161125.tar.gz
-# Source27-md5:        ec50b6b2b36f3db4d8fb8257e66309f8
-Source28: ejabberd-stun-20161222.tar.gz
-# Source28-md5:        116eeb16312cd788d6901b0e5fdc1509
-Source29: ejabberd-xmpp-20161206.tar.gz
-# Source29-md5:        7281f2bec8b4ec9bc9a21ee9a415ca2c
-#
+Source10:      ejabberd-base64url-20150806.tar.gz
+# Source10-md5:        380365a24cbd8cff33115fd7ae696db4
+Source11:      ejabberd-cache_tab-20200728.tar.gz
+# Source11-md5:        79cf7ff08fe61b36b912a4df2e944227
+Source12:      ejabberd-eimp-20200728.tar.gz
+# Source12-md5:        c34a0151f9acf1c248aa4980e823961b
+Source13:      ejabberd-elixir-20170515.tar.gz
+# Source13-md5:        73be42f7d0cda7aeee5c0e6dadc0c451
+Source14:      ejabberd-ezlib-20200721.tar.gz
+# Source14-md5:        6e3f98f9a5100f999a2157cb57e3c8fc
+Source15:      ejabberd-fast_tls-20200728.tar.gz
+# Source15-md5:        3e15d467f7be6b188d99d2c1db478085
+Source16:      ejabberd-fast_xml-20200728.tar.gz
+# Source16-md5:        6c6d9c6a5442f2415b9da925d4d14695
+Source17:      ejabberd-fast_yaml-20200728.tar.gz
+# Source17-md5:        89f01b4158df4c56a9cc5797f9d319c8
+Source18:      ejabberd-goldrush-20160531.tar.gz
+# Source18-md5:        acac73f0fc85d23671f0c49c68f8df8a
+Source19:      ejabberd-idna-20180830.tar.gz
+# Source19-md5:        e34174d5c5e2e91611d3249c690f6d2d
+Source20:      ejabberd-jiffy-20200630.tar.gz
+# Source20-md5:        e99a512a9c4395bda77f07990aa9aa97
+Source21:      ejabberd-jose-20181231.tar.gz
+# Source21-md5:        406b7ceab1b2d3843440dfbdd85f2e79
+Source22:      ejabberd-lager-20190430.tar.gz
+# Source22-md5:        66205d931dd27b496529c19addf6d7d9
+Source23:      ejabberd-mqtree-20200728.tar.gz
+# Source23-md5:        6dede60127da20866ab46644cab1cc21
+Source24:      ejabberd-p1_acme-20200728.tar.gz
+# Source24-md5:        b39f5de636651f3ec868104ac86db0d1
+Source25:      ejabberd-p1_mysql-20200728.tar.gz
+# Source25-md5:        b482c810f3bb4739ac103fbfcfdcd160
+Source26:      ejabberd-p1_oauth2-20200728.tar.gz
+# Source26-md5:        0eb3ac030537202ef16b74d97788a761
+Source27:      ejabberd-p1_pgsql-20200728.tar.gz
+# Source27-md5:        dbe3ef9681bb622325137d57e8b8bc11
+Source28:      ejabberd-p1_utils-20200728.tar.gz
+# Source28-md5:        9ac6040eec0dbea30b277b36ebe33a2c
+Source29:      ejabberd-pkix-20200728.tar.gz
+# Source29-md5:        68c8f90ef9083bd75439c6bccfaacb0e
+Source30:      ejabberd-rebar_elixir_plugin-20160105.tar.gz
+# Source30-md5:        6a069a566d71c3daa45fc4736364adf0
+Source31:      ejabberd-sqlite3-20200720.tar.gz
+# Source31-md5:        d786b847d79815478a11ccd012db932f
+Source32:      ejabberd-stringprep-20200728.tar.gz
+# Source32-md5:        ad94928ad7ddc4479c92cf94cce7740c
+Source33:      ejabberd-stun-20200728.tar.gz
+# Source33-md5:        9eda4f4e84dc715969e3e9072d14fbf0
+Source34:      ejabberd-unicode_util_compat-20170729.tar.gz
+# Source34-md5:        1b348fdf38dba88ebed2f65125ad8590
+Source35:      ejabberd-xmpp-20200728.tar.gz
+# Source35-md5:        4418bb3ba3909c9091d6864fcb1ea922
+Source36:      ejabberd-yconf-20200728.tar.gz
+# Source36-md5:        5677b640acce6f0302894398c093c466
+
 Patch0:                %{name}-paths.patch
 Patch1:                %{name}-config.patch
-# not available for 13.10
-#Patch2:               %{name}-vcard-access-get.patch
-# http://www.dp.uz.gov.ua/o.palij/mod_logdb/patch-mod_logdb-13.12.diff
+# https://paleg.github.io/mod_logdb/
+# https://github.com/paleg/ejabberd/compare/paleg:19.08...paleg:19.08-mod_logdb.patch
 Patch3:                %{name}-mod_logdb.patch
-Patch4:                %{name}-no_sslv3_or_3des.patch
 URL:           http://www.ejabberd.im/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: erlang >= 1:R16B03
+BuildRequires: erlang >= 2:22.2
 BuildRequires: expat-devel >= 1.95
 BuildRequires: openssl-devel
 %if %{with pam}
 BuildRequires: pam-devel
 %endif
+BuildRequires: git-core
 BuildRequires: rpmbuild(macros) >= 1.671
+BuildRequires: sqlite3-devel
 BuildRequires: yaml-devel
 BuildRequires: zlib-devel
-BuildRequires: git-core
 Requires(post):        /usr/bin/perl
 Requires(post):        jabber-common
 Requires(post):        sed >= 4.0
 Requires(post):        textutils
 Requires(post,preun):  /sbin/chkconfig
 Requires(post,preun,postun):   systemd-units >= 38
-Requires:      erlang >= 1:R15B01
+Requires:      erlang >= 2:22.2
 Requires:      expat >= 1.95
 Requires:      rc-scripts
 Requires:      systemd-units >= 38
@@ -114,16 +128,13 @@ Requires: %{name} = %{version}-%{release}
 Server-side logging module.
 
 %prep
-%setup -q -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29
+%setup -q -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33 -a 34 -a 35 -a 36
 %patch0 -p1
 %patch1 -p1
 #%%patch2 -p1
 %if %{with logdb}
 %patch3 -p1
 %endif
-%if %{without weaker_crypto}
-%patch4 -p1
-%endif
 
 # Various parts of the build system use 'git describe'
 # which returns nonsense on manual builds using the builder script
@@ -138,6 +149,8 @@ git add configure.ac
 git commit -a -m "dummy commit"
 git tag "%{version}"
 
+sed -i -e 's,#!.*/usr/bin/env.*elixir,#!/usr/bin/elixir,' deps/elixir/bin/mix deps/elixir/lib/mix/lib/mix/tasks/escript.build.ex
+
 %build
 unset GIT_DIR GIT_WORK_TREE
 %{__aclocal} -I m4
@@ -145,20 +158,18 @@ unset GIT_DIR GIT_WORK_TREE
 %configure \
        %{?with_pam --enable-pam} \
        --enable-user=jabber \
+       %{__enable_disable new_sql_schema new-sql-schema} \
        --enable-elixir \
        --enable-full-xml \
        --enable-odbc \
        --enable-mysql \
        --enable-pgsql \
+       --enable-sqlite --with-sqlite3 \
        %{?with_pam:--enable-pam} \
-       --enable-zlib \
-       --enable-iconv
+       --enable-zlib
 
 touch deps/.got
 
-cd deps/iconv
-%configure
-cd ../..
 cd deps/stringprep
 %configure
 cd ../..
@@ -174,9 +185,6 @@ cd ../..
 cd deps/ezlib
 %configure
 cd ../..
-cd deps/esip
-%configure
-cd ../..
 
 # for elixir VM
 LC_ALL=en_US.UTF-8; export LC_ALL
@@ -197,9 +205,9 @@ unset GIT_DIR GIT_WORK_TREE
        DESTDIR=$RPM_BUILD_ROOT
 
 sed -e's,@libdir@,%{_libdir},g' -e 's,@EJABBERD_DOC_PATH@,%{_docdir}/%{name}-%{version}/doc,g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 chmod u+rw $RPM_BUILD_ROOT%{_sbindir}/%{name}*
 
@@ -337,26 +345,47 @@ fi
 %exclude %{_libdir}/ejabberd-%{version}/ebin/mod_logdb*
 %endif
 %{_libdir}/ejabberd-%{version}
+%{_libdir}/base64url-*
 %{_libdir}/cache_tab-*
+%dir %{_libdir}/eimp-*
+%dir %{_libdir}/eimp-*/priv
+%dir %{_libdir}/eimp-*/priv/bin
+%attr(755,root,root) %{_libdir}/eimp-*/priv/bin/eimp
+%{_libdir}/eimp-*/ebin
+%{_libdir}/eimp-*/LICENSE.txt
 %{_libdir}/elixir-*
-%{_libdir}/esip-*
 %{_libdir}/ezlib-*
 %{_libdir}/fast_tls-*
 %{_libdir}/fast_xml-*
 %{_libdir}/fast_yaml-*
 %{_libdir}/goldrush-*
-%{_libdir}/iconv-*
+%{_libdir}/idna-*
 %{_libdir}/jiffy-*
+%{_libdir}/jose-*
 %{_libdir}/lager-*
-%{_libdir}/luerl-*
+%dir %{_libdir}/mqtree-*
+%{_libdir}/mqtree-*/ebin
+%dir %{_libdir}/mqtree-*/priv
+%dir %{_libdir}/mqtree-*/priv/lib
+%attr(755,root,root) %{_libdir}/mqtree-*/priv/lib/mqtree.so
+%{_libdir}/p1_acme-*
 %{_libdir}/p1_mysql-*
 %{_libdir}/p1_oauth2-*
 %{_libdir}/p1_pgsql-*
 %{_libdir}/p1_utils-*
+%dir %{_libdir}/pkix-*
+%{_libdir}/pkix-*/ebin
+%{_libdir}/pkix-*/LICENSE
 %{_libdir}/rebar_elixir_plugin-*
+%{_libdir}/sqlite3-*/ebin
+%dir %{_libdir}/sqlite3-*
+%dir %{_libdir}/sqlite3-*/priv
+%attr(755,root,root) %{_libdir}/sqlite3-*/priv/sqlite3_drv.so
 %{_libdir}/stringprep-*
 %{_libdir}/stun-*
+%{_libdir}/unicode_util_compat-*
 %{_libdir}/xmpp-*
+%{_libdir}/yconf-*
 %dir %attr(770,root,jabber) /var/lib/ejabberd
 %ghost %attr(400,jabber,jabber) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/ejabberd/.erlang.cookie
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.696226 seconds and 4 git commands to generate.