diff --git a/libpgm-5.2.122~dfsg.tar.gz b/libpgm-5.2.122~dfsg.tar.gz new file mode 100644 index 0000000..410af0a Binary files /dev/null and b/libpgm-5.2.122~dfsg.tar.gz differ diff --git a/openpgm.spec b/openpgm.spec new file mode 100644 index 0000000..d039e75 --- /dev/null +++ b/openpgm.spec @@ -0,0 +1,46 @@ +Name: openpgm +Version: 5.2.122 +Release: 15 +License: LGPLv2 +Summary: PGM reliable multicast protocol implementation +URL: https://code.google.com/archive/p/openpgm +Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/libpgm-%{version}~dfsg.tar.gz + +BuildRequires: python2 perl-interpreter + +%description +OpenPGM implements PGM (Pragmatic General Multicast) following RFC 3208 specification. + +%package devel +Summary: Development files for openpgm +Requires: %{name} = %{version}-%{release} + +%description devel +Development libraries for OpenPGM. + +%prep +%autosetup -n libpgm-%{version}~dfsg/openpgm/pgm + +sed -i "s:#!/usr/bin/python:#!/usr/bin/python2:" version_generator.py + +%build +%configure +%make_build + +%install +%make_install +%delete_la_and_a + +%files +%{_libdir}/*.so.* +%doc COPYING LICENSE + +%files devel +%doc examples/ +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/openpgm-5.2.pc + +%changelog +* Mon Mar 09 2020 lihao - 5.2.122-15 +- Package Init