diff --git a/.gitignore b/.gitignore index e69de29..1884390 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/libpgm-5.1.118%7Edfsg.tar.gz +/libpgm-5.1.118-1~dfsg.tar.gz +/libpgm-5.1.118~dfsg.tar.gz +/libpgm-5.2.122~dfsg.tar.gz diff --git a/ee25ff3d13f2639b4c3a42125e79f77f921c3320.patch b/ee25ff3d13f2639b4c3a42125e79f77f921c3320.patch new file mode 100644 index 0000000..52ad5f9 --- /dev/null +++ b/ee25ff3d13f2639b4c3a42125e79f77f921c3320.patch @@ -0,0 +1,21 @@ +From ee25ff3d13f2639b4c3a42125e79f77f921c3320 Mon Sep 17 00:00:00 2001 +From: Luca Boccassi +Date: Wed, 23 Jan 2019 10:37:37 +0000 +Subject: [PATCH] pkg-config: do not add -I to non-existing directory + +foo/lib/pgm-5.2/include does not exist, so applications using strict +compiler flags will fail to build due to this -I flag +--- + openpgm/pgm/openpgm-5.2.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openpgm/pgm/openpgm-5.2.pc.in b/openpgm/pgm/openpgm-5.2.pc.in +index 1e56d944..9e30a6da 100644 +--- a/openpgm/pgm/openpgm-5.2.pc.in ++++ b/openpgm/pgm/openpgm-5.2.pc.in +@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@ + # packagers may wish to move @LIBS@ to Libs.private for platforms with + # versions of pkg-config that support static linking. + Libs: -L${libdir} -lpgm @LIBS@ +-Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include ++Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ diff --git a/openpgm.spec b/openpgm.spec new file mode 100644 index 0000000..44d1371 --- /dev/null +++ b/openpgm.spec @@ -0,0 +1,136 @@ +Name: openpgm +Version: 5.2.122 +Release: 18%{?dist} +Summary: An implementation of the PGM reliable multicast protocol + +# The license is LGPLv2.1 +License: LGPLv2 +# New URL is https://github.com/steve-o/openpgm +# The files are now on https://code.google.com/archive/p/openpgm/downloads +# https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-%{version}~dfsg.tar.gz +URL: https://github.com/steve-o/openpgm +Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-%{version}~dfsg.tar.gz +Patch0001: https://github.com/steve-o/openpgm/commit/ee25ff3d13f2639b4c3a42125e79f77f921c3320.patch + + +BuildRequires: gcc +BuildRequires: python3 +BuildRequires: perl-interpreter + + +%description +OpenPGM is an open source implementation of the Pragmatic General +Multicast (PGM) specification in RFC 3208. + + +%package devel +Summary: Development files for openpgm +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains OpenPGM related development libraries and header files. + + +%prep +%autosetup -n libpgm-%{version}~dfsg/openpgm/pgm -p3 + +sed -i "s:#!/usr/bin/python:#!/usr/bin/python3:" version_generator.py + + +%build +%configure +make %{_smp_mflags} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +rm %{buildroot}%{_libdir}/libpgm.{a,la} + + +%files +%doc COPYING LICENSE +%{_libdir}/*.so.* + + +%files devel +%doc examples/ +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/openpgm-5.2.pc + + +%changelog +* Sat Oct 26 2019 Denis Arnaud - 5.2.122-18 +- Updated the source URL and Python to Python 3 + +* Thu Jul 25 2019 Fedora Release Engineering - 5.2.122-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 5.2.122-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jan 23 2019 Elliott Sales de Andrade - 5.2.122-15 +- Remove non-existent directory from pkgconfig file + +* Wed Sep 19 2018 Randy Barlow - 5.2.122-14 +- Use python2 explicitly (#1605329). +- Remove unnecessary calls to ldconfig. + +* Fri Jul 13 2018 Fedora Release Engineering - 5.2.122-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Mar 19 2018 Iryna Shcherbina - 5.2.122-12 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Feb 08 2018 Fedora Release Engineering - 5.2.122-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 5.2.122-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 5.2.122-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 18 2017 Jose Pedro Oliveira - 5.2.122-8 +- Add perl to the build requirements list (required by galois_generator.pl) + +* Sat Feb 11 2017 Fedora Release Engineering - 5.2.122-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 5.2.122-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 5.2.122-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 5.2.122-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 5.2.122-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 5.2.122-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed May 15 2013 Jose Pedro Oliveira - 5.2.122-1 +- Update to 5.2.122 + +* Thu Feb 14 2013 Fedora Release Engineering - 5.1.118-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Dec 21 2012 Jose Pedro Oliveira - 5.1.118-3 +- Build requires python (no longer available by default in F18+ buildroots) + +* Fri Dec 21 2012 Jose Pedro Oliveira - 5.1.118-2 +- Renamed the tarball (replaced '%7E' by '~') +- Removed the defattr lines + +* Wed Dec 19 2012 Jose Pedro Oliveira - 5.1.118-1 +- Change license from LGPLv2.1 to LGPLv2 (867182#c13) + +* Tue Dec 18 2012 Jose Pedro Oliveira - 5.1.118-0 +- First Fedora specfile + +# vim:set ai ts=4 sw=4 sts=4 et: diff --git a/sources b/sources index e69de29..4ecad4e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a4a4ad05678c360f44cd90a6e5dbd391 libpgm-5.2.122~dfsg.tar.gz