forked from openhpc/ohpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split OTF2 from Score-P into own component
OTF2 is a component used by Score-P and currently installed as a part of the Score-P package, but can also be used as a completely independent component. Since there may be software version updates indepently from Score-P, split it into its own package which can be installed. Signed-off-by: Jan André Reuter <[email protected]>
- Loading branch information
Showing
3 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
OTF2 LICENSE AGREEMENT | ||
====================== | ||
|
||
Copyright (c) 2009-2012, RWTH Aachen University, Germany | ||
Copyright (c) 2009-2012, Gesellschaft fuer numerische Simulation mbH | ||
Braunschweig, Germany | ||
Copyright (c) 2009-2021, Technische Universitaet Dresden, Germany | ||
Copyright (c) 2009-2012, University of Oregon, Eugene, USA | ||
Copyright (c) 2009-2021, Forschungszentrum Juelich GmbH, Germany | ||
Copyright (c) 2009-2014, German Research School for Simulation Sciences GmbH, | ||
Juelich/Aachen, Germany | ||
Copyright (c) 2009-2013, Technische Universitaet Muenchen, Germany | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the names of | ||
RWTH Aachen University, | ||
Gesellschaft fuer numerische Simulation mbH Braunschweig, | ||
Technische Universitaet Dresden, | ||
University of Oregon, Eugene, | ||
Forschungszentrum Juelich GmbH, | ||
German Research School for Simulation Sciences GmbH, or the | ||
Technische Universitaet Muenchen, | ||
nor the names of their contributors may be used to endorse or promote | ||
products derived from this software without specific prior written | ||
permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
#----------------------------------------------------------------------------bh- | ||
# This RPM .spec file is part of the OpenHPC project. | ||
# | ||
# It may have been modified from the default version supplied by the underlying | ||
# release package (if available) in order to apply patches, perform customized | ||
# build/install configurations, and supply additional files to support | ||
# desired integration conventions. | ||
# | ||
#----------------------------------------------------------------------------eh- | ||
|
||
%include %{_sourcedir}/OHPC_macros | ||
|
||
# Base package name | ||
%define pname otf2 | ||
|
||
Summary: Open Trace Format 2 library | ||
Name: %{pname}%{PROJ_DELIM} | ||
Version: 3.0.3 | ||
Release: 1%{?dist} | ||
License: BSD-3-Clause | ||
|
||
URL: http://score-p.org | ||
Source0: http://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/%{name}-%{version}/%{name}-%{version}.tar.gz | ||
BuildRequires: gcc-c++ | ||
BuildRequires: make | ||
BuildRequires: which | ||
BuildRequires: chrpath dos2unix | ||
# Need a new py-compile for Python 3.12 | ||
BuildRequires: libtool automake | ||
Requires: lmod%{PROJ_DELIM} >= 7.6.1 | ||
|
||
Group: %{PROJ_NAME}/perf-tools | ||
|
||
# Default library install path | ||
%define install_path %{OHPC_LIBS}/%{pname}/%version | ||
|
||
%description | ||
The Open Trace Format 2 (OTF2) is a highly scalable, memory efficient | ||
event trace data format plus support library. | ||
|
||
%prep | ||
|
||
%setup -q -n %{pname}-%{version} | ||
dos2unix doc/examples/otf2_high_level_writer_example.py | ||
|
||
|
||
%build | ||
|
||
./configure --prefix=%{install_path} \ | ||
--disable-static \ | ||
--enable-shared \ | ||
--disable-silent-rules \ | ||
--enable-backend-test-runs \ | ||
--with-platform=linux \ | ||
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" | ||
|
||
make %{?_smp_mflags} V=1 | ||
|
||
%check | ||
|
||
make check | ||
|
||
%install | ||
|
||
make DESTDIR=$RPM_BUILD_ROOT install | ||
|
||
# don't package static libs | ||
rm -rf $RPM_BUILD_ROOT%{install_path}/lib/*.a \ | ||
$RPM_BUILD_ROOT%{install_path}/lib/*.la | ||
|
||
# OpenHPC module file | ||
%{__mkdir} -p %{buildroot}%{OHPC_MODULEDEPS}/%{pname} | ||
%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{pname}/%{version} | ||
#%Module1.0##################################################################### | ||
|
||
proc ModulesHelp { } { | ||
|
||
puts stderr " " | ||
puts stderr "This module loads the %{pname} library" | ||
puts stderr "\nVersion %{version}\n" | ||
|
||
} | ||
module-whatis "Name: %{pname}" | ||
module-whatis "Version: %{version}" | ||
module-whatis "Category: performance tool" | ||
module-whatis "Description: %{summary}" | ||
module-whatis "URL %{url}" | ||
|
||
set version %{version} | ||
|
||
prepend-path PATH %{install_path}/bin | ||
prepend-path MANPATH %{install_path}/share/man | ||
|
||
setenv %{PNAME}_DIR %{install_path} | ||
setenv %{PNAME}_BIN %{install_path}/bin | ||
|
||
EOF | ||
|
||
%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{pname}/.version.%{version} | ||
#%Module1.0##################################################################### | ||
## | ||
## version file for %{pname}-%{version} | ||
## | ||
set ModulesVersion "%{version}" | ||
EOF | ||
|
||
%{__mkdir} -p $RPM_BUILD_ROOT/%{_docdir} | ||
|
||
%files | ||
%{OHPC_PUB} | ||
%doc ChangeLog COPYING INSTALL OPEN_ISSUES README |