File mirror.spec of Package mirror

#
# spec file for package mirror
#
# Copyright (c) 2013 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:           mirror
Requires:       perl = %{perl_version}
Version:        2.9
Release:        0
Summary:        Perl Scripts for Mirroring FTP Servers
License:        SUSE-mirror
Group:          Productivity/Networking/Web/Utilities
Url:            http://sunsite.org.uk/packages/mirror/
Source:         ftp://sunsite.org.uk/packages/mirror/%{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.patch
Patch1:         %{name}-%{version}.ftp-ls-timeout.patch
Patch2:         %{name}-%{version}.y2k-fix.patch
Patch3:         %{name}-%{version}.name_map-default.patch
Patch4:         %{name}-%{version}.gzip.patch
Patch5:         mirror-exec-path.dif
Patch6:         dont-build-as-root.diff
Patch7:         mirror-timelocal.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Documentation: "man mirror" and "man mm".



Authors:
--------
    Lee McLoughlin <lmjm@doc.ic.ac.uk>

%prep
%setup -c
%patch
%patch1
%patch2
%patch3
%patch4
%patch5 -p0
%patch6
%patch7

%build

%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{perl_vendorlib}
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
make "DESTDIR=$RPM_BUILD_ROOT" install PLDIR=%{perl_vendorlib}
cd $RPM_BUILD_ROOT/usr/bin/
ln -sf mirror-master mm

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc *.txt *.html mirror-on-dusk.gif mirror.defaults
%{perl_vendorlib}/*
/usr/bin/*
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by