File ftpcopy.spec of Package ftpcopy

#
# spec file for package ftpcopy
#
# Copyright (c) 2011 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/
#

Name:           ftpcopy
Version:        0.6.7
Release:        0
License:        GPL-2.0
Summary:        FTP Mirroring Tool
Url:            http://www.ohse.de/uwe/ftpcopy.html
Group:          Productivity/Networking/Web/Utilities
Source:         http://www.ohse.de/uwe/ftpcopy/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ftpcopy is a small mirror-like utility to copy files or directory trees
with FTP. ftpcopy understands EPLF and traditional listing formats.

%prep
%setup -qn web

%build
cd %{name}-%{version}
export CFLAGS="%{optflags}"
# Don't run parallel make -- it doesn't work.
make

%install
cd %{name}-%{version}
install -d 0755 %{buildroot}{%{_bindir},%{_mandir}/man1}
install -m 0755 command/* %{buildroot}/%{_bindir}/
install -pm 0644 doc/* %{buildroot}%{_mandir}/man1/

%files
%defattr(-,root,root,-)
%{_bindir}/ftp*
%doc %{_mandir}/man?/*

%changelog
openSUSE Build Service is sponsored by