diff -r 1b852c64b120 -r 6becb64fe77d jabberd/jabberd.spec
--- a/jabberd/jabberd.spec Tue Aug 28 18:30:25 2012 +0200
+++ b/jabberd/jabberd.spec Tue Aug 28 18:30:35 2012 +0200
@@ -1,6 +1,6 @@
##
## jabberd.spec -- OpenPKG RPM Package Specification
-## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
+## Copyright (c) 2000-2011 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
@@ -24,7 +24,6 @@
# package version
%define V_major 2.2
%define V_minor 14
-%define V_mucon 0.8
# package information
Name: jabberd
@@ -37,32 +36,24 @@
Group: InstantMessaging
License: JOSL/GPL
Version: %{V_major}.%{V_minor}
-Release: 20110914
+Release: 20110602
# package options
-%option with_mucon yes
-%option with_sqlite yes
+%option with_sqlite no
%option with_mysql no
%option with_pgsql no
%option with_pam no
# list of sources
Source0: http://codex.xiaoka.com/pub/jabberd2/releases/jabberd-%{version}.tar.gz
-Source1: http://download.gna.org/mu-conference/mu-conference_%{V_mucon}.tar.gz
-Source2: rc.jabberd
+Source1: rc.jabberd
Patch0: jabberd.patch
# build information
-Prefix: %{l_prefix}
-BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20060823, make
-PreReq: OpenPKG, openpkg >= 20060823, perl
+BuildPreReq: OpenPKG, openpkg >= 20100101, make
+PreReq: OpenPKG, openpkg >= 20100101, perl
BuildPreReq: db, expat, libiconv, libidn, gpg-error, gcrypt, libgsasl, openssl, udns
PreReq: db, expat, libiconv, libidn, gpg-error, gcrypt, libgsasl, openssl, udns
-%if "%{with_mucon}" == "yes"
-BuildPreReq: glib2
-PreReq: glib2
-%endif
%if "%{with_sqlite}" == "yes"
BuildPreReq: sqlite
PreReq: sqlite
@@ -79,8 +70,6 @@
BuildPreReq: PAM
PreReq: PAM
%endif
-AutoReq: no
-AutoReqProv: no
%description
JabberD is the original server implementation for the Jabber instant
@@ -95,43 +84,18 @@
url = http://codex.xiaoka.com/pub/jabberd2/releases/
regex = jabberd-(\d+\.\d+(\.\d+)*)\.tar\.gz
}
- prog jabberd:mucon = {
- version = %{V_mucon}
- url = http://download.gna.org/mu-conference/
- regex = mu-conference_(__VER__)\.tar\.gz
- }
%prep
%setup -q -n jabberd-%{version}
- %setup -q -D -T -a 1
%{l_sed} <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
%{l_shtool} subst \
-e 's;exec perl;exec %{l_prefix}/bin/perl;' \
tools/jabberd.in
-%if "%{with_mucon}" == "yes"
- %{l_shtool} subst \
- -e 's;^\(CFLAGS\ *:=.*pkg-config --cflags glib-2.0\);\1 libidn;' \
- -e 's;^\(LIBS\ *:=.*\);\1 $(LOCLIBS);' \
- mu-conference_%{V_mucon}/src/Makefile
- %{l_shtool} subst \
- -e 's;mu-conference.log;muc.log;g' \
- mu-conference_%{V_mucon}/src/jcomp/jcr_log.c
- %{l_shtool} subst \
- -e 's;[0-9][0-9]*;5347;' \
- -e 's;.*;%{l_prefix}/var/jabberd/spool/rooms;' \
- -e 's;\./syslogs;%{l_prefix}/var/jabberd/log;' \
- -e 's;\./logs/;%{l_prefix}/var/jabberd/spool/logs;' \
- -e 's;.*;%{l_prefix}/var/jabberd/pid/muc.pid;' \
- -e 's;.*;http://name.host.tld/;' \
- -e 's;.*;%{l_prefix}/share/jabberd/style.css;' \
- mu-conference_%{V_mucon}/muc-default.xml
- echo \
- 'muc @sysconfdir@/muc.xml' \
- >>etc/jabberd.cfg.dist.in
-%endif
%build
# configure program
+ ( echo "ac_cv_func_kqueue=no"
+ ) >config.cache
export CC="%{l_cc}"
export CFLAGS="%{l_cflags -O}"
export CPPFLAGS="%{l_cppflags libidn}"
@@ -151,6 +115,7 @@
CPPFLAGS="$CPPFLAGS %{l_cppflags postgresql}"
%endif
./configure \
+ --cache-file=./config.cache \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/jabberd \
--mandir=%{l_prefix}/man \
@@ -158,7 +123,6 @@
--enable-fs \
--enable-pipe \
--enable-ssl \
- --enable-debug \
--with-sasl=gsasl \
%if "%{with_sqlite}" == "yes"
--enable-sqlite \
@@ -185,23 +149,10 @@
--enable-shared
# build program
- %{l_make} %{l_mflags -O}
-
-%if "%{with_mucon}" == "yes"
- loclibs=''
- case "%{l_platform -t}" in
- *-sunos* )
- loclibs='-lsocket -lnsl'
- ;;
- esac
- ( cd mu-conference_%{V_mucon}
- %{l_make} %{l_mflags -O} LOCLIBS=$loclibs
- ) || exit $?
-%endif
+ %{l_make} %{l_mflags}
%install
# create installation filesystem structure
- rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/etc/jabberd \
@@ -211,29 +162,9 @@
$RPM_BUILD_ROOT%{l_prefix}/var/jabberd/pid \
$RPM_BUILD_ROOT%{l_prefix}/var/jabberd/log
- # install required components
+ # install components
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
- # install optional components
-%if "%{with_mucon}" == "yes"
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/share/jabberd \
- $RPM_BUILD_ROOT%{l_prefix}/var/jabberd/spool/logs \
- $RPM_BUILD_ROOT%{l_prefix}/var/jabberd/spool/rooms
- %{l_shtool} install -c -m 644 \
- mu-conference_%{V_mucon}/muc-default.xml \
- $RPM_BUILD_ROOT%{l_prefix}/etc/jabberd/muc.xml
- %{l_shtool} install -c \
- mu-conference_%{V_mucon}/src/mu-conference \
- $RPM_BUILD_ROOT%{l_prefix}/bin/
- %{l_shtool} install -c \
- mu-conference_%{V_mucon}/style.css \
- $RPM_BUILD_ROOT%{l_prefix}/share/jabberd
-%endif
-
- # strip installation
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
-
# remove unnecessary files
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/jabberd/*.dist
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/jabberd/templates/*.dist
@@ -241,9 +172,6 @@
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
-%if "%{with_mucon}" == "yes"
- -e 's;\(jabberd_daemons\s*=.*\)\s\s*\(\w\w*\);\1 mucon\2;' \
-%endif
%{SOURCE rc.jabberd} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
@@ -257,7 +185,6 @@
%files -f files
%clean
- rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service