+++ /dev/null
-diff -ur avfs-1.0.0.old/avfscoda/dispatch.c avfs-1.0.0/avfscoda/dispatch.c
---- avfs-1.0.0.old/avfscoda/dispatch.c 2012-03-22 18:29:17.000000000 +0000
-+++ avfs-1.0.0/avfscoda/dispatch.c 2012-03-22 18:31:09.000000000 +0000
-@@ -147,7 +147,7 @@
- va_end(ap);
-
- buf[LOGMSG_SIZE] = '\0';
-- syslog(LOG_INFO, buf);
-+ syslog(LOG_INFO, "%s", buf);
- log(buf);
- }
-
-Only in avfs-1.0.0/avfscoda: dispatch.c~
-diff -ur avfs-1.0.0.old/modules/urar.c avfs-1.0.0/modules/urar.c
---- avfs-1.0.0.old/modules/urar.c 2012-03-22 18:29:17.000000000 +0000
-+++ avfs-1.0.0/modules/urar.c 2012-03-22 18:30:33.000000000 +0000
-@@ -587,7 +587,7 @@
- if(res < 0)
- return res;
-
-- fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC);
-+ fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC,0644);
- if(fd == -1) {
- res = -errno;
- av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile,
-Only in avfs-1.0.0/modules: urar.c~
-diff -ur avfs-1.0.0.old/src/sysdeps.c avfs-1.0.0/src/sysdeps.c
---- avfs-1.0.0.old/src/sysdeps.c 2012-03-22 18:29:17.000000000 +0000
-+++ avfs-1.0.0/src/sysdeps.c 2012-03-22 18:31:34.000000000 +0000
-@@ -209,7 +209,7 @@
- va_end(ap);
-
- if(logfile == NULL)
-- syslog(LOG_INFO, buf);
-+ syslog(LOG_INFO, "%s", buf);
- else
- filelog(buf);
- AV_UNLOCK(loglock);
-Only in avfs-1.0.0/src: sysdeps.c~
---- avfs-1.0.0/libneon/hip_xml.c.old 2012-03-23 15:36:04.000000000 +0000
-+++ avfs-1.0.0/libneon/hip_xml.c 2012-03-23 15:36:20.000000000 +0000
-@@ -40,7 +40,7 @@
-
- /******** Expat ***********/
-
--# include "xmlparse.h"
-+# include "expat.h"
- typedef XML_Char hip_xml_char;
-
- #else /* not HAVE_EXPAT */
Summary: AVFS - A Virtual Filesystem
Summary(pl.UTF-8): AVFS - wirtualny system plików
Name: avfs
-Version: 1.0.0
-Release: 1
-License: GPL
+Version: 1.1.4
+Release: 2
+License: GPL v2+
Group: Libraries
-Source0: http://dl.sourceforge.net/avf/%{name}-%{version}.tar.gz
-# Source0-md5: be6dd4417c3e96a294f1539ad22fddc9
-Patch0: %{name}-unrar.c.patch
+Source0: https://downloads.sourceforge.net/avf/%{name}-%{version}.tar.bz2
+# Source0-md5: c333462d744aeab2e6bee7a1af02350e
URL: http://sourceforge.net/projects/avf/
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
-BuildRequires: libfuse-devel >= 0:2.4
-#BuildRequires: neon-devel >= 0.12
-#BuildRequires: neon-devel < 0.13
-BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: bzip2-devel
+BuildRequires: libfuse-devel >= 2.6.0
+BuildRequires: libtool
+BuildRequires: lzlib-devel
+BuildRequires: openssl-devel
+BuildRequires: pkgconfig
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
+BuildRequires: zstd-devel
+Requires: libfuse >= 2.6.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p1
%build
-cp -f /usr/share/automake/config.* .
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
+ EMACS=%{_bindir}/emacs \
+ PERL=%{_bindir}/perl \
+ ZIP=%{_bindir}/zip \
+ UNZIP=%{_bindir}/unzip \
--disable-avfscoda \
+ --disable-dav \
--enable-fuse \
--enable-library \
- --with-ssl
+ --with-system-bzlib \
+ --with-system-zlib \
+ --with-xz \
+ --with-zstd
# Comment:
# I've no idea how to build this package with dav option with expat-devel --blekot
%{__make}
%attr(755,root,root) %{_libdir}/libavfs.so
%{_libdir}/libavfs.la
%{_includedir}/*.h
+%{_pkgconfigdir}/avfs.pc
%files static
%defattr(644,root,root,755)