neon/neon.spec
OBS User autobuild 8db7c48361 Accepting request 38163 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/neon based on submit request 38163 from user oertel

OBS-URL: https://build.opensuse.org/request/show/38163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/neon?expand=0&rev=24
2010-04-18 22:20:02 +00:00

196 lines
5.2 KiB
RPMSpec

#
# spec file for package neon (Version 0.28.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: neon
BuildRequires: krb5-devel libexpat-devel libopenssl-devel zlib-devel
Summary: An HTTP and WebDAV Client Library
Version: 0.28.4
Release: 4
License: GPLv2+
# bug437293
%ifarch ppc64
Obsoletes: neon-64bit
%endif
#
Group: Development/Libraries/Other
Url: http://www.webdav.org/neon
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: http://www.webdav.org/neon/neon-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: %{name}-0.28.4-bloat.patch
Patch1: %{name}-0.28.4-CVE-2009-2473,2474.patch
# http://lists.manyfish.co.uk/pipermail/neon-commits/2009-September/000827.html
Patch2: %{name}-openssl.patch
%description
neon is an HTTP and WebDAV client library with a C interface.
Featuring: * High-level interface to HTTP and WebDAV methods
(PUT, GET, HEAD, etc.)
* Low-level interface to HTTP request handling to allow implementing
new methods easily
* HTTP/1.1 and HTTP/1.0 persistent connections
* RFC2617 basic and digest authentication (including auth-int,
md5-sess)
* Proxy support (including basic/digest authentication)
* Generic WebDAV 207 XML response handling mechanism
* XML parsing using the expat or libxml parsers
* Easy generation of error messages from 207 error responses
* WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL
* WebDAV metadata support: set and remove properties, query any set of
properties (PROPPATCH/PROPFIND)
%package -n libneon27
License: GPLv2+
Summary: An HTTP and WebDAV Client Library
Group: Development/Libraries/Other
Requires: %{name} = %{version}
# bug437293
%ifarch ppc64
Obsoletes: neon-64bit
%endif
#
%description -n libneon27
neon is an HTTP and WebDAV client library with a C interface.
Featuring: * High-level interface to HTTP and WebDAV methods
(PUT, GET, HEAD, etc.)
* Low-level interface to HTTP request handling to allow implementing
new methods easily
* HTTP/1.1 and HTTP/1.0 persistent connections
* RFC2617 basic and digest authentication (including auth-int,
md5-sess)
* Proxy support (including basic/digest authentication)
* Generic WebDAV 207 XML response handling mechanism
* XML parsing using the expat or libxml parsers
* Easy generation of error messages from 207 error responses
* WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL
* WebDAV metadata support: set and remove properties, query any set of
properties (PROPPATCH/PROPFIND)
%package -n libneon-devel
License: GPLv2+
Summary: An HTTP and WebDAV Client Library
Group: Development/Libraries/Other
Requires: libneon27 = %{version} glibc-devel
# renamed after openSUSE 10.3
Provides: neon-devel = 0.27
Obsoletes: neon-devel < 0.27
# bug437293
%ifarch ppc64
Obsoletes: neon-devel-64bit
%endif
#
%description -n libneon-devel
neon is an HTTP and WebDAV client library with a C interface.
Featuring: * High-level interface to HTTP and WebDAV methods
(PUT, GET, HEAD, etc.)
* Low-level interface to HTTP request handling to allow implementing
new methods easily
* HTTP/1.1 and HTTP/1.0 persistent connections
* RFC2617 basic and digest authentication (including auth-int,
md5-sess)
* Proxy support (including basic/digest authentication)
* Generic WebDAV 207 XML response handling mechanism
* XML parsing using the expat or libxml parsers
* Easy generation of error messages from 207 error responses
* WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL
* WebDAV metadata support: set and remove properties, query any set of
properties (PROPPATCH/PROPFIND)
%prep
%setup -q
%patch0
%patch1
%patch2 -p2
%build
rm -f aclocal.m4 ltmain.sh
sh autogen.sh
%configure \
--with-ssl \
--disable-nls \
--enable-shared \
--disable-static \
--enable-warnings \
--with-pic
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_defaultdocdir}/%{name} install install-man install-html
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%check
# make check
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libneon27 -p /sbin/ldconfig
%postun -n libneon27 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc doc/*.txt doc/html
%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
%files -n libneon27
%defattr(-,root,root)
%{_libdir}/*.so.27*
%files -n libneon-devel
%defattr(-,root,root)
%{_bindir}/neon-config
%dir %{_includedir}/neon
%{_includedir}/neon/*.h
%{_mandir}/*/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/neon.pc
%changelog