Browse Source

libserf-1.3.9-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11918 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
8c29adb492
1 changed files with 28 additions and 4 deletions
  1. 28 4
      lib/libs/libserf/libserf-vl.spec

+ 28 - 4
lib/libs/libserf/libserf-vl.spec

@@ -1,14 +1,23 @@
 %global oname   serf
 
 Name:           libserf
-Version:        1.3.8
-Release:        2%{?_dist_release}
+Version:        1.3.9
+Release:        1%{?_dist_release}
 Summary:        High-Performance Asynchronous HTTP Client Library
 Summary(ja):    高性能な非同期 HTTP クライアントのライブラリ
 License:        ASL 2.0
 Group:          System Environment/Libraries
 URL:            http://code.google.com/p/serf
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
 Source0:        https://serf.googlecode.com/files/serf-%{version}.tar.bz2
+Source1:        libserf-certs.tar.xz
+Patch0:         %{name}-norpath.patch
+Patch1:         %{name}-python3.patch
+Patch2:         r1712790-serf_bucket_aggregate_prepend-empty-list.patch
+Patch3:         %{name}-1.3.9-openssl111.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 BuildRequires:  apr-devel
@@ -37,7 +46,7 @@ The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 %prep
-%setup -q -n %{oname}-%{version}
+%autosetup -n serf-%{version} -p1
 
 # Shared library versioning support in scons is worse than awful...
 # minimally, here fix the soname to match serf-1.2.x.  Minor version
@@ -45,6 +54,10 @@ developing applications that use %{name}.
 # http://scons.tigris.org/issues/show_bug.cgi?id=2869
 sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
 
+pushd test/server/
+tar xvf %{SOURCE1}
+popd
+
 %build
 scons \
       CFLAGS="%{optflags}" \
@@ -58,7 +71,11 @@ scons install --install-sandbox=%{buildroot}
 find %{buildroot} -name '*.*a' -exec rm -vf {} ';'
 
 %check
-scons %{?_smp_mflags} check || true
+export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
+# disable tests temporarily because testcases are openssl-1.0 style
+# and certificates for tests are expired.
+
+scons check || true
 
 %post -p /sbin/ldconfig
 
@@ -74,6 +91,13 @@ scons %{?_smp_mflags} check || true
 %{_libdir}/pkgconfig/%{oname}*.pc
 
 %changelog
+* Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-1
+- updated to 1.3.9.
+- imported Patch0-1 from rawhide.
+- imported Patch2 from upstream.
+- added Patch3 to build with openssl-1.1.1.
+- added Source1 to replace expired certificates.
+
 * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.8-2
 - rebuild with openssl-1.0.2