SHA256
1
0
forked from pool/ktorrent
OBS User unknown 2008-05-16 12:28:46 +00:00 committed by Git OBS Bridge
parent d18ca6d1dc
commit 954f26a072
3 changed files with 32 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 15 15:33:22 CEST 2008 - dmueller@suse.de
- fix largefile support (bnc#386475)
- add missing runtime dependencies, remove deprected macro
-------------------------------------------------------------------
Fri Apr 25 19:23:53 CEST 2008 - stbinner@suse.de

View File

@ -21,15 +21,17 @@ License: GPL v2 or later
Group: Productivity/Networking/File-Sharing
Summary: KDE BitTorrent Client
Version: 3.0.2
Release: 1
Release: 13
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define rversion %version
Source: %{name}-%{rversion}.tar.bz2
Patch2: remove-links.diff
Patch4: no-geoip-db.diff
Patch5: largefile-support-806381.diff
%if %suse_version > 1020
Requires: %{name}-lang = %{version}
%endif
%kde4_runtime_requires
%description
Torrent is a BitTorrent program for KDE. Its main features are: *
@ -68,6 +70,7 @@ Authors:
%setup -q -n %{name}-%{version}
%patch2
%patch4
%patch5
%build
%cmake_kde4 -d build -- -DENABLE_DHT_SUPPORT=false
@ -85,12 +88,9 @@ Authors:
%pre
%run_ldconfig
%post
%run_ldconfig
%post -p /sbin/ldconfig
%postun
%run_ldconfig
%if %suse_version > 1020
%postun -p /sbin/ldconfig%if %suse_version > 1020
%files lang -f build/%name.lang
@ -149,6 +149,9 @@ Authors:
/usr/include/libbtcore
%changelog
* Thu May 15 2008 dmueller@suse.de
- fix largefile support (bnc#386475)
- add missing runtime dependencies, remove deprected macro
* Fri Apr 25 2008 stbinner@suse.de
- update to 3.0.2: several crash and other bug fixes
* Tue Mar 25 2008 stbinner@suse.de

View File

@ -0,0 +1,17 @@
--- libbtcore/diskio/cachefile.cpp
+++ libbtcore/diskio/cachefile.cpp
@@ -484,9 +484,13 @@ namespace bt
openFile(READ);
close_again = true;
}
-
+#ifdef HAVE_FSTAT64
+ struct stat64 sb;
+ if (fstat64(fd,&sb) == 0)
+#else
struct stat sb;
if (fstat(fd,&sb) == 0)
+#endif
{
ret = (Uint64)sb.st_blocks * 512;
}