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

Last change on this file since 1036 was 459, checked in by Silvan Scherrer, 11 years ago

neon: changed spec to version 0.30.0

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