# Copyright (c) 2016 Dave Love, Liverpool University # MIT licence, per Fedora policy. %global mainver 0.2 %global subver 2 Name: gtg Version: %mainver.%subver Release: 2%{?dist} Summary: Generate execution traces in several formats License: CeCILL-C URL: http://gtg.gforge.inria.fr/ # no point in variables here Source0: https://gforge.inria.fr/frs/download.php/file/33688/gtg-0.2-2.tar.gz BuildRequires: gcc-gfortran openmpi-devel chrpath zlib-devel # Not in epel7 openmpi's provides, at least %global __requires_exclude libopen-trace-format\.so.* %{?filter_setup: %filter_from_requires /libopen-trace-format\.so.*/d %filter_setup } %description Generic Trace Generator (GTG) aims to provide a simple and generic interface for generating execution traces in several formats (OTF, Paje, etc.). It is used by EZTrace and ViTE, but it can also be used by any application. %package devel Summary: Development files for %name Requires: %name%{?_isa} = %version-%release Requires: openmpi-devel%{_isa} %description devel Development files for %name. %prep %setup -q -n gtg-%mainver-%subver mkdir openmpi %build %global _configure ../configure cd openmpi %_openmpi_load %configure --with-otf-lib=$MPI_LIB \ --with-otf-include=$MPI_INCLUDE/vampirtrace/open-trace-format \ CC=mpicc F77=mpif90 CXX=mpicxx LIBS=-lopen-trace-format \ --libdir=$MPI_LIB --includedir=$MPI_INCLUDE --bindir=$MPI_BIN \ LDFLAGS=-Wl,--as-needed %make_build %install %make_install -C openmpi chrpath -d %buildroot%_libdir/openmpi/bin/* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc README AUTHORS ChangeLog %exclude %_libdir/openmpi/lib/*a # %exclude %_docdir/html # %exclude %_docdir/*pdf %_libdir/openmpi/bin/gtg* %_libdir/openmpi/lib/*.so.* %files devel %doc doc/html doc/*.pdf %_includedir/openmpi-%_arch/GTG* %_libdir/openmpi/lib/*.so %dir %_libdir/openmpi/lib/pkgconfig %_libdir/openmpi/lib/pkgconfig/gtg.pc %changelog * Thu Nov 29 2018 Dave Love - 0.2.%subver-2 - Filter libopen-trace-format from requires * Tue Jan 12 2016 Dave Love - 0.2.2-1 - Initial packaging