diff --git a/openpgm.spec b/openpgm.spec index c4a0130..002109d 100644 --- a/openpgm.spec +++ b/openpgm.spec @@ -10,6 +10,7 @@ License: LGPLv2 # The files are now on https://code.google.com/archive/p/openpgm/downloads URL: https://github.com/steve-o/%{name} 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 # as a merge request: https://github.com/steve-o/openpgm/pull/64 Patch1: openpgm-01-scons.patch @@ -17,6 +18,7 @@ Patch2: openpgm-02-c-func.patch Patch3: openpgm-03-pkgconfig.patch Patch4: openpgm-04-py-version-gen.patch +BuildRequires: libtool automake autoconf BuildRequires: gcc BuildRequires: python3 python3-scons BuildRequires: perl-interpreter @@ -42,15 +44,22 @@ This package contains OpenPGM related development libraries and header files. %patch3 -p3 %patch4 -p3 +libtoolize --force --copy +aclocal +autoheader +automake --copy --add-missing +autoconf +./configure --libdir=%{_libdir} + %build -scons-3 -#make %%{_smp_mflags} +#scons-3 +make %{_smp_mflags} %install 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