/
cadaver.spec
57 lines (46 loc) · 1.35 KB
/
cadaver.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Summary: Command-line WebDAV client
Name: cadaver
Version: 0.23.3
Release: 4
License: GPLv2+
Group: Networking/File transfer
URL: http://www.webdav.org/cadaver/
Source0: http://www.webdav.org/cadaver/%{name}-%{version}.tar.gz
Source1: http://www.webdav.org/cadaver/%{name}-%{version}.tar.gz.asc
Patch0: cadaver-0.23.3-enable-build-with-neon-0.30.patch
Patch1: cadaver-0.23.3-update-and-fix-autofoo-mess.patch
Patch2: cadaver-0.23.2-strncat.patch
BuildRequires: gettext-devel
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
BuildRequires: readline-devel
%description
A command-line WebDAV client. Supports file upload, download,
on-screen display, name-space operations (move/copy), collection
creation and deletion, and locking operations.
%prep
%setup -q
%patch0 -p1 -b .neon0.30~
%patch1 -p1 -b .autofoo~
%patch2 -p0 -b .strncat~
autoreconf -fiv
%build
%configure --with-neon=%{_prefix} \
--with-ssl \
--with-libxml2 \
--with-ca-bundle=%{_sysconfdir}/ssl/certs/ca-bundle.crt \
--enable-threads=posix \
--enable-threadsafe-ssl=posix
%make
%install
%makeinstall_std
%find_lang %{name}
%files -f %{name}.lang
%{_bindir}/*
%{_mandir}/man1/*
%defattr(644,root,root,755)
%doc NEWS TODO FAQ README ChangeLog