File litmus.spec of Package litmus

#
# spec file for package litmus (Version 0.11)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           litmus
Version:        0.12.1
Release:        0
License:        GPL
Group:          Productivity/Networking/Web/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cyrus-sasl-devel expat neon-devel openssl-devel pkgconfig
%if 0%{?suse_version} < 1010
BuildRequires:  heimdal-devel
%else
BuildRequires:  krb5-devel
%endif
%if 0%{suse_version} > 1020
BuildRequires:  libexpat-devel
%else
BuildRequires:  expat
%endif
%if 0%{?suse_version}
%define _libexecdir %{_prefix}/lib
%endif
Url:            http://www.webdav.org/neon/litmus/
Source:         http://www.webdav.org/neon/litmus/litmus-%{version}.tar.gz
Patch:          litmus-0.12.1_allowed_neon_versions.patch
Summary:        WebDAV server protocol compliance test suite

%description
litmus is a WebDAV server test suite, which aims to test whether a
server is compliant with the WebDAV protocol as specified in RFC2518;
current tests cover:

litmus in action

  * OPTIONS for DAV: header
  * PUT, GET with byte comparison
  * MKCOL
  * DELETE (collections, non-collections)
  * COPY, MOVE using combinations of:

       * overwrite t/f
       * destination exists/doesn't exist
       * collection/non-collection

  * Property manipulation and querying:

       * set, delete, replace properties
       * persist dead props across COPY
       * namespace handling

  * Locking

       * attempts to modify locked resource (as lock owner, not owner)
       * shared/exclusive locks
       * lock discovery
       * collection locking
       * lock refresh

Note that a server which passes all these tests will not necessarily work
with any real DAV clients; though the chances are good. litmus is built
using the neon library, so supports digest and basic authentication,
TLS/SSL, and proxy servers.

%prep
%setup
%patch

%build
%configure \
	--with-ssl --with-expat \
	--enable-shared  \
	--enable-warnings \
	--without-included-neon \
	--enable-threadsafe-ssl=posix
%{__make}

%install
%makeinstall

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc ChangeLog ChangeLog.CVS COPYING FAQ NEWS README THANKS TODO
%{_bindir}/%{name}
%dir %{_libexecdir}/%{name}/
%{_libexecdir}/%{name}/basic
%{_libexecdir}/%{name}/copymove
%{_libexecdir}/%{name}/http
%{_libexecdir}/%{name}/locks
%{_libexecdir}/%{name}/props
%{_datadir}/%{name}/

%changelog
openSUSE Build Service is sponsored by