]> git.pld-linux.org Git - packages/neon.git/blame - neon.spec
- x32 rebuild
[packages/neon.git] / neon.spec
CommitLineData
d69a9291 1#
2# Conditional build:
38878d3d 3%bcond_without apidocs # do not build and package API docs
d69a9291 4%bcond_without static_libs # don't build static libraries
9065805f 5%bcond_without kerberos5 # don't build Kerberos V support
e0c5c301 6%bcond_without libproxy # don't build libproxy support
caa88408 7%bcond_without pakchois # don't build pakchois-based PKCS#11 support
38878d3d 8
94a59c75 9Summary: An HTTP and WebDAV client library
b690de02 10Summary(pl.UTF-8): Biblioteka kliencka HTTP i WebDAV
94a59c75 11Name: neon
b0463792 12Version: 0.30.1
a2506a33 13Release: 6
b8ab1935 14License: LGPL v2+
94a59c75 15Group: Libraries
94a59c75 16Source0: http://www.webdav.org/neon/%{name}-%{version}.tar.gz
b0463792 17# Source0-md5: 231adebe5c2f78fded3e3df6e958878e
769e704f 18URL: http://www.webdav.org/neon/
b8ab1935 19BuildRequires: autoconf >= 2.58
60170b09 20BuildRequires: automake
bb8183bd 21%{?with_kerberos5:BuildRequires: heimdal-devel}
e0c5c301 22%{?with_libproxy:BuildRequires: libproxy-devel}
f9ae6476 23BuildRequires: libtool >= 2:2.2
9dc601f3 24BuildRequires: libxml2-devel
fbe113ef 25BuildRequires: openssl-devel >= 0.9.7d
caa88408 26%{?with_pakchois:BuildRequires: pakchois-devel}
0eb136aa 27BuildRequires: pkgconfig
a8ebb846 28BuildRequires: zlib-devel
547f737b 29%requires_ge_to openssl openssl-devel
e914cc74 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94a59c75 31
32%description
33neon is an HTTP and WebDAV client library, with a C interface.
34Featuring:
882d452f 35 - High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD
36 etc).
94a59c75 37 - Low-level interface to HTTP request handling, to allow implementing
38 new methods easily.
b9b2c7f8 39 - HTTP/1.1 and HTTP/1.0 persistent connections.
94a59c75 40 - RFC2617 basic and digest authentication (including auth-int,
b9b2c7f8 41 md5-sess).
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.
94a59c75 46 - WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL.
47 - WebDAV metadata support: set and remove properties, query any set of
48 properties (PROPPATCH/PROPFIND).
49
daa7576e 50%description -l pl.UTF-8
769e704f 51neon to biblioteka kliencka HTTP i WebDAV z interfejsem w C.
daa7576e 52Możliwości:
882d452f 53 - wysokopoziomowy interfejs do metod HTTP i WebDAV (PUT, GET,
54 HEAD...),
4b31dd0e 55 - niskopoziomowy interfejs do obsługi żądań HTTP pozwalający łatwo
daa7576e
JR
56 implementować nowe metody,
57 - stałe połączenia HTTP/1.1 i HTTP/1.0,
4b31dd0e
JB
58 - uwierzytelnianie podstawowe (basic) i skrótem RFC-2617 (auth-int,
59 md5-sess...),
60 - obsługa proxy (w tym uwierzytelnianie podstawowe i skrótem),
daa7576e
JR
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,
b9b2c7f8 64 - manipulowanie zasobami WebDAV: MOVE, COPY, DELETE, MKCOL,
daa7576e
JR
65 - obsługa metadanych WebDAV: ustawianie i usuwanie atrybutów,
66 sprawdzanie dowolnego zbioru atrybutów (PROPPATCH/PROPFIND).
769e704f
JB
67
68%package devel
69Summary: Header files for neon
b690de02 70Summary(pl.UTF-8): Pliki nagłówkowe neon
769e704f 71Group: Development/Libraries
72e4cede 72Requires: %{name} = %{version}-%{release}
bb8183bd 73%{?with_kerberos5:Requires: heimdal-devel}
a3226741 74%{?with_libproxy:Requires: libproxy-devel}
caa88408 75%{?with_pakchois:Requires: pakchois-devel}
b45d8f35 76Requires: libxml2-devel
b00d07c4 77Requires: openssl-devel >= 0.9.7c
769e704f
JB
78
79%description devel
80C header files for the neon library.
81
daa7576e
JR
82%description devel -l pl.UTF-8
83Pliki nagłówkowe dla biblioteki neon.
769e704f
JB
84
85%package static
86Summary: Static libraries for neon
b690de02 87Summary(pl.UTF-8): Biblioteki statyczne neon
94a59c75 88Group: Development/Libraries
72e4cede 89Requires: %{name}-devel = %{version}-%{release}
94a59c75 90
769e704f
JB
91%description static
92Static neon libraries.
93
daa7576e 94%description static -l pl.UTF-8
769e704f 95Statyczne biblioteki neon.
94a59c75 96
38878d3d
ER
97%package apidocs
98Summary: neon API documentation
99Summary(pl.UTF-8): Dokumentacja API biblioteki neon
100Group: Documentation
95853333
ER
101%if "%{_rpmversion}" >= "5"
102BuildArch: noarch
103%endif
38878d3d
ER
104
105%description apidocs
106API and internal documentation for neon library.
107
108%description apidocs -l pl.UTF-8
109Dokumentacja API biblioteki neon.
110
94a59c75 111%prep
112%setup -q
113
114%build
318af41d 115%{__libtoolize} --install
387c948a 116%{__aclocal} -I macros
45b289d5 117%{__autoconf}
9dc601f3 118%configure \
bbe4098c 119 --with-ssl=openssl \
3aeb853f 120 --enable-threadsafe-ssl=posix \
9dc601f3 121 --enable-shared \
bbe4098c 122 --with-ca-bundle=/etc/certs/ca-certificates.crt \
caa88408 123 --with%{!?with_pakchois:out}-pakchois \
df50a546 124 %{!?with_static_libs:--disable-static} \
9065805f 125 %{!?with_kerberos5:--without-gssapi} \
e0c5c301 126 %{!?with_libproxy:--without-libproxy} \
9dc601f3
PG
127 --with-libxml2
128
94a59c75 129%{__make}
130
131%install
132rm -rf $RPM_BUILD_ROOT
769e704f 133
c8dbfeab
JB
134%{__make} install \
135 DESTDIR=$RPM_BUILD_ROOT
94a59c75 136
9dc179f0
JP
137%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
138%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
caa88408 139
e80eb8df 140%find_lang %{name}
141
94a59c75 142%clean
143rm -rf $RPM_BUILD_ROOT
144
769e704f
JB
145%post -p /sbin/ldconfig
146%postun -p /sbin/ldconfig
94a59c75 147
e80eb8df 148%files -f %{name}.lang
94a59c75 149%defattr(644,root,root,755)
38878d3d 150%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
b8ab1935
JB
151%attr(755,root,root) %{_libdir}/libneon.so.*.*.*
152%attr(755,root,root) %ghost %{_libdir}/libneon.so.27
94a59c75 153
154%files devel
155%defattr(644,root,root,755)
38878d3d 156%doc doc/*.txt
2c6a6cf1 157%attr(755,root,root) %{_bindir}/neon-config
b8ab1935 158%attr(755,root,root) %{_libdir}/libneon.so
2f50aeeb 159%{_includedir}/neon
afebb879 160%{_pkgconfigdir}/neon.pc
b8ab1935
JB
161%{_mandir}/man1/neon-config.1*
162%{_mandir}/man3/ne_*.3*
163%{_mandir}/man3/neon.3*
769e704f 164
d69a9291 165%if %{with static_libs}
769e704f
JB
166%files static
167%defattr(644,root,root,755)
b8ab1935 168%{_libdir}/libneon.a
d69a9291 169%endif
38878d3d
ER
170
171%if %{with apidocs}
172%files apidocs
173%defattr(644,root,root,755)
174%doc doc/html/*
175%endif
This page took 0.110549 seconds and 4 git commands to generate.