408d987
# Note that we could package and use sionlib, which can improve otf2
408d987
# scalability, but it's not clear how worthwhile that might be for the
408d987
# packaging.  A maintainer says it will help around 8000 processes,
408d987
# and maybe fewer, and that building with it still allows reading and
408d987
# writing of non-sionlib traces.
408d987
202f4a4
Name:           otf2
8903c61
Version:        2.3
a124fd1
Release:        4%{?dist}
202f4a4
Summary:        Open Trace Format 2 library
202f4a4
202f4a4
License:        BSD
8719fed
URL:            http://score-p.org
8903c61
Source0:        http://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/%{name}-%{version}/%{name}-%{version}.tar.gz
e4dba36
# fedpkg new-sources apparently can't cope with both otf2-1.5.1 and
e4dba36
# otf2-2.2 tarballs.
e4dba36
%{?el7:Source1:        https://www.vi-hps.org/cms/upload/packages/otf2/otf2-1.5.1.tar.gz}
8719fed
# Avoid -rpath in otf2-config output
8719fed
Patch1:         otf2-rpath.patch
8903c61
# Fix AC_CONFIG_MACRO_DIR and remove $(srcdir) from TESTS (1.5.1 source)
e4dba36
%{?el7:Patch3:         otf2-autoconf.patch}
f96e99b
BuildRequires: make
8719fed
BuildRequires:  gcc-c++
8719fed
BuildRequires:  chrpath dos2unix
202f4a4
202f4a4
202f4a4
%description
202f4a4
The Open Trace Format 2 (OTF2) is a highly scalable, memory efficient
202f4a4
event trace data format plus support library.
202f4a4
202f4a4
202f4a4
%package        devel
202f4a4
Summary:        Development files for %{name}
202f4a4
Requires:       %{name}%{?_isa} = %{version}-%{release}
202f4a4
202f4a4
%description    devel
202f4a4
The %{name}-devel package contains libraries and header files for
202f4a4
developing applications that use %{name}.
202f4a4
202f4a4
202f4a4
%package        doc
202f4a4
Summary:        Development files for %{name}
202f4a4
BuildArch:      noarch
202f4a4
202f4a4
%description    doc
202f4a4
The %{name}-doc package contains documentation files for %{name}.
202f4a4
8719fed
# Python packages can't be noarch as they require arch-specific otf2
8719fed
8719fed
%package -n python%{python3_pkgversion}-otf2
8719fed
Summary:        Python 3 bindings for %{name}
8719fed
BuildRequires:  python%{python3_pkgversion}-devel
78e6a5e
BuildRequires:  python%{python3_pkgversion}-six
8719fed
Requires:       python%{python3_pkgversion}-jinja2 python%{python3_pkgversion}-six
8719fed
Requires:       python%{python3_pkgversion}-future
8719fed
Requires:       %{name}%{?_isa} = %{version}-%{release}
8719fed
8719fed
%description -n python%{python3_pkgversion}-otf2
8719fed
Python 3 bindings for %{name}.
8719fed
8719fed
%if 0%{?el7}
8719fed
%package compat
8719fed
Summary:        Compatibility library for %name version 1.
8903c61
BuildRequires:  libtool automake
8719fed
8719fed
%description compat
8719fed
Compatibility library for %name version 1.
8719fed
%endif
202f4a4
202f4a4
%prep
202f4a4
%setup -q
8719fed
%patch1 -p1 -b .rpath
8719fed
# Remove ldflags
8719fed
sed -i -s '/deps.GetLDFlags/d' src/tools/otf2_config/otf2_config.cpp
8719fed
dos2unix doc/examples/otf2_high_level_writer_example.py
8719fed
%if 0%{?el7}
8719fed
tar fx %SOURCE1
8719fed
cd otf2-1.5.1
8719fed
%patch3 -p1
Orion Poplawski 82aee5c
for d in . build-backend build-frontend
Orion Poplawski 82aee5c
do
Orion Poplawski 82aee5c
  cd $d
Orion Poplawski 82aee5c
  autoreconf -f -i -v
Orion Poplawski 82aee5c
  cd -
Orion Poplawski 82aee5c
done
8719fed
%endif
202f4a4
202f4a4
%build
8719fed
export PYTHON_FOR_GENERATOR=:
202f4a4
%configure --disable-static --enable-shared --disable-silent-rules \
Orion Poplawski 82aee5c
 --docdir=%{_pkgdocdir} --enable-backend-test-runs --with-platform=linux
8903c61
# With the binary extension, we should be installing into sitearch,
8903c61
# not sitelib which otherwise gets used.  This is the easiest
8903c61
# solution.  Fixme: patch to do the right thing.
8903c61
sed -i -e '/"pythondir".*=/s;=.*$;="%{python3_sitearch}";' build-backend/config.status
8903c61
./config.status
8719fed
%make_build
587460a
%if 0%{?el7}
8719fed
pushd otf2-1.5.1
8719fed
%configure --disable-static --enable-shared --disable-silent-rules \
8719fed
 --docdir=%{_pkgdocdir} --with-platform=linux
8719fed
%make_build
8719fed
popd
587460a
%endif
202f4a4
202f4a4
202f4a4
%install
202f4a4
%make_install
8719fed
find %{buildroot} -name '*.la' -delete
8719fed
cp -p AUTHORS ChangeLog README %{buildroot}%{_pkgdocdir}/
8719fed
chrpath -d %{buildroot}%{_bindir}/otf2-{marker,print,snapshots,estimator,config}
8719fed
rm %{buildroot}%{_pkgdocdir}/python/.buildinfo
587460a
%if 0%{?el7}
8719fed
%make_install -C otf2-1.5.1 DESTDIR=$(pwd)/otf2-1.5.1
8719fed
cp -a otf2-1.5.1%{_libdir}/libotf2.so.5* %{buildroot}%{_libdir}
587460a
%endif
202f4a4
202f4a4
202f4a4
%check
202f4a4
make check
202f4a4
202f4a4
8719fed
%ldconfig_scriptlets
8903c61
%{?el7:%ldconfig_scriptlets compat}
202f4a4
202f4a4
202f4a4
%files
8719fed
%license COPYING
Orion Poplawski 82aee5c
%{_bindir}/%{name}-estimator
202f4a4
%{_bindir}/%{name}-marker
202f4a4
%{_bindir}/%{name}-print
202f4a4
%{_bindir}/%{name}-snapshots
8719fed
%{_libdir}/lib%{name}.so.7*
202f4a4
%dir %{_datadir}/%{name}/
Orion Poplawski 82aee5c
%{_datadir}/%{name}/%{name}.summary
8719fed
%{_pkgdocdir}/AUTHORS
8719fed
%{_pkgdocdir}/ChangeLog
8719fed
%{_pkgdocdir}/OPEN_ISSUES
8719fed
%{_pkgdocdir}/README
Orion Poplawski 82aee5c
%exclude %{_pkgdocdir}/html
Orion Poplawski 82aee5c
%exclude %{_pkgdocdir}/pdf
Orion Poplawski 82aee5c
%exclude %{_pkgdocdir}/tags
202f4a4
202f4a4
%files devel
202f4a4
%{_bindir}/%{name}-config
202f4a4
%{_includedir}/%{name}/
202f4a4
%{_libdir}/lib%{name}.so
202f4a4
202f4a4
%files doc
8719fed
%license COPYING
Orion Poplawski 82aee5c
%dir %{_pkgdocdir}
8719fed
%{_pkgdocdir}/examples/
Orion Poplawski 82aee5c
%{_pkgdocdir}/html/
Orion Poplawski 82aee5c
%{_pkgdocdir}/pdf/
Orion Poplawski 82aee5c
%{_pkgdocdir}/tags/
8719fed
%{_pkgdocdir}/python/
8719fed
8719fed
%files -n python%{python3_pkgversion}-otf2
8903c61
%{python3_sitearch}/%{name}/
8903c61
%{python3_sitearch}/_%{name}/
8903c61
%{_datadir}/%{name}/python
202f4a4
8719fed
%if 0%{?el7}
8719fed
%files compat
8719fed
%{_libdir}/libotf2.so.5*
8719fed
%endif
202f4a4
202f4a4
%changelog
a124fd1
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4
a124fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a124fd1
6f73976
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
6f73976
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
6f73976
d019dd0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3-2
d019dd0
- Rebuilt for Python 3.10
d019dd0
8903c61
* Tue Apr 13 2021 Dave Love <loveshack@fedoraproject.org> - 2.3-1
8903c61
- New version
8903c61
- Update source URL
8903c61
- Remove jinja patch
8903c61
- Drop broken python2 package (not supported recently for want of builtins
8903c61
  module)
8903c61
- Install python in sitearch directory, not sitelib
8903c61
a4adbf3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-13
a4adbf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a4adbf3
69ac5fb
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-12
69ac5fb
- Second attempt - Rebuilt for
69ac5fb
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
69ac5fb
ee80882
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-11
ee80882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ee80882
4f87bfc
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.2-10
4f87bfc
- Rebuilt for Python 3.9
4f87bfc
78e6a5e
* Sun Feb 23 2020 Orion Poplawski <orion@nwra.com> - 2.2-9
78e6a5e
- Drop python2 for EL8
78e6a5e
- Really build python bindings
78e6a5e
93d8461
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-8
93d8461
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
93d8461
e4dba36
* Mon Jan 20 2020 Dave love <loveshack@fedoraproject.org> - 2.2-7
e4dba36
- Re-sync epel7 and rawhide for Source1
e4dba36
e3845b8
* Fri Jan 17 2020 Jeff Law <law@redhat.com> - 2.2-6
e3845b8
- Comment out nonexistent Source1
e3845b8
587460a
* Fri Jan 17 2020 Dave love <loveshack@fedoraproject.org> - 2.2-6
587460a
- Fix FTBFS due to bad el7 conditionals (#1791678)
587460a
15201a9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2-5
15201a9
- Rebuilt for Python 3.8.0rc1 (#1748018)
15201a9
8719fed
* Fri Aug 30 2019 Dave love <loveshack@fedoraproject.org> - 2.2-4
8719fed
- Provide -compat package for el7
8719fed
8719fed
* Tue Aug 20 2019 Dave love <loveshack@fedoraproject.org> - 2.2-3
8719fed
- Avoid generating otf2-template (#1738058)
8719fed
8719fed
* Fri Aug 16 2019 Dave love <loveshack@fedoraproject.org> - 2.2-2
8719fed
- Make python2 and python3 packages (#1738058)
8719fed
- Require python{2,3}-six, python{2,3}-future
8719fed
8719fed
* Thu Aug  1 2019 Dave love <loveshack@fedoraproject.org> - 2.2-1
8719fed
- New version
8719fed
- Update URLs
8719fed
8719fed
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8719fed
8719fed
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8719fed
8719fed
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8719fed
8719fed
* Mon May 21 2018 Orion Poplawski <orion@nwra.com> - 2.1.1-1
8719fed
- Update to 2.1.1
8719fed
8719fed
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1-3
8719fed
- Update Python 2 dependency declarations to new packaging standards
8719fed
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8719fed
8719fed
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8719fed
8719fed
* Fri Sep 15 2017 Dave Love <loveshack@fedoraproject.org> - 2.1-1
8719fed
- Update to 2.1
8719fed
- Re-do jinja patch
8719fed
- Fix line endings and use of rpath; add otf2-rpath.patch
8719fed
8719fed
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-4
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8719fed
8719fed
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8719fed
8719fed
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8719fed
8719fed
* Thu Apr 14 2016 Orion Poplawski <orion@cora.nwra.com> - 2.0-1
8719fed
- Update to 2.0
8719fed
8719fed
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8719fed
8719fed
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3
8719fed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8719fed
8719fed
* Mon Apr 13 2015 Orion Poplawski <orion@cora.nwra.com> - 1.5.1-2
8719fed
- BR autoconf268 on el6 and use it
8719fed
- Do not apply autoconf patch and only autoreconf top level on el6
8719fed
- Fixup doc install
8719fed
Orion Poplawski 17455c8
* Wed Feb 11 2015 Orion Poplawski <orion@cora.nwra.com> - 1.5.1-1
Orion Poplawski 17455c8
- Update to 1.5.1
Orion Poplawski 17455c8
05acb3a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
05acb3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
05acb3a
Orion Poplawski 97029a9
* Wed Jul 16 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4-2
Orion Poplawski 97029a9
- Remove ldflags output from otf2-config
Orion Poplawski 97029a9
Orion Poplawski 82aee5c
* Tue Jul 15 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4-1
Orion Poplawski 82aee5c
- Update to 1.4
Orion Poplawski 82aee5c
- Add patch to allow running autoreconf to remove rpaths
Orion Poplawski 82aee5c
ffeb018
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
ffeb018
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ffeb018
202f4a4
* Thu Oct 24 2013 Orion Poplawski <orion@cora.nwra.com> - 1.2.1-4
202f4a4
- Move otf2-config back to -devel
202f4a4
202f4a4
* Mon Oct 21 2013 Orion Poplawski <orion@cora.nwra.com> - 1.2.1-3
202f4a4
- Add BR python2-devel
202f4a4
- Add Requires jinja2
202f4a4
- Exclude docs from main package
202f4a4
- Rebase jinja2 patch
202f4a4
202f4a4
* Wed Oct 2 2013 Orion Poplawski <orion@cora.nwra.com> - 1.2.1-2
202f4a4
- Fix rpath with configure change
202f4a4
202f4a4
* Wed Sep 25 2013 Orion Poplawski <orion@cora.nwra.com> - 1.2.1-1
202f4a4
- Initial package