Fixed all the build errors. Now generates all the RPMs. One error left.

epel8
Denis Arnaud 5 years ago
parent 60b7c78fa4
commit d68e1afd3f

@ -10,6 +10,7 @@ License: LGPLv2
# The files are now on https://code.google.com/archive/p/openpgm/downloads # The files are now on https://code.google.com/archive/p/openpgm/downloads
URL: https://github.com/steve-o/%{name} URL: https://github.com/steve-o/%{name}
Source0: https://github.com/steve-o/%{name}/archive/release-%{version_dash}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/steve-o/%{name}/archive/release-%{version_dash}.tar.gz#/%{name}-%{version}.tar.gz
# 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-scons.patch Patch1: openpgm-01-scons.patch
@ -17,6 +18,7 @@ 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
BuildRequires: libtool automake autoconf
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python3 python3-scons BuildRequires: python3 python3-scons
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
@ -42,15 +44,22 @@ This package contains OpenPGM related development libraries and header files.
%patch3 -p3 %patch3 -p3
%patch4 -p3 %patch4 -p3
libtoolize --force --copy
aclocal
autoheader
automake --copy --add-missing
autoconf
./configure --libdir=%{_libdir}
%build %build
scons-3 #scons-3
#make %%{_smp_mflags} make %{_smp_mflags}
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make DESTDIR=%{buildroot} install make prefix=/usr libdir=%{_libdir} DESTDIR=%{buildroot} install
rm %{buildroot}%{_libdir}/libpgm.{a,la} rm -f %{buildroot}%{_libdir}/libpgm.{a,la}
%files %files

Loading…
Cancel
Save