rpms/openxcap/F-12 import.log, NONE, 1.1 openxcap-fix_shebang.diff, NONE, 1.1 openxcap.init, NONE, 1.1 openxcap.spec, NONE, 1.1 openxcap.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Peter Lemenkov peter at fedoraproject.org
Fri Nov 6 20:51:41 UTC 2009


Author: peter

Update of /cvs/pkgs/rpms/openxcap/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv831/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	import.log openxcap-fix_shebang.diff openxcap.init 
	openxcap.spec openxcap.sysconfig 
Log Message:
initial commit


--- NEW FILE import.log ---
openxcap-1_1_2-1_fc11:F-12:openxcap-1.1.2-1.fc11.src.rpm:1257540633

openxcap-fix_shebang.diff:
 disabled_test_subscribediff.py |    1 -
 test.py                        |    1 -
 2 files changed, 2 deletions(-)

--- NEW FILE openxcap-fix_shebang.diff ---
--- xcap/test/test.py~	2009-04-16 14:04:11.000000000 +0400
+++ xcap/test/test.py	2009-09-24 15:17:09.109842897 +0400
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 import sys
 import os
 import traceback
--- xcap/test/disabled_test_subscribediff.py~	2009-07-24 21:54:51.000000000 +0400
+++ xcap/test/disabled_test_subscribediff.py	2009-09-24 15:17:51.842842558 +0400
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """This test will
  1) SUBSCRIBE to xcap-diff event
  2) read NOTIFY if any


--- NEW FILE openxcap.init ---
#!/bin/sh
#
# openxcap The OpenXCAP server
#
# chkconfig:   - 60 20
# description: The OpenXCAP server

### BEGIN INIT INFO
# Provides:          openxcap
# Required-Start:    $syslog $network $local_fs $time
# Required-Stop:     $syslog $network $local_fs
# Default-Start:
# Default-Stop:      0 1 6
# Short-Description: Start the OpenXCAP server
# Description:       Start the OpenXCAP server
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=openxcap

if [ -r /etc/sysconfig/$prog ]; then
	. /etc/sysconfig/$prog
fi

SERVER="/usr/sbin/$prog"
PIDFILE="/var/run/$prog/$prog.pid"
LOCKFILE="/var/lock/subsys/$prog"

start() {
	echo -n "Starting OpenXCAP server: "
	daemon $SERVER --pidfile $PIDFILE $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $LOCKFILE
        return $RETVAL
}

stop () {
	echo -n "Stopping OpenXCAP server: "
	killproc -p $PIDFILE $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE $PIDFILE
	return $RETVAL
}

restart() {
	stop
	start
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		restart
		;;
	reload)
		restart
		;;
	condrestart)
		[ -f $LOCKFILE ] && restart || :
		;;
	status)
                status -p $pidfile $prog
                RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
		exit 1
		;;
esac

exit 0



--- NEW FILE openxcap.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}


Name:		openxcap
Version:	1.1.2
Release:	1%{?dist}
Summary:	Fully featured XCAP server
Group:		System Environment/Daemons
License:	GPLv2
URL:		http://openxcap.org/
Source0:	http://download.ag-projects.com/XCAP/%{name}-%{version}.tar.gz
Source1:	%{name}.init
Source2:	%{name}.sysconfig

Patch0:		%{name}-fix_shebang.diff
BuildArch:      noarch
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires:	python-devel
BuildRequires:	python-setuptools
Requires:	python >= 2.5
Requires:	MySQL-python
Requires:	PyXML
Requires:	python-application
RequireS:	python-gnutls
Requires:	python-lxml
Requires:	python-sqlobject
Requires:	python-twisted-core
Requires:	python-twisted-web
Requires:	python-twisted-web2
Requires:	python-zope-interface

Requires(post): chkconfig
Requires(preun): chkconfig
# This is for /sbin/service
Requires(preun): initscripts


%description
Fully featured XCAP server. An XCAP server is used by SIP SIMPLE clients and
servers to manage buddy lists and policy for subscriptions to presence or
other type of events published using SIP protocol.

XCAP protocol allows a client to read, write and modify application
configuration data stored in XML format on a server. XCAP maps XML document
sub-trees and element attributes to HTTP URIs, so that these components can
be directly accessed by HTTP. An XCAP server is used by the XCAP clients to
store data like Presence policy in combination with a SIP Presence server
that supports PUBLISH/SUBSCRIBE/NOTIFY methods to provide a complete SIP
SIMPLE server solution.


%prep
%setup -q
%patch0 -p0 -b .fix_shebang


%build
%{__python} -c 'import setuptools; execfile("setup.py")' build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
install -D -p -m 0644 config.ini.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.ini
install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/%{name}
install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tls
install -d $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}
install -D -p -m 0644 scripts/mysql-create.sql $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-create.sql


%clean
rm -rf $RPM_BUILD_ROOT


%post
/sbin/chkconfig --add openxcap


%preun
if [ $1 = 0 ] ; then
    /sbin/service openxcap stop >/dev/null 2>&1
    /sbin/chkconfig --del openxcap
fi

%files
%defattr(-,root,root,-)
%doc LICENSE PKG-INFO README TODO opensips/opensips.cfg
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/tls
%dir %{_localstatedir}/run/%{name}
%dir %{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/config.ini
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_initrddir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}/mysql-create.sql
%{python_sitelib}/xcap
%{python_sitelib}/%{name}-%{version}-*.egg-info


%changelog
* Thu Sep 24 2009 Peter Lemenkov <lemenkov at gmail.com> 1.1.2-1
- Initial package



--- NEW FILE openxcap.sysconfig ---
# Options for the OpenXCAP server. Do not include --pid <pidfile>
# --pid <pidfile> will be added automatically if needed.
OPTIONS=""




Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/openxcap/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	6 Nov 2009 20:22:12 -0000	1.1
+++ .cvsignore	6 Nov 2009 20:51:41 -0000	1.2
@@ -0,0 +1 @@
+openxcap-1.1.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/openxcap/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	6 Nov 2009 20:22:12 -0000	1.1
+++ sources	6 Nov 2009 20:51:41 -0000	1.2
@@ -0,0 +1 @@
+cdf57ff6294ac06debfff3b7db44b208  openxcap-1.1.2.tar.gz




More information about the fedora-extras-commits mailing list