diff --git a/zsync-0.6.2.tar.bz2 b/zsync-0.6.2.tar.bz2 new file mode 100644 index 0000000..839b4f3 Binary files /dev/null and b/zsync-0.6.2.tar.bz2 differ diff --git a/zsync.spec b/zsync.spec index d448d51..13d5440 100644 --- a/zsync.spec +++ b/zsync.spec @@ -1,55 +1,48 @@ -%define name zsync -%define version 1.0 -%define release 1 -Summary: This is what zsync does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Name: zsync +Summary: RSYNC over HTTP +URL: https://zsync.moria.org.uk/ +Group: Networking +License: Artistic +Version: 0.6.2 +Release: 4.1 +Source0: https://zsync.moria.org.uk/download/zsync-%{version}.tar.bz2 +BuildRequires: autoconf automake +BuildRequires: make +BuildRequires: gcc %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. -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. - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +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. +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. %prep - %setup -q %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 -rm -rf $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 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +%{__make} %{_smp_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" -%clean -cd .. -rm -rf %{name}-%{version} +%files +%{_datadir}/doc/%{name} +%{_bindir}/* +%{_mandir}/man1/* -%pre - -%preun - -%post - -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) +%changelog +* Wed Sep 25 2013 Wei-Lun Chao - 0.6.2 +- Rebuilt for Fedora