Blame SPECS/babeltrace.spec

64a1f6
Name:           babeltrace
64a1f6
Version:        1.5.8
82a41e
Release:        10%{?dist}
64a1f6
Summary:        Trace Viewer and Converter, mainly for the Common Trace Format
64a1f6
License:        MIT and GPLv2
64a1f6
URL:            https://www.efficios.com/babeltrace
64a1f6
Source0:        https://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2
64a1f6
Source1:        https://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2.asc
64a1f6
# gpg2 --export --export-options export-minimal 7F49314A26E0DE78427680E05F1B2A0789F12B11 > gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
64a1f6
Source2:        gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
64a1f6
Patch0:         python39.patch
82a41e
Patch1:         babeltrace-getaddrinfo.patch
64a1f6
64a1f6
BuildRequires:  bison >= 2.4
64a1f6
BuildRequires:  flex >= 2.5.35
64a1f6
BuildRequires:  glib2-devel >= 2.22.0
64a1f6
BuildRequires:  libuuid-devel
64a1f6
BuildRequires:  popt-devel >= 1.13
64a1f6
BuildRequires:  python3-devel
64a1f6
BuildRequires:  swig >= 2.0
64a1f6
BuildRequires:  elfutils-devel >= 0.154
64a1f6
BuildRequires:  autoconf automake libtool
64a1f6
BuildRequires:  gnupg2
64a1f6
BuildRequires: make
64a1f6
64a1f6
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
64a1f6
64a1f6
%description
64a1f6
This project provides trace read and write libraries, as well as a trace
64a1f6
converter. A plugin can be created for any trace format to allow its conversion
64a1f6
to/from another trace format.
64a1f6
64a1f6
The main format expected to be converted to/from is the Common Trace
64a1f6
Format (CTF). See http://www.efficios.com/ctf.
64a1f6
64a1f6
64a1f6
%package -n lib%{name}
64a1f6
Summary:        Common Trace Format Babel Tower
64a1f6
64a1f6
%description -n lib%{name}
64a1f6
This project provides trace read and write libraries, as well as a trace
64a1f6
converter. A plugin can be created for any trace format to allow its conversion
64a1f6
to/from another trace format.
64a1f6
64a1f6
64a1f6
%package -n lib%{name}-devel
64a1f6
Summary:        Common Trace Format Babel Tower
64a1f6
Requires:       lib%{name}%{?_isa} = %{version}-%{release} glib2-devel
64a1f6
64a1f6
%description -n lib%{name}-devel
64a1f6
This project provides trace read and write libraries, as well as a trace
64a1f6
converter. A plugin can be created for any trace format to allow its conversion
64a1f6
to/from another trace format.
64a1f6
64a1f6
64a1f6
%package -n python3-%{name}
64a1f6
Summary:        Common Trace Format Babel Tower
64a1f6
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
64a1f6
64a1f6
%description -n python3-%{name}
64a1f6
This project provides trace read and write libraries, as well as a trace
64a1f6
converter. A plugin can be created for any trace format to allow its conversion
64a1f6
to/from another trace format.
64a1f6
64a1f6
64a1f6
%prep
64a1f6
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
64a1f6
%autosetup -p1
64a1f6
64a1f6
%build
64a1f6
# Reinitialize libtool with the fedora version to remove Rpath
64a1f6
autoreconf -vif
64a1f6
64a1f6
export PYTHON=%{__python3}
64a1f6
export PYTHON_CONFIG=%{__python3}-config
64a1f6
%configure --disable-static --enable-python-bindings
64a1f6
64a1f6
make %{?_smp_mflags} V=1
64a1f6
64a1f6
%check
64a1f6
make check
64a1f6
64a1f6
%install
64a1f6
make DESTDIR=%{buildroot} install
64a1f6
find %{buildroot} -type f -name "*.la" -delete
64a1f6
# Clean installed doc
64a1f6
rm -f %{buildroot}/%{_pkgdocdir}/API.txt
64a1f6
rm -f %{buildroot}/%{_pkgdocdir}/LICENSE
64a1f6
rm -f %{buildroot}/%{_pkgdocdir}/gpl-2.0.txt
64a1f6
rm -f %{buildroot}/%{_pkgdocdir}/mit-license.txt
64a1f6
rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt
64a1f6
64a1f6
%ldconfig_scriptlets  -n lib%{name}
64a1f6
64a1f6
%files
64a1f6
%doc ChangeLog
64a1f6
%doc doc/lttng-live.txt
64a1f6
%{_bindir}/%{name}*
64a1f6
%{_mandir}/man1/*.1*
64a1f6
64a1f6
%files -n lib%{name}
64a1f6
%doc doc/API.txt
64a1f6
%doc std-ext-lib.txt
64a1f6
%{!?_licensedir:%global license %%doc}
64a1f6
%license LICENSE gpl-2.0.txt mit-license.txt
64a1f6
%{_libdir}/*.so.*
64a1f6
64a1f6
%files -n lib%{name}-devel
64a1f6
%{_prefix}/include/*
64a1f6
%{_libdir}/*.so
64a1f6
%{_libdir}/pkgconfig/babeltrace.pc
64a1f6
%{_libdir}/pkgconfig/babeltrace-ctf.pc
64a1f6
64a1f6
%files -n python3-%{name}
64a1f6
%{python3_sitearch}/babeltrace
64a1f6
%{python3_sitearch}/babeltrace*.egg-info
64a1f6
64a1f6
64a1f6
%changelog
82a41e
* Wed Mar 16 2022 Bruno Larsen <blarsen@redhat.com> - 1.5.8-10
82a41e
- Use getaddrinfo instead of gethostbyname.
82a41e
  (Keith Seitz)
82a41e
82a41e
* Tue Mar 15 2022 Bruno Larsen <blarsen@redhat.com> - 1.6.8-9
82a41e
- Bumped NVR to release subpackage
82a41e
  Related: rhbz#2058409
82a41e
64a1f6
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.8-8
64a1f6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
64a1f6
  Related: rhbz#1991688
64a1f6
64a1f6
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.8-7
64a1f6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
64a1f6
64a1f6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.8-6
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
64a1f6
64a1f6
* Mon Nov 16 2020 Keith Seitz <keiths@redhat.com> - 1.5.8-5
64a1f6
- Remove workaround for 1890813 now that binutils is fixed.
64a1f6
64a1f6
* Mon Oct 26 2020 Keith Seitz <keiths@redhat.com> - 1.5.8-4
64a1f6
- Workaround __openat_missing_mode compiler error.
64a1f6
  (Keith Seitz, RH BZ 1890813)
64a1f6
64a1f6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.8-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
64a1f6
64a1f6
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.8-2
64a1f6
- Rebuilt for Python 3.9
64a1f6
64a1f6
* Wed Feb 12 2020 Michael Jeanson <mjeanson@efficios.com> - 1.5.8-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-6
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
64a1f6
64a1f6
* Thu Jan 16 2020 Michael Jeanson <mjeanson@efficios.com> - 1.5.7-5
64a1f6
- Add Python 3.9 patch
64a1f6
64a1f6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.7-4
64a1f6
- Rebuilt for Python 3.8.0rc1 (#1748018)
64a1f6
64a1f6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.7-3
64a1f6
- Rebuilt for Python 3.8
64a1f6
64a1f6
* Wed Jul 24 2019 Michael Jeanson <mjeanson@efficios.com> - 1.5.7-2
64a1f6
- Add GPG source file verification
64a1f6
64a1f6
* Wed Jul 24 2019 Michael Jeanson <mjeanson@efficios.com> - 1.5.7-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
64a1f6
64a1f6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
64a1f6
64a1f6
* Tue Jul 24 2018 Michael Jeanson <mjeanson@efficios.com> - 1.5.6-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
64a1f6
64a1f6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-2
64a1f6
- Rebuilt for Python 3.7
64a1f6
64a1f6
* Tue Mar 27 2018 Michael Jeanson <mjeanson@efficios.com> - 1.5.5-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Fri Feb 16 2018 2018 Lumír Balhar <lbalhar@redhat.com> - 1.5.4-2
64a1f6
- Fix directory ownership in python3 subpackage
64a1f6
64a1f6
* Tue Feb 13 2018 Michael Jeanson <mjeanson@efficios.com> - 1.5.4-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
64a1f6
64a1f6
* Wed Aug 09 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.3-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
64a1f6
64a1f6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
64a1f6
64a1f6
* Fri Mar 03 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.2-2
64a1f6
- Revert python3 macro changes
64a1f6
64a1f6
* Wed Mar 01 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.2-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
64a1f6
64a1f6
* Mon Jan 09 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.1-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
64a1f6
- Rebuild for Python 3.6
64a1f6
64a1f6
* Wed Nov 30 2016 Michael Jeanson <mjeanson@efficios.com> - 1.5.0-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
64a1f6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
64a1f6
64a1f6
* Wed Jun 22 2016 Michael Jeanson <mjeanson@efficios.com> - 1.4.0-2
64a1f6
- Re-add rpath removing
64a1f6
64a1f6
* Tue Jun 21 2016 Michael Jeanson <mjeanson@efficios.com> - 1.4.0-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
64a1f6
64a1f6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
64a1f6
64a1f6
* Tue Jul 28 2015 Michael Jeanson <mjeanson@gmail.com> - 1.2.4-2
64a1f6
- Added python3 bindings module
64a1f6
64a1f6
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.4.1
64a1f6
- Update to 1.2.4
64a1f6
64a1f6
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.1-5
64a1f6
- Fix FTBFS, use %%license
64a1f6
64a1f6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
64a1f6
64a1f6
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
64a1f6
64a1f6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64a1f6
64a1f6
* Thu Mar 27 2014 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.2.1-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Sat Mar 01 2014 Suchakra Sharma <suchakra@fedoraproject.org> - 1.2.0-1
64a1f6
- New upstream release
64a1f6
- Popt patch for babeltrace.pc.in removed. Its fixed in Fedora now
64a1f6
- Add new file (babeltrace-ctf.pc)
64a1f6
64a1f6
* Mon Aug 05 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.1-3
64a1f6
- Remove reference to versionned docdir (#992011)
64a1f6
64a1f6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64a1f6
64a1f6
* Mon Jul 22 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.1-1
64a1f6
- New upstream bugfix release
64a1f6
64a1f6
* Tue May 28 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.0-1
64a1f6
- New upstream release
64a1f6
- Patch babeltrace.pc to not depends on popt.pc, as it does not exist in Fedora
64a1f6
64a1f6
* Tue Feb 26 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.3-1
64a1f6
- New upstream release
64a1f6
- Add pkg-config file to devel package (#913895)
64a1f6
64a1f6
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
64a1f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
64a1f6
64a1f6
* Fri Jan 18 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.2-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Tue Jan 15 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-3
64a1f6
- Change documentation directory to proper versionned one. 
64a1f6
64a1f6
* Mon Jan 14 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-2
64a1f6
- Use autoreconf rpath fix because the sed one was breaking the make check
64a1f6
- Use correct tar file version
64a1f6
- Package documentations in the right packages
64a1f6
64a1f6
* Mon Oct 29 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-1
64a1f6
- New upstream release
64a1f6
64a1f6
* Tue Oct 02 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-0.1.rc5
64a1f6
- New upstream release candidate
64a1f6
* Thu Jul 05 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-0.1.rc4
64a1f6
- New package, inspired by the one from OpenSuse 
64a1f6