[rtorrent] - document fallocate option (# 466548) - send patches upstream, link to bug reports in spec file
Michel Alexandre Salim
salimma at fedoraproject.org
Fri Oct 15 09:01:40 UTC 2010
commit 921f6c822d6cef25089d5501226d409114b84cd9
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Fri Oct 15 11:01:25 2010 +0200
- document fallocate option (# 466548)
- send patches upstream, link to bug reports in spec file
rtorrent-0.8.6-fallocate.patch | 12 ++++++++++++
rtorrent.spec | 16 +++++++++++-----
2 files changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/rtorrent-0.8.6-fallocate.patch b/rtorrent-0.8.6-fallocate.patch
new file mode 100644
index 0000000..10ecda4
--- /dev/null
+++ b/rtorrent-0.8.6-fallocate.patch
@@ -0,0 +1,12 @@
+--- rtorrent-0.8.6/doc/rtorrent.rc.fallocate 2009-11-12 09:03:41.000000000 +0100
++++ rtorrent-0.8.6/doc/rtorrent.rc 2010-10-15 10:47:40.760491844 +0200
+@@ -106,3 +106,9 @@
+ # before forcing. Overworked systems might need lower values to get a
+ # decent hash checking rate.
+ #hash_max_tries = 10
++
++# preallocate files; reduces defragmentation on filesystems that support this
++# e.g. ext4, btrfs
++# DO NOT enable on ext3!
++# see http://libtorrent.rakshasa.no/ticket/460 for details
++# system.file_allocate.set = yes
diff --git a/rtorrent.spec b/rtorrent.spec
index 99a441d..cb3e5fd 100644
--- a/rtorrent.spec
+++ b/rtorrent.spec
@@ -3,11 +3,11 @@ Name: rtorrent
License: GPLv2+ with exceptions
Group: Applications/Internet
Version: 0.8.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: BitTorrent client based on libtorrent
URL: http://rtorrent.rakshasa.no/
Source0: http://libtorrent.rakshasa.no/downloads/rtorrent-%{version}.tar.gz
-Source1: rtorrent.rc.example
+Patch0: rtorrent-0.8.6-fallocate.patch
Patch1: rtorrent.libxmlrpcFTBFS.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -28,10 +28,12 @@ of directories for torrent files to seed and/or download.
%prep
%setup -q
-%patch1 -p1
+# http://libtorrent.rakshasa.no/ticket/2326
+%patch0 -p1 -b .fallocate
+# http://libtorrent.rakshasa.no/ticket/2327
+%patch1 -p1 -b .ftbfs
%build
-install -m 644 %{SOURCE1} .
%configure --with-xmlrpc-c
make %{?_smp_mflags}
@@ -44,11 +46,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc AUTHORS COPYING INSTALL README TODO rtorrent.rc.example
+%doc AUTHORS COPYING INSTALL README TODO doc/rtorrent.rc
%{_bindir}/rtorrent
%{_mandir}/man1/rtorrent*
%changelog
+* Fri Oct 15 2010 Michel Salim <salimma at fedoraproject.org> - 0.8.6-4
+- document fallocate option (# 466548)
+- send patches upstream, link to bug reports in spec file
+
* Sun Feb 14 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.6-3
- fix FTBFS
More information about the scm-commits
mailing list