File sitecopy.spec of Package sitecopy

# spec file for package sitecopy (Version 0.16.6)
# 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

# norootforbuild

Name:           sitecopy
BuildRequires:  fdupes libexpat-devel neon-devel openssl-devel pkgconfig
Summary:        Local to Remote Website Synchronizer
Version:        0.16.6
Release:        26
Requires:       %{name}-lang = %{version}
License:        GPLv2+
Group:          Productivity/Networking/Web/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         sitecopy-support-neon-0.29.diff

Sitecopy is useful for copying locally stored web sites to remote web
servers. The program will upload files which have changed locally to
the server and delete files from the server which have been removed
locally to keep the remote site synchronized with the local site, all
with a single command.	The aim is to remove the hassle of uploading
and deleting individual files using an FTP client. FTP, WebDAV, and
HTTP-based authoring servers are supported.

%setup -q
%patch0 -p1

./configure \
	--prefix=/usr \
	--mandir=%{_mandir} \
	--with-expat \
make %{?jobs:-j%jobs}

OMG=`mktemp -u /tmp/$$.%{name}-install-tmp.XXXXXXXXXX`
make DESTDIR=$RPM_BUILD_ROOT docdir=$OMG pkgdatadir=$OMG install MANLANGS=
rm -rf examples
mkdir  examples
cp -avL doc/examplerc doc/ examples
%find_lang %name


%defattr(-, root, root)
%doc examples

%files lang -f %{name}.lang