3 %bcond_without static_libs # don't build static libraries
4 %bcond_without kerberos5 # don't build Kerberos V support
6 Summary: An HTTP and WebDAV client library
7 Summary(pl.UTF-8): Biblioteka kliencka HTTP i WebDAV
13 Source0: http://www.webdav.org/neon/%{name}-%{version}.tar.gz
14 # Source0-md5: 252578ed555552b71d15909641484951
15 URL: http://www.webdav.org/neon/
16 BuildRequires: autoconf >= 2.58
17 BuildRequires: automake
18 %{?with_kerberos5:BuildRequires: heimdal-devel}
19 BuildRequires: libtool >= 2:2.2
20 BuildRequires: libxml2-devel
21 BuildRequires: openssl-devel >= 0.9.7d
22 BuildRequires: zlib-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 neon is an HTTP and WebDAV client library, with a C interface.
28 - High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD etc).
29 - Low-level interface to HTTP request handling, to allow implementing
31 - HTTP/1.1 and HTTP/1.0 persistent connections.
32 - RFC2617 basic and digest authentication (including auth-int,
34 - Proxy support (including basic/digest authentication).
35 - Generic WebDAV 207 XML response handling mechanism.
36 - XML parsing using the expat or libxml parsers.
37 - Easy generation of error messages from 207 error responses.
38 - WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL.
39 - WebDAV metadata support: set and remove properties, query any set of
40 properties (PROPPATCH/PROPFIND).
42 %description -l pl.UTF-8
43 neon to biblioteka kliencka HTTP i WebDAV z interfejsem w C.
45 - wysokopoziomowy interfejs do metod HTTP i WebDAV (PUT, GET, HEAD...),
46 - niskopziomowy interfejs to obsługi żądań HTTP pozwalający łatwo
47 implementować nowe metody,
48 - stałe połączenia HTTP/1.1 i HTTP/1.0,
49 - autentykacja podstawowa i skrótem RFC-2617 (auth-int, md5-sess...),
50 - obsługa proxy (w tym autentykacja podstawowa i skrótem),
51 - mechanizm obsługi odpowiedzi WebDAV 207 XML,
52 - analiza składniowa XML przy pomocy expat lub libxml,
53 - proste generowanie komunikatów błędów dla odpowiedzi 207,
54 - manipulowanie zasobami WebDAV: MOVE, COPY, DELETE, MKCOL,
55 - obsługa metadanych WebDAV: ustawianie i usuwanie atrybutów,
56 sprawdzanie dowolnego zbioru atrybutów (PROPPATCH/PROPFIND).
59 Summary: Header files for neon
60 Summary(pl.UTF-8): Pliki nagłówkowe neon
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 %{?with_kerberos5:Requires: heimdal-devel}
64 Requires: libxml2-devel
65 Requires: openssl-devel >= 0.9.7c
68 C header files for the neon library.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe dla biblioteki neon.
74 Summary: Static libraries for neon
75 Summary(pl.UTF-8): Biblioteki statyczne neon
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 Static neon libraries.
82 %description static -l pl.UTF-8
83 Statyczne biblioteki neon.
89 %{__libtoolize} --install
90 %{__aclocal} -I macros
94 --enable-threadsafe-ssl=posix \
96 %{!?with_static_libs:--enable-static=no} \
97 %{!?with_kerberos5:--without-gssapi} \
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man1,%{_mandir}/man3}
107 DESTDIR=$RPM_BUILD_ROOT
109 mv -f doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
110 mv -f doc/man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
120 %files -f %{name}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO doc/*.txt doc/html/*
123 %attr(755,root,root) %{_libdir}/libneon.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libneon.so.27
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/neon-config
129 %attr(755,root,root) %{_libdir}/libneon.so
130 %{_libdir}/libneon.la
132 %{_pkgconfigdir}/neon.pc
133 %{_mandir}/man1/neon-config.1*
134 %{_mandir}/man3/ne_*.3*
135 %{_mandir}/man3/neon.3*
137 %if %{with static_libs}
139 %defattr(644,root,root,755)