File cadaver.spec of Package cadaver

#
# spec file for package cadaver (Version 0.23.3)
#
# Copyright (c) 2010 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:           cadaver
BuildRequires:  libneon-devel libxml2-devel openssl-devel readline-devel
License:        GPLv2+
Group:          Productivity/Networking/Web/Utilities
AutoReqProv:    on
Version:        0.23.3
Release:        1
Summary:        Command Line WebDAV Client for Unix
Url:            http://www.webdav.org/cadaver/
Source0:        %{name}-%{version}.tar.bz2
Patch0:         %{name}-0.23.2-strncat.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Cadaver is a command-line WebDAV client for Unix. It supports file
upload, download, on-screen display, namespace operations (move and
copy), collection creation and deletion, and locking operations.

%prep
%setup -q
%patch0

%build
%{suse_update_config -f}
gettextize --force
aclocal -I m4 -I m4/neon
autoconf --force
autoheader --force
export LDFLAGS=-pie CFLAGS="$RPM_OPT_FLAGS -fPIE -Wall"
%configure \
    --with-ssl \
    --with-libxml2 
make %{?jobs:-j %jobs}

%install
make "DESTDIR=$RPM_BUILD_ROOT" install
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc BUGS COPYING ChangeLog FAQ INTEROP NEWS README THANKS TODO
%doc %{_mandir}/man?/*
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by