diff --git a/openpgm-01-makefile-am.patch b/openpgm-01-makefile-am.patch new file mode 100644 index 0000000..b9c8da4 --- /dev/null +++ b/openpgm-01-makefile-am.patch @@ -0,0 +1,11 @@ +--- openpgm-release-5-2-122/openpgm/pgm/Makefile.am 2012-12-04 03:56:54.000000000 +0100 ++++ openpgm-release-5-2-122/openpgm/pgm/Makefile2.am 2019-10-30 22:09:31.457801206 +0100 +@@ -54,7 +54,7 @@ + histogram.c \ + version.c + +-share_includedir = $(includedir)/pgm-@RELEASE_INFO@/pgm ++share_includedir = $(includedir)/pgm + share_include_HEADERS = \ + include/pgm/atomic.h \ + include/pgm/engine.h \ diff --git a/openpgm-03-pkgconfig.patch b/openpgm-03-pkgconfig.patch index 5344b47..9d3701c 100644 --- a/openpgm-03-pkgconfig.patch +++ b/openpgm-03-pkgconfig.patch @@ -7,5 +7,5 @@ index 1e56d944..9e30a6da 100644 # versions of pkg-config that support static linking. Libs: -L${libdir} -lpgm @LIBS@ -Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include -+Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ ++Cflags: -I${includedir} diff --git a/openpgm-04-py-version-gen.patch b/openpgm-04-py-version-gen.patch index 9540f13..cc33869 100644 --- a/openpgm-04-py-version-gen.patch +++ b/openpgm-04-py-version-gen.patch @@ -38,13 +38,12 @@ index e489aef..581eabe 100755 const unsigned pgm_major_version = 5; const unsigned pgm_minor_version = 2; --const unsigned pgm_micro_version = 122; + const unsigned pgm_micro_version = 122; -const char* pgm_build_date = "%s"; -const char* pgm_build_time = "%s"; -const char* pgm_build_system = "%s"; -const char* pgm_build_machine = "%s"; -const char* pgm_build_revision = "%s"; -+const unsigned pgm_micro_version = 127; +const char* pgm_build_date = "{0}"; +const char* pgm_build_time = "{1}"; +const char* pgm_build_system = "{2}"; diff --git a/openpgm.spec b/openpgm.spec index f8113cd..e8d43b5 100644 --- a/openpgm.spec +++ b/openpgm.spec @@ -13,6 +13,7 @@ Source0: https://github.com/steve-o/%{name}/archive/release-%{version_dash # All the following patches have been submitted upstream # as a merge request: https://github.com/steve-o/openpgm/pull/64 +Patch1: openpgm-01-makefile-am.patch Patch2: openpgm-02-c-func.patch Patch3: openpgm-03-pkgconfig.patch Patch4: openpgm-04-py-version-gen.patch @@ -38,6 +39,7 @@ This package contains OpenPGM related development libraries and header files. %prep %setup -q -n %{name}-release-%{version_dash}/openpgm/pgm +%patch1 -p3 %patch2 -p3 %patch3 -p3 %patch4 -p3 @@ -47,14 +49,14 @@ aclocal autoheader automake --copy --add-missing autoconf -./configure --libdir=%{_libdir} +%configure %build make %{_smp_mflags} %install rm -rf %{buildroot} -make prefix=/usr libdir=%{_libdir} DESTDIR=%{buildroot} install +make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_libdir}/libpgm.{a,la} @@ -73,7 +75,9 @@ rm -f %{buildroot}%{_libdir}/libpgm.{a,la} %changelog * Wed Oct 30 2019 Denis Arnaud - 5.2.122-2 -- Suppressed the dependency on SCons (as autotools are used rather) +- Suppressed the dependency on SCons (as autotools are used instead) +- Fixed the generated version minor number (from 127 to 122) +- Fixed the target include directory * Tue Oct 29 2019 Denis Arnaud - 5.2.122-1 - First build on EPEL 8