Blob Blame History Raw
Name:           cpdup
Version:        1.07
Release:        1%{?dist}
Summary:        Filesystem mirroring utility

Group:          Applications/Archiving
License:        BSD
URL:            http://apollo.backplane.com/FreeSrc/
Source0:        http://apollo.backplane.com/FreeSrc/cpdup-1.07.tgz
Source1:        Makefile.linux
Patch1:         cpdup-1.07-utimes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

ExcludeArch:    x86_64
ExcludeArch:    ppc64

#BuildRequires:  
#Requires:       

%description
The cpdup utility makes an exact mirror copy of the source in the
destination, creating and deleting files and directories as necessary.
UTimes, hardlinks, softlinks, devices, permissions, and flags are
mirrored.  By default, cpdup asks for confirmation if any file or
directory needs to be removed from the destination and does not copy
files which it believes to have already been synchronized (by
observing that the source and destination file’s size and mtimes
match).  cpdup does not cross mount points in either the source or the
destination.  As a safety measure, cpdup refuses to replace a
destination directory with a file.


%prep
%setup -q -n %{name}
%patch1 -p1 -b .utimes
rm md5.c


%build
# configure
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" -f %{SOURCE1}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT -f %{SOURCE1}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc 
%{_bindir}/*
%{_mandir}/man1/*



%changelog
* Thu Feb 28 2008 Michel Salim <michel.sylvan@gmail.com> - 1.07-1
- Initial Fedora package