From 7e8d565bac8655319ba6627463111ee10fd3bb29 Mon Sep 17 00:00:00 2001 From: Stefano Cotta Ramusino Date: Fri, 5 Jan 2024 21:37:14 +0100 Subject: [PATCH] package created by autospec fixed bug 580609 [release 0.9.2-1mamba;Mon Nov 29 2010] --- README.md | 2 ++ curlftpfs-0.9.2-file_upload.patch | 10 +++++++ curlftpfs.spec | 49 +++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 curlftpfs-0.9.2-file_upload.patch create mode 100644 curlftpfs.spec diff --git a/README.md b/README.md index fabce0e..f17abfe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # curlftpfs +CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl. + diff --git a/curlftpfs-0.9.2-file_upload.patch b/curlftpfs-0.9.2-file_upload.patch new file mode 100644 index 0000000..d298b45 --- /dev/null +++ b/curlftpfs-0.9.2-file_upload.patch @@ -0,0 +1,10 @@ +--- ftpfs.c.orig 2008-04-30 01:05:47.000000000 +0200 ++++ ftpfs.c 2010-05-21 13:01:42.569006163 +0200 +@@ -503,7 +503,6 @@ static void *ftpfs_write_thread(void *da + + curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path); + curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1); +- curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1); + curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg); + curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh); + curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1); diff --git a/curlftpfs.spec b/curlftpfs.spec new file mode 100644 index 0000000..8574955 --- /dev/null +++ b/curlftpfs.spec @@ -0,0 +1,49 @@ +Name: curlftpfs +Version: 0.9.2 +Release: 1mamba +Summary: A FTP filesystem based on cURL and FUSE +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://curlftpfs.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/curlftpfs/curlftpfs/%{version}/curlftpfs-%{version}.tar.gz +Patch: curlftpfs-0.9.2-file_upload.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcurl-devel +BuildRequires: libfuse-devel +BuildRequires: libglib-devel +## AUTOBUILDREQ-END +Requires: fuse +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl. + +%prep +%setup -q +%patch + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/curlftpfs +%{_mandir}/man1/curlftpfs.1.gz +%doc COPYING ChangeLog README + +%changelog +* Mon Nov 29 2010 Stefano Cotta Ramusino 0.9.2-1mamba +- package created by autospec +- fixed bug 580609