[packages/libpgm] - updated to 5.3.128 - added inline patch (add inline keyword to fix warning preventing users from u
qboosh
qboosh at pld-linux.org
Sun Sep 20 11:36:18 CEST 2020
commit a2dee294e7b6b41327bb863469fa8358c74b0a0d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 20 11:39:08 2020 +0200
- updated to 5.3.128
- added inline patch (add inline keyword to fix warning preventing users from using -Werror)
libpgm-inline.patch | 11 +++++++++++
libpgm.spec | 34 ++++++++++++++++++++++++----------
2 files changed, 35 insertions(+), 10 deletions(-)
---
diff --git a/libpgm.spec b/libpgm.spec
index 453bb9e..2381962 100644
--- a/libpgm.spec
+++ b/libpgm.spec
@@ -1,15 +1,21 @@
Summary: PGM reliable multicast network protocol library
Summary(pl.UTF-8): Biblioteka wiarygodnego multicastowego protokołu sieciowego PGM
Name: libpgm
-Version: 5.2.122
-Release: 2
+Version: 5.3.128
+%define tagver %(echo %{version} | tr . -)
+Release: 1
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/steve-o/openpgm/releases
-# below is old download URL, no longer available
-Source0: http://openpgm.googlecode.com/files/%{name}-%{version}.tar.bz2
-# Source0-md5: 06d6e16bc9064379caf0f8fe979dc785
+Source0: https://github.com/steve-o/openpgm/archive/release-%{tagver}/openpgm-%{version}.tar.gz
+# Source0-md5: 134eb021a8e4618ef87d54456282d186
+Patch0: %{name}-inline.patch
URL: https://github.com/steve-o/openpgm
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.10
+BuildRequires: libtool >= 2:2.2
+BuildRequires: perl-base
+BuildRequires: python
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -45,10 +51,18 @@ Static OpenPGM library.
Statyczna biblioteka OpenPGM.
%prep
-%setup -q
+%setup -q -n openpgm-release-%{tagver}
+%patch0 -p1
+
+%{__mv} openpgm/pgm/openpgm-{5.2,5.3}.pc.in
%build
cd openpgm/pgm
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--disable-silent-rules
@@ -73,14 +87,14 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
# TODO: provide link/pointer to rfc3208 in common RFCs package
%doc openpgm/pgm/{LICENSE,README} openpgm/doc/draft-ietf-rmt-bb-pgmcc-03.txt
-%attr(755,root,root) %{_libdir}/libpgm-5.2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpgm-5.2.so.0
+%attr(755,root,root) %{_libdir}/libpgm-5.3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpgm-5.3.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpgm.so
-%{_includedir}/pgm-5.2
-%{_pkgconfigdir}/openpgm-5.2.pc
+%{_includedir}/pgm-5.3
+%{_pkgconfigdir}/openpgm-5.3.pc
%files static
%defattr(644,root,root,755)
diff --git a/libpgm-inline.patch b/libpgm-inline.patch
new file mode 100644
index 0000000..f77a4f9
--- /dev/null
+++ b/libpgm-inline.patch
@@ -0,0 +1,11 @@
+--- openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h.orig 2020-08-31 05:14:09.000000000 +0200
++++ openpgm-release-5-3-128/openpgm/pgm/include/pgm/socket.h 2020-09-20 11:15:07.812709126 +0200
+@@ -202,7 +202,7 @@
+ 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpgm.git/commitdiff/a2dee294e7b6b41327bb863469fa8358c74b0a0d
More information about the pld-cvs-commit
mailing list