diff --git a/.cvsignore b/.cvsignore index e69de29..b59fb01 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cpdup-1.07.tgz diff --git a/cpdup.spec b/cpdup.spec new file mode 100644 index 0000000..78b5eb2 --- /dev/null +++ b/cpdup.spec @@ -0,0 +1,64 @@ +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 - 1.07-1 +- Initial Fedora package + diff --git a/sources b/sources index e69de29..0c49f47 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f9d132f5a81d3f38b53267ae7af24a8 cpdup-1.07.tgz