%define rname neon %define major 27 %define libname %mklibname %{rname} %{major} %define devname %mklibname %{rname} -d %define staticname %mklibname %{rname} -d -s Summary: An HTTP and WebDAV client library, with a C interface Name: libneon Version: 0.30.0 Release: %mkrel 4 Group: Development/Other License: GPLv2+ and LGPLv2+ URL: http://www.webdav.org/neon/ Source0: http://www.webdav.org/neon/%{rname}-%{version}.tar.gz Source1: http://www.webdav.org/neon/%{rname}-%{version}.tar.gz.asc Patch0: neon-locales.diff Patch1: neon-fail_parse.diff Patch2: neon-borked_addr_reverse.diff Patch3: neon-borked_retry_notcompress_and_retry_compress.diff Patch4: neon-borked_read_reset.diff # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476571 Patch6: neon-0.28.2-fix-segfault.patch BuildRequires: openssl-devel >= 0.9.7 BuildRequires: libxml2-devel BuildRequires: pkgconfig BuildRequires: krb5-devel BuildRequires: rootcerts BuildRequires: zlib-devel BuildRequires: libtool BuildRequires: autoconf2.5 BuildRequires: multiarch-utils >= 1.0.3 Obsoletes: libneon0.27 < 0.30.0 %description neon is an HTTP and WebDAV client library for Unix systems, with a C language API. It provides high-level interfaces to HTTP/1.1 and WebDAV methods, and a low-level interface to HTTP request/response handling, allowing new methods to be easily implemented. %package i18n Summary: Internationalization and locale data for %{name} Group: System/Internationalization BuildArch: noarch %description i18n This package contains the internationalization and locale data for %{name}. %package -n %{libname} Summary: Shared libraries for %{name} Group: System/Libraries Requires: rootcerts Requires: openssl >= 0.9.7 Requires: %{name}-i18n >= %{version}-%{release} Obsoletes: %{_lib}neon0.27 < 0.30.0 %description -n %{libname} neon is an HTTP and WebDAV client library for Unix systems, with a C language API. It provides high-level interfaces to HTTP/1.1 and WebDAV methods, and a low-level interface to HTTP request/response handling, allowing new methods to be easily implemented. %package -n %{devname} Summary: Headers for developing programs that will use %{name} Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: libneon-devel = %{version}-%{release} Provides: neon-devel = %{version}-%{release} Obsoletes: %{_lib}neon0.27-devel < 0.30.0 %description -n %{devname} This package contains the headers that programmers will need to develop applications which will use %{name}. %package -n %{staticname} Summary: Static %{name} library Group: Development/C++ Requires: %{devname} = %{version}-%{release} Provides: libneon-static-devel = %{version}-%{release} Provides: neon-static-devel = %{version}-%{release} Obsoletes: %{_lib}neon0.27-static-devel < 0.30.0 %description -n %{staticname} Static %{name} library. %prep %setup -q -n %{rname}-%{version} %patch0 -p1 %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch6 -p1 # fix mo clash (#28428) perl -pi -e "s|_LIBNAME_|%{rname}%{major}|g" Makefile.in src/ne_internal.h # this value has to be raised on x86_64 perl -pi -e "s|^ulimit \-v .*|ulimit \-v 40960|g" test/run.sh %build %serverbuild %configure2_5x \ --enable-shared \ --enable-static \ --with-ssl=openssl \ --enable-threadsafe-ssl=posix \ --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \ --with-libxml2 %make %check %make check %install %makeinstall_std cp src/README README.neon # fix this rm -rf %{buildroot}%{_docdir} find %{buildroot} -name *.la -delete %multiarch_binaries %{buildroot}%{_bindir}/neon-config %find_lang %{rname}%{major} %files i18n -f %{rname}%{major}.lang %files -n %{libname} %doc doc/*.txt README.neon %{_libdir}/lib*.so.%{major} %{_libdir}/lib*.so.%{major}.* %files -n %{devname} %doc AUTHORS BUGS doc/html ChangeLog NEWS README THANKS TODO %multiarch %{multiarch_bindir}/neon-config %{_bindir}/neon-config %{_libdir}/lib*.so %{_libdir}/pkgconfig/neon.pc %{_includedir}/neon/ %{_mandir}/man1/* %{_mandir}/man3/* %files -n %{staticname} %{_libdir}/lib*.a %changelog * Wed Oct 15 2014 umeabot <umeabot> 0.30.0-4.mga5 + Revision: 746058 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 0.30.0-3.mga5 + Revision: 681633 - Mageia 5 Mass Rebuild * Sun Mar 09 2014 wally <wally> 0.30.0-2.mga5 + Revision: 601577 - fix static devel pkg requires * Sun Mar 09 2014 wally <wally> 0.30.0-1.mga5 + Revision: 601508 - new version 0.30.0 - rename pkg as libneon - fix lib pkg name and split out the locale data - drop upstream applied patches - clean .spec * Sun Jan 05 2014 danf <danf> 0.29.6-4.mga4 + Revision: 564718 - Worked around a glibc bug to allow the test suite to pass + umeabot <umeabot> - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot <umeabot> 0.29.6-3.mga3 + Revision: 357821 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + guillomovitch <guillomovitch> - spec cleanup * Wed Jul 04 2012 shlomif <shlomif> 0.29.6-2.mga3 + Revision: 267152 - Remove trailing space - Fix/rebuild for OpenSSL 1.0.1 * Sun Nov 27 2011 tv <tv> 0.29.6-1.mga2 + Revision: 172599 - new release * Thu Oct 20 2011 obgr_seneca <obgr_seneca> 0.29.5-2.mga2 + Revision: 156990 - Removed .la files * Sun Jan 09 2011 blino <blino> 0.29.5-2.mga1 + Revision: 3527 - remove old version checks and ldconfig scriptlets - imported package libneon0.27