|
|
5bd8b94 |
Name: cpdup
|
|
|
e6c4c16 |
Version: 1.17
|
|
|
c4c63c6 |
Release: 4%{?dist}
|
|
|
5bd8b94 |
Summary: Filesystem mirroring utility
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
Group: Applications/Archiving
|
|
|
5bd8b94 |
License: BSD
|
|
|
5bd8b94 |
URL: http://apollo.backplane.com/FreeSrc/
|
|
|
9990304 |
Source0: http://apollo.backplane.com/FreeSrc/cpdup-%{version}.tgz
|
|
|
e6c4c16 |
Source1: strlcpy.c
|
|
|
e6c4c16 |
Source2: Makefile.linux
|
|
|
dde63ca |
Patch0: cpdup-1.14-gcc44.patch
|
|
|
e6c4c16 |
Patch1: cpdup-1.17-typos.patch
|
|
|
e6c4c16 |
Patch2: cpdup-1.17-glibc.patch
|
|
|
5bd8b94 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
#BuildRequires:
|
|
|
5bd8b94 |
#Requires:
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%description
|
|
|
5bd8b94 |
The cpdup utility makes an exact mirror copy of the source in the
|
|
|
5bd8b94 |
destination, creating and deleting files and directories as necessary.
|
|
|
5bd8b94 |
UTimes, hardlinks, softlinks, devices, permissions, and flags are
|
|
|
5bd8b94 |
mirrored. By default, cpdup asks for confirmation if any file or
|
|
|
5bd8b94 |
directory needs to be removed from the destination and does not copy
|
|
|
5bd8b94 |
files which it believes to have already been synchronized (by
|
|
|
5bd8b94 |
observing that the source and destination file’s size and mtimes
|
|
|
5bd8b94 |
match). cpdup does not cross mount points in either the source or the
|
|
|
5bd8b94 |
destination. As a safety measure, cpdup refuses to replace a
|
|
|
5bd8b94 |
destination directory with a file.
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%prep
|
|
|
5bd8b94 |
%setup -q -n %{name}
|
|
|
e6c4c16 |
cp -p %{SOURCE1} .
|
|
|
dde63ca |
%patch0 -p1 -b .gcc44
|
|
|
e6c4c16 |
%patch1 -p1 -b .typos
|
|
|
e6c4c16 |
%patch2 -p1 -b .glibc
|
|
|
e6c4c16 |
# we don't want this to get compiled
|
|
|
e6c4c16 |
mv md5.c{,.off}
|
|
|
e6c4c16 |
# make scripts non-executable for cleanliness
|
|
|
e6c4c16 |
chmod -x scripts/*
|
|
|
e6c4c16 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%build
|
|
|
e6c4c16 |
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" -f %{SOURCE2}
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%install
|
|
|
5bd8b94 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e6c4c16 |
make install DESTDIR=$RPM_BUILD_ROOT -f %{SOURCE2}
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%clean
|
|
|
5bd8b94 |
rm -rf $RPM_BUILD_ROOT
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%files
|
|
|
5bd8b94 |
%defattr(-,root,root,-)
|
|
|
e6c4c16 |
%doc BACKUPS PORTING scripts
|
|
|
5bd8b94 |
%{_bindir}/*
|
|
|
5bd8b94 |
%{_mandir}/man1/*
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
|
|
|
5bd8b94 |
%changelog
|
|
|
c4c63c6 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-4
|
|
|
c4c63c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c4c63c6 |
|
|
|
7d0ebe9 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-3
|
|
|
7d0ebe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
7d0ebe9 |
|
|
|
468107a |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-2
|
|
|
468107a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
468107a |
|
|
|
e6c4c16 |
* Tue Nov 2 2010 Michel Salim <salimma@fedoraproject.org> - 1.17-1
|
|
|
e6c4c16 |
- Update to 1.17
|
|
|
e6c4c16 |
|
|
|
dde63ca |
* Sat Aug 22 2009 Michel Salim <salimma@fedoraproject.org> - 1.14-1
|
|
|
dde63ca |
- Update to 1.14
|
|
|
dde63ca |
|
|
|
de81a0d |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
|
|
|
de81a0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
de81a0d |
|
|
|
e7e823b |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-3
|
|
|
e7e823b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
e7e823b |
|
|
|
56834ab |
* Wed Jun 11 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11-2
|
|
|
56834ab |
- Fix build problems with GLIBC on 64-bit archs
|
|
|
56834ab |
|
|
|
9990304 |
* Thu Jun 5 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11-1
|
|
|
9990304 |
- Update to 1.11
|
|
|
9990304 |
|
|
|
9990304 |
* Thu Feb 28 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.07-1
|
|
|
5bd8b94 |
- Initial Fedora package
|
|
|
5bd8b94 |
|