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