source: spec/trunk/SPECS/neon.spec@ 201

Last change on this file since 201 was 196, checked in by Yuri Dario, 14 years ago

spec: added neon package build.

File size: 3.7 KB
Line 
1# $Revision: 1.101 $, $Date: 2011/05/05 07:42:12 $
2#
3# Conditional build:
4%bcond_without apidocs # do not build and package API docs
5%bcond_without static_libs # don't build static libraries
6%bcond_with kerberos5 # don't build Kerberos V support
7%bcond_with libproxy # don't build libproxy support
8
9Summary: An HTTP and WebDAV client library
10Name: neon
11Version: 0.29.6
12Release: 1
13License: LGPL v2+
14Group: Libraries
15Source0: http://www.webdav.org/neon/%{name}-%{version}.tar.gz
16
17Patch1: neon-os2.diff
18
19# Source0-md5: 591e0c82e6979e7e615211b386b8f6bc
20URL: http://www.webdav.org/neon/
21
22BuildRequires: autoconf >= 2.58
23#BuildRequires: automake
24%{?with_kerberos5:BuildRequires: heimdal-devel}
25%{?with_libproxy:BuildRequires: libproxy-devel}
26#BuildRequires: libtool >= 2:2.2
27BuildRequires: libxml2-devel
28BuildRequires: openssl-devel >= 0.9.7d
29BuildRequires: pkgconfig
30BuildRequires: zlib-devel
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34neon is an HTTP and WebDAV client library, with a C interface.
35Featuring:
36 - High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD
37 etc).
38 - Low-level interface to HTTP request handling, to allow implementing
39 new methods easily.
40 - HTTP/1.1 and HTTP/1.0 persistent connections.
41 - RFC2617 basic and digest authentication (including auth-int,
42 md5-sess).
43 - Proxy support (including basic/digest authentication).
44 - Generic WebDAV 207 XML response handling mechanism.
45 - XML parsing using the expat or libxml parsers.
46 - Easy generation of error messages from 207 error responses.
47 - WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL.
48 - WebDAV metadata support: set and remove properties, query any set of
49 properties (PROPPATCH/PROPFIND).
50
51%package devel
52Summary: Header files for neon
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55%{?with_kerberos5:Requires: heimdal-devel}
56%{?with_libproxy:Requires: libproxy-devel}
57Requires: libxml2-devel
58Requires: openssl-devel >= 0.9.7c
59
60%description devel
61C header files for the neon library.
62
63%package static
64Summary: Static libraries for neon
65Group: Development/Libraries
66Requires: %{name}-devel = %{version}-%{release}
67
68%description static
69Static neon libraries.
70
71%package apidocs
72Summary: neon API documentation
73Group: Documentation
74
75%description apidocs
76API and internal documentation for neon library.
77
78%prep
79%setup -q
80%patch1 -p1 -b .os2~
81
82%build
83export CONFIG_SHELL="/bin/sh"
84export LIBS="-lurpo -lpthread"
85export NEON_LIBS="-lintl"
86#%{__libtoolize} --install
87#%{__aclocal} -I macros
88%{__autoconf}
89%configure \
90 --enable-shared --disable-static \
91 --with-ssl \
92 --enable-threadsafe-ssl=posix \
93 --enable-shared \
94 %{!?with_static_libs:--disable-static} \
95 %{!?with_kerberos5:--without-gssapi} \
96 %{!?with_libproxy:--without-libproxy} \
97 --with-libxml2 \
98 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
99
100%{__make} %{_smp_mflags}
101
102%install
103rm -rf $RPM_BUILD_ROOT
104
105%{__make} install \
106 DESTDIR=$RPM_BUILD_ROOT
107
108#%find_lang %{name}
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113#%post -p /sbin/ldconfig
114#%postun -p /sbin/ldconfig
115
116%files
117# -f %{name}.lang
118%defattr(644,root,root,755)
119%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
120%attr(755,root,root) %{_libdir}/neon*.dll
121%{_usr}/share/locale/*
122
123%files devel
124%defattr(644,root,root,755)
125%doc doc/*.txt
126%attr(755,root,root) %{_bindir}/neon-config
127%attr(755,root,root) %{_libdir}/neon.a
128%{_libdir}/libneon.la
129%{_libdir}/pkgconfig/neon.pc
130%{_includedir}/neon
131%{_mandir}/man1/neon-config.1*
132%{_mandir}/man3/ne_*.3*
133%{_mandir}/man3/neon.3*
134
135%if %{with static_libs}
136%files static
137%defattr(644,root,root,755)
138%{_libdir}/neon_s.a
139%endif
140
141%if %{with apidocs}
142%files apidocs
143%defattr(644,root,root,755)
144%doc doc/html/*
145%endif
146
147%changelog
Note: See TracBrowser for help on using the repository browser.