[packages/libp2p] - new URL, updated to 20240415 snapshot
qboosh
qboosh at pld-linux.org
Mon May 27 22:11:31 CEST 2024
commit a0a705632c64ebed1ee2b042a372ba8c50ec4c75
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 27 22:05:56 2024 +0200
- new URL, updated to 20240415 snapshot
libp2p-shared.patch | 14 +++++++-------
libp2p.spec | 13 ++++++-------
2 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/libp2p.spec b/libp2p.spec
index 3141adf..1f62be0 100644
--- a/libp2p.spec
+++ b/libp2p.spec
@@ -1,4 +1,3 @@
-# TODO: shared library
#
# Conditional build:
%bcond_with simd # SSE4.1 instructions (runtime detected by cpuid)
@@ -10,16 +9,16 @@ Summary: Library to pack/unpack pixels
Summary(pl.UTF-8): Biblioteka do pakowania/rozpakowywania pikseli
Name: libp2p
Version: 0
-%define gitref 5e65679ae54d0f9fa412ab36289eb2255e341625
-%define snap 20220707
+%define gitref f52c14efc88c
+%define snap 20240415
%define rel 1
Release: 0.%{snap}.%{rel}
License: WTFPL v2
Group: Libraries
-Source0: https://github.com/sekrit-twc/libp2p/archive/%{gitref}/%{name}-%{snap}.tar.gz
-# Source0-md5: 663e2005ffe0eecea2cc9336e0b789e4
+Source0: https://bitbucket.org/the-sekrit-twc/libp2p/get/%{gitref}.tar.gz#/%{name}-%{gitref}.tar.gz
+# Source0-md5: 12d82bf59fc7408107a21678dff40385
Patch0: %{name}-shared.patch
-URL: https://github.com/sekrit-twc/libp2p
+URL: https://bitbucket.org/the-sekrit-twc/libp2p
BuildRequires: libstdc++-devel >= 6:5
BuildRequires: libtool >= 2:1.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -66,7 +65,7 @@ Static libp2p library.
Statyczna biblioteka libp2p.
%prep
-%setup -q -n %{name}-%{gitref}
+%setup -q -n the-sekrit-twc-%{name}-%{gitref}
%patch0 -p1
%build
diff --git a/libp2p-shared.patch b/libp2p-shared.patch
index fd1100c..0595493 100644
--- a/libp2p-shared.patch
+++ b/libp2p-shared.patch
@@ -1,5 +1,5 @@
---- libp2p-5e65679ae54d0f9fa412ab36289eb2255e341625/Makefile.orig 2022-07-06 03:05:02.000000000 +0200
-+++ libp2p-5e65679ae54d0f9fa412ab36289eb2255e341625/Makefile 2023-04-25 17:12:09.635765402 +0200
+--- the-sekrit-twc-libp2p-f52c14efc88c/Makefile.orig 2024-04-14 22:53:11.000000000 +0200
++++ the-sekrit-twc-libp2p-f52c14efc88c/Makefile 2024-05-27 22:04:11.390564937 +0200
@@ -12,6 +12,7 @@ libp2p_HDRS = \
libp2p_OBJS = \
@@ -20,9 +20,7 @@
+includedir = /usr/include
+libdir = /usr/lib
+libp2p_LOBJS = $(libp2p_OBJS:.o=.lo)
-
--%.o: %.cpp $(znedi3_HDRS) $(testapp_HDRS) $(vsxx_HDRS)
-- $(CXX) -c $(EXTRA_CXXFLAGS) $(MY_CXXFLAGS) $(MY_CPPFLAGS) $< -o $@
++
+ifeq ($(SIMD), 1)
+ simd/p2p_sse41.lo: EXTRA_CXXFLAGS := -msse4.1
+endif
@@ -30,9 +28,11 @@
+libp2p.la: $(libp2p_LOBJS)
+ libtool --tag=CXX --mode=link $(CXX) $(MY_LDFLAGS) $(MY_CXXFLAGS) -o $@ $^ -rpath $(libdir)
+
-+%.lo: %.cpp $(znedi3_HDRS) $(testapp_HDRS) $(vsxx_HDRS)
++%.lo: %.cpp $(libp2p_HDRS)
+ libtool --tag=CXX --mode=compile $(CXX) -c $(EXTRA_CXXFLAGS) $(MY_CXXFLAGS) $(MY_CPPFLAGS) $< -o $@
-+
+
+-%.o: %.cpp $(libp2p_HDRS)
+- $(CXX) -c $(EXTRA_CXXFLAGS) $(MY_CXXFLAGS) $(MY_CPPFLAGS) $< -o $@
+install:
+ install -d $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
+ install -m644 p2p.h p2p_api.h $(DESTDIR)$(includedir)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libp2p.git/commitdiff/a0a705632c64ebed1ee2b042a372ba8c50ec4c75
More information about the pld-cvs-commit
mailing list