From fe696ca227c3df6b09e9523588fffd734151231548e28df52e9841addb556e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:30:23 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main openpgm revision 4ae42a19d353939097ca35f10f8f1325 --- .gitattributes | 23 ++++++ Mark-pgm_family_string-as-inline.patch | 24 ++++++ baselibs.conf | 1 + openpgm-release-5-3-128.tar.gz | 3 + openpgm.changes | 101 +++++++++++++++++++++++ openpgm.spec | 110 +++++++++++++++++++++++++ 6 files changed, 262 insertions(+) create mode 100644 .gitattributes create mode 100644 Mark-pgm_family_string-as-inline.patch create mode 100644 baselibs.conf create mode 100644 openpgm-release-5-3-128.tar.gz create mode 100644 openpgm.changes create mode 100644 openpgm.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/Mark-pgm_family_string-as-inline.patch b/Mark-pgm_family_string-as-inline.patch new file mode 100644 index 0000000..baae7e4 --- /dev/null +++ b/Mark-pgm_family_string-as-inline.patch @@ -0,0 +1,24 @@ +Author: Luca Boccassi +Description: Mark pgm_family_string as 'inline' + Functions defined in headers need to be 'static inline', otherwise the compiler + will generate an unused-function warning for every program that includes the + header but doesn't use the function. + + In file included from /usr/include/pgm-5.3/pgm/skbuff.h:39, + from /usr/include/pgm-5.3/pgm/msgv.h:33, + from /usr/include/pgm-5.3/pgm/pgm.h:44, + from src/ip.cpp:53: + /usr/include/pgm-5.3/pgm/socket.h:207:1: error: 'const char* pgm_family_string(int)' defined but not used [-Werror=unused-function] + 207 | pgm_family_string ( + | ^~~~~~~~~~~~~~~~~ +--- pgm.orig/include/pgm/socket.h ++++ pgm/include/pgm/socket.h +@@ -202,7 +202,7 @@ int pgm_wsapoll_info (pgm_sock_t*const restrict, WSAPOLLFD*const restrict, ULONG + int pgm_epoll_ctl (pgm_sock_t*const, const int, const int, const int); + #endif + +-static ++static inline + const char* + pgm_family_string ( + const int family diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..adade49 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libpgm-5_3-0 diff --git a/openpgm-release-5-3-128.tar.gz b/openpgm-release-5-3-128.tar.gz new file mode 100644 index 0000000..4366ed9 --- /dev/null +++ b/openpgm-release-5-3-128.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d707ef8dda45f4a7bc91016d7f2fed6a418637185d76c7ab30b306499c6d393 +size 673842 diff --git a/openpgm.changes b/openpgm.changes new file mode 100644 index 0000000..b412971 --- /dev/null +++ b/openpgm.changes @@ -0,0 +1,101 @@ +------------------------------------------------------------------- +Sun Jun 18 13:50:39 UTC 2023 - bluca@debian.org + +- Add Mark-pgm_family_string-as-inline.patch to fix building packages that + include the PGM headers without using pgm_family_string() by marking it + 'inline' to avoid unused-function warnings. Sent upstream: + https://github.com/steve-o/openpgm/pull/74 + +------------------------------------------------------------------- +Wed Jun 7 13:11:24 UTC 2023 - pgajdos@suse.com + +- version update to 5.3.128 + * Maintenance release aggregating all patches to the repository since + previous tested release. +- modified sources + % baselibs.conf +- deleted patches + - libpgm-5.2.122-configure-rdtsc-checking-chg.patch (upstreamed) + - libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch (upstreamed) + - libpgm-5.2.122-reproducible-architecture.patch (upstreamed) + - libpgm-5.2.122-reproducible.patch (upstreamed) + - use_python3.patch (upstreamed) + +------------------------------------------------------------------- +Mon Jun 28 17:37:10 UTC 2021 - Matej Cepl + +- Add use_python3.patch to allow use of Python3 instead of + Python2 for generating files. + +------------------------------------------------------------------- +Mon Oct 19 13:39:35 UTC 2020 - Cristian Rodríguez + +- Always pretend we do not have ftime(3), function is deprecated + and absent from next glibc release. + +------------------------------------------------------------------- +Fri Aug 16 11:40:05 UTC 2019 - Michel Normand + +- Add libpgm-5.2.122-configure-rdtsc-checking-chg.patch + same as https://github.com/steve-o/openpgm/pull/63 + +------------------------------------------------------------------- +Mon Jan 28 12:51:34 UTC 2019 - luca.boccassi@gmail.com + +- Backport patches from upstream to avoid adding a non-existing + foo/lib/pgm-5.2/include directory to pkg-config's CFLAGS which + breaks applications using strict compiler flags, and to make the + build reproducible regardless of the reported system/architecture + +Added: +- libpgm-5.2.122-pkg-config-do-not-add-I-to-non-existing-directory.patch +- libpgm-5.2.122-reproducible-architecture.patch + +------------------------------------------------------------------- +Fri Jul 13 07:39:53 UTC 2018 - dimstar@opensuse.org + +- Add baselibs.conf: build -32bit packages, which are needed by + zeromq's -32bit implementation. [bsc#1146257] + +------------------------------------------------------------------- +Tue Mar 27 11:49:58 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Tue Oct 24 12:47:51 UTC 2017 - luca.boccassi@gmail.com + +- Create m4 directory before running autoreconf -fi to avoid build + failure on CentOS 6 due to older version of autoconf. + +------------------------------------------------------------------- +Fri Oct 6 13:22:06 UTC 2017 - bwiedemann@suse.com + +- Add libpgm-5.2.122-reproducible.patch to make build reproducible + (boo#1047218) + +------------------------------------------------------------------- +Tue Feb 3 14:11:33 UTC 2015 - jengelh@inai.de + +- Update description and RPM groups + +------------------------------------------------------------------- +Tue Jan 13 14:35:23 UTC 2015 - mvyskocil@opensuse.org + +- Fix package to conform openSUSE packaging standards + * rename to openpgm to match with upstream and pkgconfig name + * cleanup weird build systemd and use standard macros + * cleanup description + * move protocol description to devel file + * drop static library + +------------------------------------------------------------------- +Thu Jan 8 12:18:15 UTC 2015 - mvyskocil@opensuse.org + +- Update to 5.2.122 (no upstream changelog available) + +------------------------------------------------------------------- +Thu Nov 22 16:38:36 CET 2012 - pascal.bleser@opensuse.org + +- initial version (5.1.118) + diff --git a/openpgm.spec b/openpgm.spec new file mode 100644 index 0000000..e5e39d1 --- /dev/null +++ b/openpgm.spec @@ -0,0 +1,110 @@ +# vim: set sw=4 ts=4 et nu: +# +# spec file for package openpgm +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2012 Pascal Bleser +# +# 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 https://bugs.opensuse.org/ +# + + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +%define major 5.3 +%define mpkg 5_3 +%define soname 0 +%define tarball_version 5-3-128 +%define libname libpgm-%{mpkg}-%{soname} +Name: openpgm +Version: 5.3.128 +Release: 0 +Summary: OpenPGM implementation of the Reliable Multicast Protocol +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/steve-o/openpgm +Source: https://github.com/steve-o/openpgm/archive/release-%{tarball_version}.tar.gz#/openpgm-release-%{tarball_version}.tar.gz +Source99: baselibs.conf +# PATCH-FIX-UPSTREAM https://github.com/steve-o/openpgm/pull/74 +Patch0: Mark-pgm_family_string-as-inline.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: glibc-devel +BuildRequires: libtool +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: python3-base + +%description +OpenPGM is an implementation of the Pragmatic General Multicast (PGM) +specification in RFC 3208. PGM is a reliable and scalable multicast protocol +that enables receivers to detect loss, request retransmission of lost data, or +notify an application of unrecoverable loss. + +%package -n %{libname} +Summary: PGM Reliable Multicast Protocol library +Group: System/Libraries + +%description -n %{libname} +OpenPGM is an implementation of the Pragmatic General Multicast (PGM) +specification in RFC 3208. PGM is a reliable and scalable multicast protocol +that enables receivers to detect loss, request retransmission of lost data, or +notify an application of unrecoverable loss. + +%package devel +Summary: Development files for the OpenPGM Reliable Multicast Protocol library +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} + +%description devel +OpenPGM is an implementation of the Pragmatic General Multicast (PGM) +specification in RFC 3208. PGM is a reliable and scalable multicast protocol +that enables receivers to detect loss, request retransmission of lost data, or +notify an application of unrecoverable loss. + +This subpackage contains the header files for OpenPGM. + +%prep +%setup -q -n "%{name}-release-%{tarball_version}/openpgm/pgm" +%autopatch -p1 + +%build +mv openpgm-5.2.pc.in openpgm-5.3.pc.in +export ac_cv_func_ftime=no +mkdir -p m4 +autoreconf -fi +%{configure} \ + --disable-static + +%make_build + +%install +%make_install +rm %{buildroot}%{_libdir}/libpgm.la + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%defattr(-,root,root) +%license COPYING LICENSE +%{_libdir}/libpgm-%{major}.so.%{soname} +%{_libdir}/libpgm-%{major}.so.%{soname}.* + +%files devel +%defattr(-,root,root) +%doc mibs/PGM-MIB-petrova-01.txt +%{_includedir}/pgm-%{major} +%{_libdir}/libpgm.so +%{_libdir}/pkgconfig/openpgm-%{major}.pc + +%changelog