summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 14:57:14 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 14:57:14 (GMT)
commit987217d13ca95c4d77b423f4c468e69986321386 (patch)
tree9868a3a97bce361e6ee02ed70bf45016e1028b01
parente731db6bb722846e9afa191e1c9150840cc5e28d (diff)
downloadlibkolabxml-987217d13ca95c4d77b423f4c468e69986321386.tar.gz
Removed unnecessary files.
-rw-r--r--Makefile.am49
-rw-r--r--configure.ac23
-rwxr-xr-xinstall-sh520
-rw-r--r--kolab-libs.spec.in139
-rw-r--r--libkolabxml/Makefile.am32
-rwxr-xr-xmissing376
-rw-r--r--po/Makefile.in.in217
-rw-r--r--po/POTFILES0
-rw-r--r--po/POTFILES.in0
-rw-r--r--po/bn.po0
-rw-r--r--po/bn_IN.po0
-rw-r--r--po/ca.po0
-rw-r--r--po/cs.po0
-rw-r--r--po/da.po0
-rw-r--r--po/de.po0
-rw-r--r--po/el.po0
-rw-r--r--po/es.po0
-rw-r--r--po/fi.po0
-rw-r--r--po/fr.po0
-rw-r--r--po/gl.po0
-rw-r--r--po/gu.po0
-rw-r--r--po/hi.po0
-rw-r--r--po/hr.po0
-rw-r--r--po/hu.po0
-rw-r--r--po/is.po0
-rw-r--r--po/it.po0
-rw-r--r--po/ja.po0
-rw-r--r--po/ko.po0
-rw-r--r--po/ml.po0
-rw-r--r--po/ms.po0
-rw-r--r--po/nb.po0
-rw-r--r--po/nl.po0
-rw-r--r--po/or.po0
-rw-r--r--po/pa.po0
-rw-r--r--po/pl.po0
-rw-r--r--po/pt.po0
-rw-r--r--po/pt_BR.po0
-rw-r--r--po/ru.po0
-rw-r--r--po/sk.po0
-rw-r--r--po/sl.po0
-rw-r--r--po/sr.po0
-rw-r--r--po/sr@latin.po0
-rw-r--r--po/stamp-it0
-rw-r--r--po/sv.po0
-rw-r--r--po/ta.po0
-rw-r--r--po/tr.po0
-rw-r--r--po/uk.po0
-rw-r--r--po/zh_CN.po0
-rw-r--r--po/zh_TW.po0
-rwxr-xr-xpy-compile146
-rw-r--r--pykolab/Makefile.am2
-rw-r--r--pykolab/__init__.py0
-rw-r--r--pykolab/format/Makefile.am6
-rw-r--r--pykolab/format/__init__.py42
-rw-r--r--pykolab/format/datetime.py4
-rw-r--r--pykolab/format/duration.py4
-rw-r--r--pykolab/format/event.py22
-rw-r--r--pykolab/format/recurrencerule.py4
-rw-r--r--pykolab/format/tests/__init__.py33
-rw-r--r--pykolab/format/tests/test-kolabformat-event.py85
-rw-r--r--pykolab/format/tests/test-parallel_threads.py247
-rw-r--r--pykolab/format/tests/test-pykolab-format-event.py78
-rw-r--r--pykolab/format/tests/test-thread_safety.py67
63 files changed, 0 insertions, 2096 deletions
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 71ff93f..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,49 +0,0 @@
-DISTCLEANFILES = \
- intltool-extract \
- intltool-merge \
- intltool-update
-
-INTLTOOL_FILES = \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in
-
-EXTRA_DIST = \
- AUTHORS \
- ChangeLog \
- COPYING \
- DEVELOPMENT \
- INSTALL \
- NEWS \
- README \
- cmake/modules/*.cmake \
- $(PACKAGE).spec \
- $(PACKAGE).spec.in
-
-SUBDIRS = \
- libkolabxml \
- pykolab \
- schemas
-
-tarball:
- git stash
- make dist
-
-ChangeLog:
- (GIT_DIR=.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
-
-srpm: ChangeLog dist
- @rpmbuild -ts $(PACKAGE)-$(VERSION).tar.gz
-
-rpm: srpm
- @rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
-
-all: ChangeLog
-
-test: all quicktest
-
-quicktest:
- @nosetests -v -d pykolab/format/tests/
-
-clean:
- find -type f -name "*.pyo" -o -name "*.pyc" -delete
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index c58beec..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,23 +0,0 @@
-AC_INIT([kolab-libs], 0.3)
-AC_SUBST([RELEASE], 0.1)
-
-AC_CONFIG_SRCDIR(kolab-libs.spec.in)
-
-AM_INIT_AUTOMAKE
-AM_MAINTAINER_MODE
-AM_PATH_PYTHON
-
-AC_PROG_LN_S
-
-AC_SUBST(DATESTAMP,`date +"%a %b %d %Y"`)
-
-AC_CONFIG_FILES([
-Makefile
-kolab-libs.spec
-libkolabxml/Makefile
-pykolab/format/Makefile
-pykolab/Makefile
-schemas/Makefile
-])
-
-AC_OUTPUT
diff --git a/install-sh b/install-sh
deleted file mode 100755
index 6781b98..0000000
--- a/install-sh
+++ /dev/null
@@ -1,520 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2009-04-28.21; # UTC
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
- test "$posix_glob" != "?" || {
- if (set -f) 2>/dev/null; then
- posix_glob=
- else
- posix_glob=:
- fi
- }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
- --help display this help and exit.
- --version display version info and exit.
-
- -c (ignored)
- -C install only if different (preserve the last data modification time)
- -d create directories instead of installing files.
- -g GROUP $chgrpprog installed files to GROUP.
- -m MODE $chmodprog installed files to MODE.
- -o USER $chownprog installed files to USER.
- -s $stripprog installed files.
- -t DIRECTORY install into DIRECTORY.
- -T report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
- RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) ;;
-
- -C) copy_on_change=true;;
-
- -d) dir_arg=true;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- shift;;
-
- -o) chowncmd="$chownprog $2"
- shift;;
-
- -s) stripcmd=$stripprog;;
-
- -t) dst_arg=$2
- shift;;
-
- -T) no_target_directory=true;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
- shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dst_arg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dst_arg"
- shift # fnord
- fi
- shift # arg
- dst_arg=$arg
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-if test -z "$dir_arg"; then
- trap '(exit $?); exit' 1 2 13 15
-
- # Set umask so as not to create temps with too-generous modes.
- # However, 'strip' requires both read and write access to temps.
- case $mode in
- # Optimize common cases.
- *644) cp_umask=133;;
- *755) cp_umask=22;;
-
- *[0-7])
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw='% 200'
- fi
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
- *)
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw=,u+rw
- fi
- cp_umask=$mode$u_plus_rw;;
- esac
-fi
-
-for src
-do
- # Protect names starting with `-'.
- case $src in
- -*) src=./$src;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- dstdir=$dst
- test -d "$dstdir"
- dstdir_status=$?
- else
-
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dst_arg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
-
- dst=$dst_arg
- # Protect names starting with `-'.
- case $dst in
- -*) dst=./$dst;;
- esac
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dst_arg: Is a directory" >&2
- exit 1
- fi
- dstdir=$dst
- dst=$dstdir/`basename "$src"`
- dstdir_status=0
- else
- # Prefer dirname, but fall back on a substitute if dirname fails.
- dstdir=`
- (dirname "$dst") 2>/dev/null ||
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$dst" : 'X\(//\)[^/]' \| \
- X"$dst" : 'X\(//\)$' \| \
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$dst" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'
- `
-
- test -d "$dstdir"
- dstdir_status=$?
- fi
- fi
-
- obsolete_mkdir_used=false
-
- if test $dstdir_status != 0; then
- case $posix_mkdir in
- '')
- # Create intermediate dirs using mode 755 as modified by the umask.
- # This is like FreeBSD 'install' as of 1997-10-28.
- umask=`umask`
- case $stripcmd.$umask in
- # Optimize common cases.
- *[2367][2367]) mkdir_umask=$umask;;
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
- *[0-7])
- mkdir_umask=`expr $umask + 22 \
- - $umask % 100 % 40 + $umask % 20 \
- - $umask % 10 % 4 + $umask % 2
- `;;
- *) mkdir_umask=$umask,go-w;;
- esac
-
- # With -d, create the new directory with the user-specified mode.
- # Otherwise, rely on $mkdir_umask.
- if test -n "$dir_arg"; then
- mkdir_mode=-m$mode
- else
- mkdir_mode=
- fi
-
- posix_mkdir=false
- case $umask in
- *[123567][0-7][0-7])
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
- ;;
- *)
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
- if (umask $mkdir_umask &&
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
- then
- if test -z "$dir_arg" || {
- # Check for POSIX incompatibilities with -m.
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
- # other-writeable bit of parent directory when it shouldn't.
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
- case $ls_ld_tmpdir in
- d????-?r-*) different_mode=700;;
- d????-?--*) different_mode=755;;
- *) false;;
- esac &&
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
- }
- }
- then posix_mkdir=:
- fi
- rmdir "$tmpdir/d" "$tmpdir"
- else
- # Remove any dirs left behind by ancient mkdir implementations.
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
- fi
- trap '' 0;;
- esac;;
- esac
-
- if
- $posix_mkdir && (
- umask $mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
- )
- then :
- else
-
- # The umask is ridiculous, or mkdir does not conform to POSIX,
- # or it failed possibly due to a race condition. Create the
- # directory the slow way, step by step, checking for races as we go.
-
- case $dstdir in
- /*) prefix='/';;
- -*) prefix='./';;
- *) prefix='';;
- esac
-
- eval "$initialize_posix_glob"
-
- oIFS=$IFS
- IFS=/
- $posix_glob set -f
- set fnord $dstdir
- shift
- $posix_glob set +f
- IFS=$oIFS
-
- prefixes=
-
- for d
- do
- test -z "$d" && continue
-
- prefix=$prefix$d
- if test -d "$prefix"; then
- prefixes=
- else
- if $posix_mkdir; then
- (umask=$mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
- # Don't fail if two instances are running concurrently.
- test -d "$prefix" || exit 1
- else
- case $prefix in
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
- *) qprefix=$prefix;;
- esac
- prefixes="$prefixes '$qprefix'"
- fi
- fi
- prefix=$prefix/
- done
-
- if test -n "$prefixes"; then
- # Don't fail if two instances are running concurrently.
- (umask $mkdir_umask &&
- eval "\$doit_exec \$mkdirprog $prefixes") ||
- test -d "$dstdir" || exit 1
- obsolete_mkdir_used=true
- fi
- fi
- fi
-
- if test -n "$dir_arg"; then
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
- else
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
- # Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
- { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
- { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
- # If -C, don't bother to copy if it wouldn't change the file.
- if $copy_on_change &&
- old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
- new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
-
- eval "$initialize_posix_glob" &&
- $posix_glob set -f &&
- set X $old && old=:$2:$4:$5:$6 &&
- set X $new && new=:$2:$4:$5:$6 &&
- $posix_glob set +f &&
-
- test "$old" = "$new" &&
- $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
- then
- rm -f "$dsttmp"
- else
- # Rename the file to the real destination.
- $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
-
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
- {
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- test ! -f "$dst" ||
- $doit $rmcmd -f "$dst" 2>/dev/null ||
- { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
- { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
- } ||
- { echo "$0: cannot unlink or rename $dst" >&2
- (exit 1); exit 1
- }
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dst"
- }
- fi || exit 1
-
- trap '' 0
- fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/kolab-libs.spec.in b/kolab-libs.spec.in
deleted file mode 100644
index 7e5d4c9..0000000
--- a/kolab-libs.spec.in
+++ /dev/null
@@ -1,139 +0,0 @@
-%{!?python_include: %global python_include %{_includedir}/python%(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")}
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())")}
-
-Name: kolab-libs
-Version: @VERSION@
-Release: @RELEASE@%{?dist}
-Summary: Kolab XML format collection parser library
-
-Group: System/Libraries
-License: LGPLv3+
-URL: http://www.kolab.org
-Source0: http://git.kolab.org/libkolabxml/snapshot/%{name}-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-%if 0%{?rhel} < 6 && 0%{?fedora} < 15
-BuildRequires: boost141-devel
-%else
-BuildRequires: boost-devel
-%endif
-BuildRequires: cmake >= 2.6
-BuildRequires: e2fsprogs-devel
-BuildRequires: gcc-c++
-%if 0%{?rhel} > 6 || 0%{?fedora} >= 16
-BuildRequires: kdelibs-devel
-BuildRequires: kdepimlibs-devel
-%endif
-%if 0%{?rhel} > 5
-BuildRequires: libuuid-devel
-%endif
-BuildRequires: php-devel >= 5.3
-BuildRequires: python-devel
-BuildRequires: qt-devel >= 3
-BuildRequires: swig
-#%if 0%{?rhel} <= 6 || 0%{?fedora} < 15
-#BuildRequires: uuid-devel
-#%endif
-BuildRequires: xerces-c-devel
-BuildRequires: xsd
-#Requires:
-
-%description
-The libkolabxml parsing library interprets Kolab XML formats (xCal, xCard) with
-bindings for Python, PHP and other languages. The language bindings are available
-through sub-packages.
-
-%package devel
-Summary: Kolab XML library development headers
-Group: System/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-Development headers for the Kolab XML libraries
-
-%package -n pykolab-format
-Summary: Python bindings for libkolabxml
-Group: System/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description -n pykolab-format
-The PyKolab format package offers a comprehensive Python library using the
-bindings provided through libkolabxml.
-
-%package -n php-kolabformat
-Summary: PHP bindings for libkolabxml
-Group: System/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description -n php-kolabformat
-The PHP kolabformat package offers a comprehensible PHP library using the
-bindings provided through libkolabxml.
-
-%prep
-%setup -q
-
-%build
-%configure
-
-make %{?_smp_mflags}
-
-pushd libkolabxml
-rm -rf build
-mkdir -p build
-pushd build
-%{cmake} -Wno-fatal-errors -Wno-errors \
- -DCMAKE_SKIP_RPATH=ON \
-%if 0%{?rhel} <= 6 && 0%{?fedora} < 15
- -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
- -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
- -DBoost_ADDITIONAL_VERSIONS="1.41;1.41.0" \
-%endif
- -DPYTHON_INCLUDE_DIRS=%{python_include} \
- -DKOLAB_PYTHON_INSTALL_DIR=%{python_sitearch} \
- -DKOLAB_PHP_INSTALL_DIR=%{php_extdir} \
- ..
-make
-popd
-popd
-
-%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-
-pushd libkolabxml/build
-make install DESTDIR=%{buildroot}
-popd
-
-#%check
-#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/c++/build/lib
-#export PYTHON_PATH=$PYTHON_PATH:%{builddir}/%{name}-%{version}/
-#make quicktest
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root,-)
-%doc DEVELOPMENT INSTALL
-%{_libdir}/*.so.*
-
-%files devel
-%defattr(-,root,root,-)
-%{_includedir}
-%{_libdir}/*.so
-
-%files -n php-kolabformat
-%defattr(-,root,root,-)
-%{php_extdir}/kolabformat.php
-%{php_extdir}/kolabformat.so
-
-%files -n pykolab-format
-%defattr(-,root,root,-)
-%{python_sitelib}/pykolab
-%{python_sitearch}/kolabformat.py*
-%{python_sitearch}/_kolabformat.so
-
-%changelog
-* Fri Feb 17 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.2-0.1
-- First package
diff --git a/libkolabxml/Makefile.am b/libkolabxml/Makefile.am
deleted file mode 100644
index d26ae0c..0000000
--- a/libkolabxml/Makefile.am
+++ /dev/null
@@ -1,32 +0,0 @@
-EXTRA_DIST = \
- autogen.sh \
- CMakeLists.txt \
- Makefile.am \
- README \
- compiled/ \
- compiled/grammar-input-stream.cxx \
- compiled/grammar-input-stream.hxx \
- compiled/README \
- compiled/XMLParserWrapper.cpp \
- compiled/XMLParserWrapper.h \
- compiled/xsdbin.cxx \
- lib/ \
- $(wildcard lib/*.cpp) \
- $(wildcard lib/*.h) \
- $(wildcard lib/*.i) \
- lib/CMakeLists.txt \
- lib/DEVELOPMENT \
- lib/php/ \
- lib/php/CMakeLists.txt \
- lib/php/test.php \
- lib/python/ \
- lib/python/CMakeLists.txt \
- lib/python/test.py \
- tests/ \
- $(wildcard tests/*.cpp) \
- $(wildcard tests/*.h) \
- tests/CMakeLists.txt \
- tests/testfiles/ \
- $(wildcard tests/testfiles/*.xml)
-
-
diff --git a/missing b/missing
deleted file mode 100755
index 28055d2..0000000
--- a/missing
+++ /dev/null
@@ -1,376 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2009-04-28.21; # UTC
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
-# 2008, 2009 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
-\`g' are ignored when checking the name.
-
-Send bug reports to <bug-automake@gnu.org>."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# normalize program name to check for.
-program=`echo "$1" | sed '
- s/^gnu-//; t
- s/^gnu//; t
- s/^g//; t'`
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program). This is about non-GNU programs, so use $1 not
-# $program.
-case $1 in
- lex*|yacc*)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar*)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $program in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case $f in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te*)
- echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
- You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison*|yacc*)
- echo 1>&2 "\
-WARNING: \`$1' $msg. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if test ! -f y.tab.h; then
- echo >y.tab.h
- fi
- if test ! -f y.tab.c; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex*|flex*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if test ! -f lex.yy.c; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit $?
- fi
- ;;
-
- makeinfo*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- # The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -z "$file"; then
- # ... or it is the one specified with @setfilename ...
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '
- /^@setfilename/{
- s/.* \([^ ]*\) *$/\1/
- p
- q
- }' $infile`
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
- fi
- # If the file does not exist, the user really needs makeinfo;
- # let's fail without touching anything.
- test -f $file || exit 1
- touch $file
- ;;
-
- tar*)
- shift
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case $firstarg in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case $firstarg in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
- You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequisites for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
deleted file mode 100644
index cc8a222..0000000
--- a/po/Makefile.in.in
+++ /dev/null
@@ -1,217 +0,0 @@
-# Makefile for program source directory in GNU NLS utilities package.
-# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
-# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
-#
-# This file may be copied and used freely without restrictions. It may
-# be used in projects which are not available under a GNU Public License,
-# but which still want to provide support for the GNU gettext functionality.
-#
-# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
-# instead of PACKAGE and to look for po2tbl in ./ not in intl/
-#
-# - Modified by jacob berkman <jacob@ximian.com> to install
-# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
-#
-# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
-#
-# We have the following line for use by intltoolize:
-# INTLTOOL_MAKEFILE
-
-GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-
-SHELL = @SHELL@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-top_builddir = @top_builddir@
-VPATH = @srcdir@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-datadir = @datadir@
-datarootdir = @datarootdir@
-libdir = @libdir@
-DATADIRNAME = @DATADIRNAME@
-itlocaledir = $(prefix)/$(DATADIRNAME)/locale
-subdir = po
-install_sh = @install_sh@
-# Automake >= 1.8 provides @mkdir_p@.
-# Until it can be supposed, use the safe fallback:
-mkdir_p = $(install_sh) -d
-
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-
-GMSGFMT = @GMSGFMT@
-MSGFMT = @MSGFMT@
-XGETTEXT = @XGETTEXT@
-INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
-INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
-MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
-GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
-
-ALL_LINGUAS = @ALL_LINGUAS@
-
-PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
-
-USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
-
-USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
-
-POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
-
-DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
-EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
-
-POTFILES = \
-# This comment gets stripped out
-
-CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
-
-.SUFFIXES:
-.SUFFIXES: .po .pox .gmo .mo .msg .cat
-
-.po.pox:
- $(MAKE) $(GETTEXT_PACKAGE).pot
- $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
-
-.po.mo:
- $(MSGFMT) -o $@ $<
-
-.po.gmo:
- file=`echo $* | sed 's,.*/,,'`.gmo \
- && rm -f $$file && $(GMSGFMT) -o $$file $<
-
-.po.cat:
- sed -f ../intl/po2msg.sed < $< > $*.msg \
- && rm -f $@ && gencat $@ $*.msg
-
-
-all: all-@USE_NLS@
-
-all-yes: $(CATALOGS)
-all-no:
-
-$(GETTEXT_PACKAGE).pot: $(POTFILES)
- $(GENPOT)
-
-install: install-data
-install-data: install-data-@USE_NLS@
-install-data-no: all
-install-data-yes: all
- linguas="$(USE_LINGUAS)"; \
- for lang in $$linguas; do \
- dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $$dir; \
- if test -r $$lang.gmo; then \
- $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
- echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
- else \
- $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
- echo "installing $(srcdir)/$$lang.gmo as" \
- "$$dir/$(GETTEXT_PACKAGE).mo"; \
- fi; \
- if test -r $$lang.gmo.m; then \
- $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
- echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
- else \
- if test -r $(srcdir)/$$lang.gmo.m ; then \
- $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
- $$dir/$(GETTEXT_PACKAGE).mo.m; \
- echo "installing $(srcdir)/$$lang.gmo.m as" \
- "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
- else \
- true; \
- fi; \
- fi; \
- done
-
-# Empty stubs to satisfy archaic automake needs
-dvi info ctags tags CTAGS TAGS ID:
-
-# Define this as empty until I found a useful application.
-install-exec installcheck:
-
-uninstall:
- linguas="$(USE_LINGUAS)"; \
- for lang in $$linguas; do \
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
- done
-
-check: all $(GETTEXT_PACKAGE).pot
- rm -f missing notexist
- srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
- if [ -r missing -o -r notexist ]; then \
- exit 1; \
- fi
-
-mostlyclean:
- rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
- rm -f .intltool-merge-cache
-
-clean: mostlyclean
-
-distclean: clean
- rm -f Makefile Makefile.in POTFILES stamp-it
- rm -f *.mo *.msg *.cat *.cat.m *.gmo
-
-maintainer-clean: distclean
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
- rm -f Makefile.in.in
-
-distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir: $(DISTFILES)
- dists="$(DISTFILES)"; \
- extra_dists="$(EXTRA_DISTFILES)"; \
- for file in $$extra_dists; do \
- test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
- done; \
- for file in $$dists; do \
- test -f $$file || file="$(srcdir)/$$file"; \
- ln $$file $(distdir) 2> /dev/null \
- || cp -p $$file $(distdir); \
- done
-
-update-po: Makefile
- $(MAKE) $(GETTEXT_PACKAGE).pot
- tmpdir=`pwd`; \
- linguas="$(USE_LINGUAS)"; \
- for lang in $$linguas; do \
- echo "$$lang:"; \
- result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
- if $$result; then \
- if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "msgmerge for $$lang.gmo failed!"; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi; \
- done
-
-Makefile POTFILES: stamp-it
- @if test ! -f $@; then \
- rm -f stamp-it; \
- $(MAKE) stamp-it; \
- fi
-
-stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
- cd $(top_builddir) \
- && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
- $(SHELL) ./config.status
-
-# Tell versions [3.59,3.63) of GNU make not to export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/po/POTFILES b/po/POTFILES
deleted file mode 100644
index e69de29..0000000
--- a/po/POTFILES
+++ /dev/null
diff --git a/po/POTFILES.in b/po/POTFILES.in
deleted file mode 100644
index e69de29..0000000
--- a/po/POTFILES.in
+++ /dev/null
diff --git a/po/bn.po b/po/bn.po
deleted file mode 100644
index e69de29..0000000
--- a/po/bn.po
+++ /dev/null
diff --git a/po/bn_IN.po b/po/bn_IN.po
deleted file mode 100644
index e69de29..0000000
--- a/po/bn_IN.po
+++ /dev/null
diff --git a/po/ca.po b/po/ca.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ca.po
+++ /dev/null
diff --git a/po/cs.po b/po/cs.po
deleted file mode 100644
index e69de29..0000000
--- a/po/cs.po
+++ /dev/null
diff --git a/po/da.po b/po/da.po
deleted file mode 100644
index e69de29..0000000
--- a/po/da.po
+++ /dev/null
diff --git a/po/de.po b/po/de.po
deleted file mode 100644
index e69de29..0000000
--- a/po/de.po
+++ /dev/null
diff --git a/po/el.po b/po/el.po
deleted file mode 100644
index e69de29..0000000
--- a/po/el.po
+++ /dev/null
diff --git a/po/es.po b/po/es.po
deleted file mode 100644
index e69de29..0000000
--- a/po/es.po
+++ /dev/null
diff --git a/po/fi.po b/po/fi.po
deleted file mode 100644
index e69de29..0000000
--- a/po/fi.po
+++ /dev/null
diff --git a/po/fr.po b/po/fr.po
deleted file mode 100644
index e69de29..0000000
--- a/po/fr.po
+++ /dev/null
diff --git a/po/gl.po b/po/gl.po
deleted file mode 100644
index e69de29..0000000
--- a/po/gl.po
+++ /dev/null
diff --git a/po/gu.po b/po/gu.po
deleted file mode 100644
index e69de29..0000000
--- a/po/gu.po
+++ /dev/null
diff --git a/po/hi.po b/po/hi.po
deleted file mode 100644
index e69de29..0000000
--- a/po/hi.po
+++ /dev/null
diff --git a/po/hr.po b/po/hr.po
deleted file mode 100644
index e69de29..0000000
--- a/po/hr.po
+++ /dev/null
diff --git a/po/hu.po b/po/hu.po
deleted file mode 100644
index e69de29..0000000
--- a/po/hu.po
+++ /dev/null
diff --git a/po/is.po b/po/is.po
deleted file mode 100644
index e69de29..0000000
--- a/po/is.po
+++ /dev/null
diff --git a/po/it.po b/po/it.po
deleted file mode 100644
index e69de29..0000000
--- a/po/it.po
+++ /dev/null
diff --git a/po/ja.po b/po/ja.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ja.po
+++ /dev/null
diff --git a/po/ko.po b/po/ko.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ko.po
+++ /dev/null
diff --git a/po/ml.po b/po/ml.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ml.po
+++ /dev/null
diff --git a/po/ms.po b/po/ms.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ms.po
+++ /dev/null
diff --git a/po/nb.po b/po/nb.po
deleted file mode 100644
index e69de29..0000000
--- a/po/nb.po
+++ /dev/null
diff --git a/po/nl.po b/po/nl.po
deleted file mode 100644
index e69de29..0000000
--- a/po/nl.po
+++ /dev/null
diff --git a/po/or.po b/po/or.po
deleted file mode 100644
index e69de29..0000000
--- a/po/or.po
+++ /dev/null
diff --git a/po/pa.po b/po/pa.po
deleted file mode 100644
index e69de29..0000000
--- a/po/pa.po
+++ /dev/null
diff --git a/po/pl.po b/po/pl.po
deleted file mode 100644
index e69de29..0000000
--- a/po/pl.po
+++ /dev/null
diff --git a/po/pt.po b/po/pt.po
deleted file mode 100644
index e69de29..0000000
--- a/po/pt.po
+++ /dev/null
diff --git a/po/pt_BR.po b/po/pt_BR.po
deleted file mode 100644
index e69de29..0000000
--- a/po/pt_BR.po
+++ /dev/null
diff --git a/po/ru.po b/po/ru.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ru.po
+++ /dev/null
diff --git a/po/sk.po b/po/sk.po
deleted file mode 100644
index e69de29..0000000
--- a/po/sk.po
+++ /dev/null
diff --git a/po/sl.po b/po/sl.po
deleted file mode 100644
index e69de29..0000000
--- a/po/sl.po
+++ /dev/null
diff --git a/po/sr.po b/po/sr.po
deleted file mode 100644
index e69de29..0000000
--- a/po/sr.po
+++ /dev/null
diff --git a/po/sr@latin.po b/po/sr@latin.po
deleted file mode 100644
index e69de29..0000000
--- a/po/sr@latin.po
+++ /dev/null
diff --git a/po/stamp-it b/po/stamp-it
deleted file mode 100644
index e69de29..0000000
--- a/po/stamp-it
+++ /dev/null
diff --git a/po/sv.po b/po/sv.po
deleted file mode 100644
index e69de29..0000000
--- a/po/sv.po
+++ /dev/null
diff --git a/po/ta.po b/po/ta.po
deleted file mode 100644
index e69de29..0000000
--- a/po/ta.po
+++ /dev/null
diff --git a/po/tr.po b/po/tr.po
deleted file mode 100644
index e69de29..0000000
--- a/po/tr.po
+++ /dev/null
diff --git a/po/uk.po b/po/uk.po
deleted file mode 100644
index e69de29..0000000
--- a/po/uk.po
+++ /dev/null
diff --git a/po/zh_CN.po b/po/zh_CN.po
deleted file mode 100644
index e69de29..0000000
--- a/po/zh_CN.po
+++ /dev/null
diff --git a/po/zh_TW.po b/po/zh_TW.po
deleted file mode 100644
index e69de29..0000000
--- a/po/zh_TW.po
+++ /dev/null
diff --git a/py-compile b/py-compile
deleted file mode 100755
index 3f9d05b..0000000
--- a/py-compile
+++ /dev/null
@@ -1,146 +0,0 @@
-#!/bin/sh
-# py-compile - Compile a Python program
-
-scriptversion=2009-04-28.21; # UTC
-
-# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-if [ -z "$PYTHON" ]; then
- PYTHON=python
-fi
-
-basedir=
-destdir=
-files=
-while test $# -ne 0; do
- case "$1" in
- --basedir)
- basedir=$2
- if test -z "$basedir"; then
- echo "$0: Missing argument to --basedir." 1>&2
- exit 1
- fi
- shift
- ;;
- --destdir)
- destdir=$2
- if test -z "$destdir"; then
- echo "$0: Missing argument to --destdir." 1>&2
- exit 1
- fi
- shift
- ;;
- -h|--h*)
- cat <<\EOF
-Usage: py-compile [--help] [--version] [--basedir DIR] [--destdir DIR] FILES..."
-
-Byte compile some python scripts FILES. Use --destdir to specify any
-leading directory path to the FILES that you don't want to include in the
-byte compiled file. Specify --basedir for any additional path information you
-do want to be shown in the byte compiled file.
-
-Example:
- py-compile --destdir /tmp/pkg-root --basedir /usr/share/test test.py test2.py
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v|--v*)
- echo "py-compile $scriptversion"
- exit $?
- ;;
- *)
- files="$files $1"
- ;;
- esac
- shift
-done
-
-if test -z "$files"; then
- echo "$0: No files given. Try \`$0 --help' for more information." 1>&2
- exit 1
-fi
-
-# if basedir was given, then it should be prepended to filenames before
-# byte compilation.
-if [ -z "$basedir" ]; then
- pathtrans="path = file"
-else
- pathtrans="path = os.path.join('$basedir', file)"
-fi
-
-# if destdir was given, then it needs to be prepended to the filename to
-# byte compile but not go into the compiled file.
-if [ -z "$destdir" ]; then
- filetrans="filepath = path"
-else
- filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
-fi
-
-$PYTHON -c "
-import sys, os, py_compile
-
-files = '''$files'''
-
-sys.stdout.write('Byte-compiling python modules...\n')
-for file in files.split():
- $pathtrans
- $filetrans
- if not os.path.exists(filepath) or not (len(filepath) >= 3
- and filepath[-3:] == '.py'):
- continue
- sys.stdout.write(file)
- sys.stdout.flush()
- py_compile.compile(filepath, filepath + 'c', path)
-sys.stdout.write('\n')" || exit $?
-
-# this will fail for python < 1.5, but that doesn't matter ...
-$PYTHON -O -c "
-import sys, os, py_compile
-
-files = '''$files'''
-sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n')
-for file in files.split():
- $pathtrans
- $filetrans
- if not os.path.exists(filepath) or not (len(filepath) >= 3
- and filepath[-3:] == '.py'):
- continue
- sys.stdout.write(file)
- sys.stdout.flush()
- py_compile.compile(filepath, filepath + 'o', path)
-sys.stdout.write('\n')" 2>/dev/null || :
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/pykolab/Makefile.am b/pykolab/Makefile.am
deleted file mode 100644
index fb094f5..0000000
--- a/pykolab/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-SUBDIRS = \
- format
diff --git a/pykolab/__init__.py b/pykolab/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/pykolab/__init__.py
+++ /dev/null
diff --git a/pykolab/format/Makefile.am b/pykolab/format/Makefile.am
deleted file mode 100644
index fdc2f75..0000000
--- a/pykolab/format/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-pykolabformatdir = $(pythondir)/pykolab/format
-pykolabformat_PYTHON = $(wildcard *.py)
-
-pykolabformattestsdir = $(pythondir)/pykolab/format/tests
-pykolabformattests_PYTHON = $(wildcard tests/*.py)
-
diff --git a/pykolab/format/__init__.py b/pykolab/format/__init__.py
deleted file mode 100644
index 54777cc..0000000
--- a/pykolab/format/__init__.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2010-2012 Kolab Systems AG (http://www.kolabsys.com)
-#
-# Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen a kolabsys.com>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 3 or, at your option, any later version
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-
-import os
-import sys
-
-sys.path.append(
- os.path.abspath(
- os.path.join(
- os.path.dirname(__file__),
- '..',
- '..',
- 'c++',
- 'build',
- 'lib',
- 'python'
- )
- )
- )
-
-import kolabformat
-from kolabformat import writeEvent
-
-__all__ = [
- 'writeEvent'
- ]
diff --git a/pykolab/format/datetime.py b/pykolab/format/datetime.py
deleted file mode 100644
index a16ebb2..0000000
--- a/pykolab/format/datetime.py
+++ /dev/null
@@ -1,4 +0,0 @@
-import kolabformat
-
-class DateTime(kolabformat.cDateTime):
- pass
diff --git a/pykolab/format/duration.py b/pykolab/format/duration.py
deleted file mode 100644
index 998c8a9..0000000
--- a/pykolab/format/duration.py
+++ /dev/null
@@ -1,4 +0,0 @@
-import kolabformat
-
-class Duration(kolabformat.Duration):
- pass
diff --git a/pykolab/format/event.py b/pykolab/format/event.py
deleted file mode 100644
index a727716..0000000
--- a/pykolab/format/event.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import kolabformat
-
-class Event(kolabformat.Event):
- def __init__(self):
- kolabformat.Event.__init__(self)
-
- self.uid = None
- self.organizer = None
-
- def __set__(self, key, value):
- eval("kolabformat.Event.set%s(%r) %(key.capitalize(), value)")
-
- def __get__(self, key):
- eval("retval = kolabformat.Event.%s()")
- return retval
-
- def setDuration(self, duration):
- if self.end().isValid() and self.start().isValid():
- raise Exception, "Cannot set duration on event with start and end already set."
- else:
- self.duration = duration
-
diff --git a/pykolab/format/recurrencerule.py b/pykolab/format/recurrencerule.py
deleted file mode 100644
index 63aec88..0000000
--- a/pykolab/format/recurrencerule.py
+++ /dev/null
@@ -1,4 +0,0 @@
-import kolabformat
-
-class RecurrenceRule(kolabformat.RecurrenceRule):
- pass
diff --git a/pykolab/format/tests/__init__.py b/pykolab/format/tests/__init__.py
deleted file mode 100644
index cee30d1..0000000
--- a/pykolab/format/tests/__init__.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/python
-
-import os
-import sys
-
-sys.path.append(
- os.path.abspath(
- os.path.join(
- os.path.dirname(__file__),
- '..',
- '..',
- '..'
- )
- )
- )
-
-sys.path.append(
- os.path.abspath(
- os.path.join(
- os.path.dirname(__file__),
- '..',
- '..',
- '..',
- 'c++',
- 'build',
- 'lib',
- 'python'
- )
- )
- )
-
-# Corrects Namespace handling
-from pykolab.format import *
diff --git a/pykolab/format/tests/test-kolabformat-event.py b/pykolab/format/tests/test-kolabformat-event.py
deleted file mode 100644
index eede69a..0000000
--- a/pykolab/format/tests/test-kolabformat-event.py
+++ /dev/null
@@ -1,85 +0,0 @@
-import unittest
-
-from kolabformat import cDateTime
-from kolabformat import Duration
-from kolabformat import Event
-from kolabformat import RecurrenceRule
-
-from kolabformat import writeEvent
-
-class TestEvent(unittest.TestCase):
-
- def create_event_newyearseve(self):
- myevent = Event()
-
- self.assertTrue(isinstance(myevent, Event))
-
- # All in UTC.
- myevent.setStart(cDateTime(2011,12,31,20,00,00))
- myevent.setEnd(cDateTime(2012,01,01,03,00,00))
-
- # Set the organizer. cal-address first, display name later.
- myevent.setOrganizer("John.Doe@example.org", "John Doe")
-
- myevent.setSummary("New Year's eve")
-
- myevent.setDescription("Celebrate new years eve with some champagne, family and friends")
- return myevent
-
- def test_event_create_simple(self):
- myevent = self.create_event_newyearseve()
-
- myevent_str = writeEvent(myevent)
-
- def test_event_create_yearly_recurrence(self):
- myevent = self.create_event_newyearseve()
-
- # TODO: Recurrence please
- recurrencerule = RecurrenceRule()
- recurrencerule.setFrequency(RecurrenceRule.Yearly)
- myevent.setRecurrenceRule(recurrencerule)
-
- myevent_str = writeEvent(myevent)
- assert 0 == 0
-
- def test_event_noduration_with_startend(self):
- myevent = self.create_event_newyearseve()
- self.assertEqual(Duration, type(myevent.duration()))
- duration = myevent.duration()
-
- # Event has start and end, and therefore no duration
- self.assertEqual(duration.isValid(), False)
- self.assertEqual(duration.isNegative(), False)
-
- # It also means all of the following values should be empty
- self.assertEqual(duration.weeks(), 0)
- self.assertEqual(duration.days(), 0)
- self.assertEqual(duration.hours(), 0)
- self.assertEqual(duration.minutes(), 0)
- self.assertEqual(duration.seconds(), 0)
-
- def test_event_duration(self):
- myevent = Event()
-
- myevent.setStart(cDateTime(2011,12,31,20,00,00))
-
- # Duration takes weeks, days, hours, minutes, seconds
- duration = Duration(0, 8, 0, 0)
- myevent.setDuration(duration)
-
- myevent_str = writeEvent(myevent)
-
- def test_event_from_startend_to_startduration(self):
- myevent = self.create_event_newyearseve()
- myevent_str_orig = writeEvent(myevent)
-
- duration = Duration(0, 8, 0, 0)
-
-# self.assertRaises(Exception, myevent.setDuration, duration)
-
- myevent.setDuration(duration)
-
- myevent_str = writeEvent(myevent)
-
-# self.assertNotEqual(myevent_str_orig, myevent_str)
-
diff --git a/pykolab/format/tests/test-parallel_threads.py b/pykolab/format/tests/test-parallel_threads.py
deleted file mode 100644
index b0eae07..0000000
--- a/pykolab/format/tests/test-parallel_threads.py
+++ /dev/null
@@ -1,247 +0,0 @@
-import unittest
-
-from kolabformat import cDateTime
-from kolabformat import Duration
-from kolabformat import Event
-from kolabformat import RecurrenceRule
-
-from kolabformat import getSerializedUID
-from kolabformat import writeEvent
-
-import threading
-import time
-
-class ThreadEvent(threading.Thread):
- def __init__(self, *args, **kw):
- threading.Thread.__init__(self, target=self.get_uids, args=[kw['sleep']])
- self.myevent = Event()
- # All in UTC.
- self.myevent.setStart(cDateTime(2011,12,31,20,00,00))
- self.myevent.setEnd(cDateTime(2012,01,01,03,00,00))
-
- # Set the organizer. cal-address first, display name later.
- self.myevent.setOrganizer("John.Doe@example.org", "John Doe")
-
- self.myevent.setSummary("New Year's eve")
-
- self.myevent.setDescription("Celebrate new years eve with some champagne, family and friends")
-
- def get_uids(self, sleep=0):
- writeEvent(self.myevent)
- self.uid1 = getSerializedUID()
- time.sleep(sleep * 3 * 2)
- self.uid2 = getSerializedUID()
-
-class TestThreadSafety(unittest.TestCase):
- def create_threads(self, sleep=0):
- self.thread1 = ThreadEvent(sleep=sleep)
- self.thread2 = ThreadEvent(sleep=sleep)
-
- self.thread1.start()
-
- time.sleep(sleep * 3)
-
- self.thread2.start()
-
- time.sleep(sleep * 3)
-
- self.thread1.join()
- self.thread2.join()
-
- self.uid1_1 = self.thread1.uid1
- self.uid2_1 = self.thread2.uid1
-
- self.uid1_2 = self.thread1.uid2
- self.uid2_2 = self.thread2.uid2
-
- ##
- ## Tests that sleep for plenty of time in between actions.
- ##
-
- def test_thread_safety_000_05_uid1_1_ne_uid2_1(self):
- self.create_threads(sleep=0.5)
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_1,
- "uid(1) for the event in thread #1 is the same as uid(1)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_000_05_uid1_1_ne_uid2_2(self):
- self.create_threads(sleep=0.5)
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_2,
- "uid(1) for the event in thread #1 is the same as uid(2)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_000_05_uid1_2_ne_uid2_1(self):
- self.create_threads(sleep=0.5)
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_1,
- "uid(2) for the event in thread #1 is the same as uid(1) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_000_05_uid1_2_ne_uid2_2(self):
- self.create_threads(sleep=0.5)
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_2,
- "uid(2) for the event in thread #1 is the same as uid(2) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_000_05_uid1_1_eq_uid1_2(self):
- self.create_threads(sleep=0.5)
-
- self.assertEqual(
- self.uid1_1,
- self.uid1_2,
- "uid(1) for the event in thread #1 is different from " + \
- "uid(2) for the event in thread #1."
- )
-
- def test_thread_safety_000_05_uid2_1_eq_uid2_2(self):
- self.create_threads(sleep=0.5)
-
- self.assertEqual(
- self.uid2_1,
- self.uid2_2,
- "uid(1) for the event in thread #2 is different from " + \
- "uid(2) for the event in thread #2."
- )
-
- ##
- ## Tests that sleep for just a little bit in between actions.
- ##
-
- def test_thread_safety_001_01_uid1_1_ne_uid2_1(self):
- self.create_threads(sleep=0.1)
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_1,
- "uid(1) for the event in thread #1 is the same as uid(1)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_001_01_uid1_1_ne_uid2_2(self):
- self.create_threads(sleep=0.1)
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_2,
- "uid(1) for the event in thread #1 is the same as uid(2)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_001_01_uid1_2_ne_uid2_1(self):
- self.create_threads(sleep=0.1)
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_1,
- "uid(2) for the event in thread #1 is the same as uid(1) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_001_01_uid1_2_ne_uid2_2(self):
- self.create_threads(sleep=0.1)
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_2,
- "uid(2) for the event in thread #1 is the same as uid(2) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_001_01_uid1_1_eq_uid1_2(self):
- self.create_threads(sleep=0.1)
-
- self.assertEqual(
- self.uid1_1,
- self.uid1_2,
- "uid(1) for the event in thread #1 is different from " + \
- "uid(2) for the event in thread #1."
- )
-
- def test_thread_safety_001_01_uid2_1_eq_uid2_2(self):
- self.create_threads(sleep=0.1)
-
- self.assertEqual(
- self.uid2_1,
- self.uid2_2,
- "uid(1) for the event in thread #2 is different from " + \
- "uid(2) for the event in thread #2."
- )
-
- ##
- ## Tests that are fast as lightning (no sleep)
- ##
-
- def test_thread_safety_002_00_uid1_1_ne_uid2_1(self):
- self.create_threads()
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_1,
- "uid(1) for the event in thread #1 is the same as uid(1)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_002_00_uid1_1_ne_uid2_2(self):
- self.create_threads()
-
- self.assertNotEqual(
- self.uid1_1,
- self.uid2_2,
- "uid(1) for the event in thread #1 is the same as uid(2)" + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_002_00_uid1_2_ne_uid2_1(self):
- self.create_threads()
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_1,
- "uid(2) for the event in thread #1 is the same as uid(1) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_002_00_uid1_2_ne_uid2_2(self):
- self.create_threads()
-
- self.assertNotEqual(
- self.uid1_2,
- self.uid2_2,
- "uid(2) for the event in thread #1 is the same as uid(2) " + \
- "for the event in thread #2."
- )
-
- def test_thread_safety_002_00_uid1_1_eq_uid1_2(self):
- self.create_threads()
-
- self.assertEqual(
- self.uid1_1,
- self.uid1_2,
- "uid(1) for the event in thread #1 is different from " + \
- "uid(2) for the event in thread #1."
- )
-
- def test_thread_safety_002_00_uid2_1_eq_uid2_2(self):
- self.create_threads()
-
- self.assertEqual(
- self.uid2_1,
- self.uid2_2,
- "uid(1) for the event in thread #2 is different from " + \
- "uid(2) for the event in thread #2."
- )
diff --git a/pykolab/format/tests/test-pykolab-format-event.py b/pykolab/format/tests/test-pykolab-format-event.py
deleted file mode 100644
index d8d4ca4..0000000
--- a/pykolab/format/tests/test-pykolab-format-event.py
+++ /dev/null
@@ -1,78 +0,0 @@
-import unittest
-
-from pykolab.format.datetime import DateTime
-from pykolab.format.duration import Duration
-from pykolab.format.event import Event
-from pykolab.format.recurrencerule import RecurrenceRule
-
-from pykolab.format import writeEvent
-
-class TestEvent(unittest.TestCase):
-
- def create_event_newyearseve(self):
- myevent = Event()
-
- self.assertTrue(isinstance(myevent, Event))
-
- # All in UTC.
- myevent.setStart(DateTime(2011,12,31,20,00,00))
- myevent.setEnd(DateTime(2012,01,01,03,00,00))
-
- # Set the organizer. cal-address first, display name later.
- myevent.setOrganizer("John.Doe@example.org", "John Doe")
-
- myevent.setSummary("New Year's eve")
-
- myevent.setDescription("Celebrate new years eve with some champagne, family and friends")
- return myevent
-
- def test_event_create_simple(self):
- myevent = self.create_event_newyearseve()
-
- myevent_str = writeEvent(myevent)
-
- def test_event_create_yearly_recurrence(self):
- myevent = self.create_event_newyearseve()
-
- # TODO: Recurrence please
- recurrencerule = RecurrenceRule()
- recurrencerule.setFrequency(RecurrenceRule.Yearly)
- myevent.setRecurrenceRule(recurrencerule)
-
- myevent_str = writeEvent(myevent)
- assert 0 == 0
-
- def test_event_noduration_with_startend(self):
- myevent = self.create_event_newyearseve()
- duration = myevent.duration()
-
- # Event has start and end, and therefore no duration
- self.assertEqual(duration.isValid(), False)
- self.assertEqual(duration.isNegative(), False)
-
- # It also means all of the following values should be empty
- self.assertEqual(duration.weeks(), 0)
- self.assertEqual(duration.days(), 0)
- self.assertEqual(duration.hours(), 0)
- self.assertEqual(duration.minutes(), 0)
- self.assertEqual(duration.seconds(), 0)
-
- def test_event_duration(self):
- myevent = Event()
-
- myevent.setStart(DateTime(2011,12,31,20,00,00))
-
- # Duration takes weeks, days, hours, minutes, seconds
- duration = Duration(0, 8, 0, 0)
- myevent.setDuration(duration)
-
- myevent_str = writeEvent(myevent)
-
- def test_event_from_startend_to_startduration(self):
- myevent = self.create_event_newyearseve()
- myevent_str_orig = writeEvent(myevent)
-
- duration = Duration(0, 8, 0, 0)
-
- self.assertRaises(Exception, myevent.setDuration, duration)
-
diff --git a/pykolab/format/tests/test-thread_safety.py b/pykolab/format/tests/test-thread_safety.py
deleted file mode 100644
index 3e46274..0000000
--- a/pykolab/format/tests/test-thread_safety.py
+++ /dev/null
@@ -1,67 +0,0 @@
-import unittest
-
-from kolabformat import cDateTime
-from kolabformat import Duration
-from kolabformat import Event
-from kolabformat import RecurrenceRule
-
-from kolabformat import getSerializedUID
-from kolabformat import writeEvent
-
-import threading
-import time
-
-class ThreadEvent(threading.Thread):
- def __init__(self, *args, **kw):
- threading.Thread.__init__(self, target=self.create_event)
- self.errorBit = False
-
- def create_event(self):
- self.myevent = Event()
- # All in UTC.
- self.myevent.setStart(cDateTime(2011,12,31,20,00,00))
- self.myevent.setEnd(cDateTime(2012,01,01,03,00,00))
-
- # Set the organizer. cal-address first, display name later.
- self.myevent.setOrganizer("John.Doe@example.org", "John Doe")
-
- self.myevent.setSummary("New Year's eve")
-
- self.myevent.setDescription("Celebrate new years eve with some champagne, family and friends")
-
-
- def write(self):
- self.create_event()
- writeEvent(self.myevent)
-
- def uid(self):
- return getSerializedUID()
-
- def run(self):
- for i in range(10):
- self.write()
- self.uid1 = self.uid()
- time.sleep(1)
- #We expect the other thread to be called once while we're sleeping
- #To be absolutely sure we'd have to use locking
- self.uid2 = self.uid()
- if self.uid1 != self.uid2:
- self.errorBit = True
-
-class TestThreadSafety(unittest.TestCase):
- def create_threads(self):
- self.thread1 = ThreadEvent()
- self.thread1.start()
-
- self.thread2 = ThreadEvent()
- self.thread2.start()
-
- time.sleep(10.0)
-
- self.thread2.join();
- self.thread1.join();
-
- def test_thread_safety_uid1_ne_uid2(self):
- self.create_threads()
- self.assertTrue(not self.thread1.errorBit)
- self.assertTrue(not self.thread2.errorBit)