openpgm/openpgm.spec

85 lines
2.6 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 http://bugs.opensuse.org/
%define major 5.2
%define mpkg 5_2
%define soname 0
%define libname libpgm-%{mpkg}-%{soname}
Name: openpgm
Version: 5.2.122
Release: 0
Summary: PGM Reliable Multicast Protocol
Source: https://openpgm.googlecode.com/files/libpgm-%{version}.tar.bz2
URL: https://code.google.com/p/openpgm/
Group: System/Libraries
License: LGPL-2.1+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python-devel
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: glibc-devel
BuildRequires: pkgconfig
%description
OpenPGM is an open source implementation of the Pragmatic General Multicast
(PGM) specification in RFC 3208 available at www.ietf.org. 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: Shared library for %{name}
Group: System/Libraries
%description -n %{libname}
Shared library for %{name}.
%package devel
Summary: Devel files for %{name}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
Development files for %{name}.
%prep
%setup -q -n "libpgm-%{version}/openpgm/pgm"
%build
%{configure} \
--disable-static
%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)
%doc 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