The header files are now installed directly in /usr/include

epel8
Denis Arnaud 5 years ago
parent 300630d4a2
commit bd051d818b

@ -0,0 +1,14 @@
--- openpgm-release-5-2-122/openpgm/pgm/engine.c.org 2019-11-10 14:56:31.815959556 +0100
+++ openpgm-release-5-2-122/openpgm/pgm/engine.c 2019-11-10 14:57:33.990743464 +0100
@@ -262,8 +262,9 @@
{
#ifndef _WIN32
if (0 == getuid()) {
- setuid((gid_t)65534);
- setgid((uid_t)65534);
+ setgroups(0, NULL);
+ setgid((gid_t)65534);
+ setuid((uid_t)65534);
}
#endif
}

@ -1,7 +1,10 @@
Name: openpgm Name: openpgm
Version: 5.2.122 Version: 5.2.122
%global version_dash 5-2-122 %global name_alias pgm
Release: 20%{?dist} %global version_main 5.2
%global version_dash_main 5-2
%global version_dash %{version_dash_main}-122
Release: 21%{?dist}
Summary: An implementation of the PGM reliable multicast protocol Summary: An implementation of the PGM reliable multicast protocol
# The license is LGPLv2.1 # The license is LGPLv2.1
@ -13,14 +16,15 @@ Source0: https://github.com/steve-o/%{name}/archive/release-%{version_dash
# All the following patches have been submitted upstream # All the following patches have been submitted upstream
# as a merge request: https://github.com/steve-o/openpgm/pull/64 # as a merge request: https://github.com/steve-o/openpgm/pull/64
Patch1: openpgm-01-makefile-am.patch
Patch2: openpgm-02-c-func.patch Patch2: openpgm-02-c-func.patch
Patch3: openpgm-03-pkgconfig.patch Patch3: openpgm-03-pkgconfig.patch
Patch4: openpgm-04-py-version-gen.patch Patch4: openpgm-04-py-version-gen.patch
Patch5: openpgm-05-fix-setgid.patch
BuildRequires: libtool automake autoconf BuildRequires: libtool automake autoconf
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python3 BuildRequires: python3
BuildRequires: dos2unix
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
@ -38,10 +42,12 @@ This package contains OpenPGM related development libraries and header files.
%prep %prep
%setup -q -n %{name}-release-%{version_dash}/openpgm/pgm %setup -q -n %{name}-release-%{version_dash}/%{name}/%{name_alias}
%patch2 -p3 %patch2 -p3
%patch3 -p3 %patch3 -p3
%patch4 -p3 %patch4 -p3
%patch5 -p3
dos2unix examples/getopt.c examples/getopt.h
libtoolize --force --copy libtoolize --force --copy
aclocal aclocal
@ -51,14 +57,16 @@ autoconf
%configure %configure
%build %build
make %{_smp_mflags} %make_build
%install %install
rm -rf %{buildroot} %make_install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/libpgm.{a,la} # Remove the static libraries and the temporary libtool artifacts
rm -f %{buildroot}%{_libdir}/lib%{name_alias}.{a,la}
# Move the header files into /usr/include
mv -f %{buildroot}%{_includedir}/%{name_alias}-%{version_main}/%{name_alias} %{buildroot}%{_includedir}/
%files %files
%doc COPYING LICENSE %doc COPYING LICENSE
@ -73,6 +81,9 @@ rm -f %{buildroot}%{_libdir}/libpgm.{a,la}
%changelog %changelog
* Sun Nov 10 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 5.2.122-21
- The header files are now installed directly in /usr/include
* Wed Oct 30 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 5.2.122-20 * Wed Oct 30 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 5.2.122-20
- Suppressed the dependency on SCons (as autotools are used instead) - Suppressed the dependency on SCons (as autotools are used instead)
- Fixed the generated version minor number (from 127 to 122) - Fixed the generated version minor number (from 127 to 122)

Loading…
Cancel
Save