3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
5 %bcond_without kerberos5 # don't build Kerberos V support
6 %bcond_without libproxy # don't build libproxy support
7 %bcond_without pakchois # don't build pakchois-based PKCS#11 support
9 Summary: An HTTP and WebDAV client library
10 Summary(pl.UTF-8): Biblioteka kliencka HTTP i WebDAV
16 Source0: http://www.webdav.org/neon/%{name}-%{version}.tar.gz
17 # Source0-md5: 591e0c82e6979e7e615211b386b8f6bc
18 URL: http://www.webdav.org/neon/
19 BuildRequires: autoconf >= 2.58
20 BuildRequires: automake
21 %{?with_kerberos5:BuildRequires: heimdal-devel}
22 %{?with_libproxy:BuildRequires: libproxy-devel}
23 BuildRequires: libtool >= 2:2.2
24 BuildRequires: libxml2-devel
25 BuildRequires: openssl-devel >= 0.9.7d
26 %{?with_pakchois:BuildRequires: pakchois-devel}
27 BuildRequires: pkgconfig
28 BuildRequires: zlib-devel
29 %requires_eq_to openssl openssl-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 neon is an HTTP and WebDAV client library, with a C interface.
35 - High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD
37 - Low-level interface to HTTP request handling, to allow implementing
39 - HTTP/1.1 and HTTP/1.0 persistent connections.
40 - RFC2617 basic and digest authentication (including auth-int,
42 - Proxy support (including basic/digest authentication).
43 - Generic WebDAV 207 XML response handling mechanism.
44 - XML parsing using the expat or libxml parsers.
45 - Easy generation of error messages from 207 error responses.
46 - WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL.
47 - WebDAV metadata support: set and remove properties, query any set of
48 properties (PROPPATCH/PROPFIND).
50 %description -l pl.UTF-8
51 neon to biblioteka kliencka HTTP i WebDAV z interfejsem w C.
53 - wysokopoziomowy interfejs do metod HTTP i WebDAV (PUT, GET,
55 - niskopoziomowy interfejs do obsługi żądań HTTP pozwalający łatwo
56 implementować nowe metody,
57 - stałe połączenia HTTP/1.1 i HTTP/1.0,
58 - uwierzytelnianie podstawowe (basic) i skrótem RFC-2617 (auth-int,
60 - obsługa proxy (w tym uwierzytelnianie podstawowe i skrótem),
61 - mechanizm obsługi odpowiedzi WebDAV 207 XML,
62 - analiza składniowa XML przy pomocy expat lub libxml,
63 - proste generowanie komunikatów błędów dla odpowiedzi 207,
64 - manipulowanie zasobami WebDAV: MOVE, COPY, DELETE, MKCOL,
65 - obsługa metadanych WebDAV: ustawianie i usuwanie atrybutów,
66 sprawdzanie dowolnego zbioru atrybutów (PROPPATCH/PROPFIND).
69 Summary: Header files for neon
70 Summary(pl.UTF-8): Pliki nagłówkowe neon
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
73 %{?with_kerberos5:Requires: heimdal-devel}
74 %{?with_libproxy:Requires: libproxy-devel}
75 %{?with_pakchois:Requires: pakchois-devel}
76 Requires: libxml2-devel
77 Requires: openssl-devel >= 0.9.7c
80 C header files for the neon library.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe dla biblioteki neon.
86 Summary: Static libraries for neon
87 Summary(pl.UTF-8): Biblioteki statyczne neon
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
92 Static neon libraries.
94 %description static -l pl.UTF-8
95 Statyczne biblioteki neon.
98 Summary: neon API documentation
99 Summary(pl.UTF-8): Dokumentacja API biblioteki neon
103 API and internal documentation for neon library.
105 %description apidocs -l pl.UTF-8
106 Dokumentacja API biblioteki neon.
112 %{__libtoolize} --install
113 %{__aclocal} -I macros
117 --enable-threadsafe-ssl=posix \
119 --with-ca-bundle=/etc/certs/ca-certificates.crt \
120 --with%{!?with_pakchois:out}-pakchois \
121 %{!?with_static_libs:--disable-static} \
122 %{!?with_kerberos5:--without-gssapi} \
123 %{!?with_libproxy:--without-libproxy} \
129 rm -rf $RPM_BUILD_ROOT
132 DESTDIR=$RPM_BUILD_ROOT
134 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
135 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
140 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
145 %files -f %{name}.lang
146 %defattr(644,root,root,755)
147 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
148 %attr(755,root,root) %{_libdir}/libneon.so.*.*.*
149 %attr(755,root,root) %ghost %{_libdir}/libneon.so.27
152 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_bindir}/neon-config
155 %attr(755,root,root) %{_libdir}/libneon.so
157 %{_pkgconfigdir}/neon.pc
158 %{_mandir}/man1/neon-config.1*
159 %{_mandir}/man3/ne_*.3*
160 %{_mandir}/man3/neon.3*
162 %if %{with static_libs}
164 %defattr(644,root,root,755)
170 %defattr(644,root,root,755)