* Wed Sep 25 2013 Wei-Lun Chao <bluebat@member.fsf.org> - 0.6.2

- Rebuilt for Fedora
This commit is contained in:
Jean-Philippe Pialasse 2025-02-06 21:56:10 -05:00
parent c2c26e336a
commit ab1c4c05a7
2 changed files with 37 additions and 44 deletions

BIN
zsync-0.6.2.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,55 +1,48 @@
%define name zsync Name: zsync
%define version 1.0 Summary: RSYNC over HTTP
%define release 1 URL: https://zsync.moria.org.uk/
Summary: This is what zsync does. Group: Networking
Name: %{name} License: Artistic
Version: %{version} Version: 0.6.2
Release: %{release}%{?dist} Release: 4.1
Source: %{name}-%{version}.tar.gz Source0: https://zsync.moria.org.uk/download/zsync-%{version}.tar.bz2
License: GNU GPL version 2 BuildRequires: autoconf automake
Group: SMEserver/addon BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: gcc
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRequires: smeserver-devtools
Requires: smeserver-release >= 11.0
AutoReqProv: no
%description %description
zsync is a file transfer program. It allows you to download a file from a remote server, where you have a copy of an older version of the file on your computer already. zsync downloads only the new parts of the file. It uses the same algorithm as rsync. zsync is a file transfer program. It allows you to download a
However, where rsync is designed for synchronising data from one computer to another within an organisation, zsync is designed for file distribution, with one file on a server to be distributed to thousands of downloaders. zsync requires no special server software just a web server to host the files and imposes no extra load on the server, making it ideal for large scale file distribution. file from a remote server, where you have a copy of an older
version of the file on your computer already. zsync downloads only
%changelog the new parts of the file. It uses the same algorithm as rsync.
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme However, where rsync is designed for synchronising data from one
- Initial code - create RPM [SME:99999] computer to another within an organisation, zsync is designed for
file distribution, with one file on a server to be distributed to
thousands of downloaders. zsync requires no special server software
just a web server to host the files and imposes no extra load on the
server, making it ideal for large scale file distribution.
%prep %prep
%setup -q %setup -q
%build %build
autoreconf -ifv
#endian="-DLITTLE_ENDIAN=0 -DBIG_ENDIAN=1 -DBYTE_ORDER=0"
CPPFLAGS="%{optflags} $endian" \
LDFLAGS="%{optflags}" \
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir}
%{__make} %{_smp_mflags -O}
%install %install
rm -rf $RPM_BUILD_ROOT %{__make} %{_smp_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
#echo "%doc COPYING" >> %{name}-%{version}-filelist
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \
%clean %files
cd .. %{_datadir}/doc/%{name}
rm -rf %{name}-%{version} %{_bindir}/*
%{_mandir}/man1/*
%pre %changelog
* Wed Sep 25 2013 Wei-Lun Chao <bluebat@member.fsf.org> - 0.6.2
%preun - Rebuilt for Fedora
%post
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)