Blame SPECS/babeltrace.spec

2889f9
Name:           babeltrace
2889f9
Version:        1.5.4
16fafd
Release:        4%{?dist}
2889f9
Summary:        Trace Viewer and Converter, mainly for the Common Trace Format
2889f9
License:        MIT and GPLv2
2889f9
URL:            https://www.efficios.com/babeltrace
2889f9
Source0:        https://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2
2889f9
Group:          Development/Tools
2889f9
2889f9
BuildRequires:  bison >= 2.4
2889f9
BuildRequires:  flex >= 2.5.35
2889f9
BuildRequires:  glib2-devel >= 2.22.0
2889f9
BuildRequires:  libuuid-devel
2889f9
BuildRequires:  popt-devel >= 1.13
2889f9
BuildRequires:  python3-devel
2889f9
BuildRequires:  swig >= 2.0
2889f9
BuildRequires:  elfutils-devel >= 0.154
2889f9
BuildRequires:  autoconf automake libtool
2889f9
# For check
2889f9
BuildRequires:  perl-Test-Harness
2889f9
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
2889f9
2889f9
%description
2889f9
This project provides trace read and write libraries, as well as a trace
2889f9
converter. A plugin can be created for any trace format to allow its conversion
2889f9
to/from another trace format.
2889f9
2889f9
The main format expected to be converted to/from is the Common Trace
2889f9
Format (CTF). See http://www.efficios.com/ctf.
2889f9
2889f9
2889f9
%package -n lib%{name}
2889f9
Summary:        Common Trace Format Babel Tower
2889f9
Group:          Development/Libraries
2889f9
2889f9
%description -n lib%{name}
2889f9
This project provides trace read and write libraries, as well as a trace
2889f9
converter. A plugin can be created for any trace format to allow its conversion
2889f9
to/from another trace format.
2889f9
2889f9
2889f9
%package -n lib%{name}-devel
2889f9
Summary:        Common Trace Format Babel Tower
2889f9
Group:          Development/Libraries
2889f9
Requires:       lib%{name}%{?_isa} = %{version}-%{release} glib2-devel
2889f9
2889f9
%description -n lib%{name}-devel
2889f9
This project provides trace read and write libraries, as well as a trace
2889f9
converter. A plugin can be created for any trace format to allow its conversion
2889f9
to/from another trace format.
2889f9
2889f9
2889f9
%package -n python3-%{name}
2889f9
Summary:        Common Trace Format Babel Tower
2889f9
Group:          Development/Libraries
2889f9
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
2889f9
2889f9
%description -n python3-%{name}
2889f9
This project provides trace read and write libraries, as well as a trace
2889f9
converter. A plugin can be created for any trace format to allow its conversion
2889f9
to/from another trace format.
2889f9
2889f9
2889f9
%prep
2889f9
%setup -q
2889f9
2889f9
%build
2889f9
# Reinitialize libtool with the fedora version to remove Rpath
2889f9
autoreconf -vif
2889f9
2889f9
export PYTHON=%{__python3}
2889f9
export PYTHON_CONFIG=%{__python3}-config
2889f9
%configure --disable-static --enable-python-bindings
2889f9
2889f9
make %{?_smp_mflags} V=1
2889f9
2889f9
%check
2889f9
make check
2889f9
2889f9
%install
2889f9
make DESTDIR=%{buildroot} install
2889f9
find %{buildroot} -type f -name "*.la" -delete
2889f9
# Clean installed doc
2889f9
rm -f %{buildroot}/%{_pkgdocdir}/API.txt
2889f9
rm -f %{buildroot}/%{_pkgdocdir}/LICENSE
2889f9
rm -f %{buildroot}/%{_pkgdocdir}/gpl-2.0.txt
2889f9
rm -f %{buildroot}/%{_pkgdocdir}/mit-license.txt
2889f9
rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt
2889f9
2889f9
%post  -n lib%{name} -p /sbin/ldconfig
2889f9
%postun -n lib%{name} -p /sbin/ldconfig
2889f9
2889f9
%files
2889f9
%doc ChangeLog
2889f9
%doc doc/lttng-live.txt
2889f9
%{_bindir}/%{name}*
2889f9
%{_mandir}/man1/*.1*
2889f9
2889f9
%files -n lib%{name}
2889f9
%doc doc/API.txt
2889f9
%doc std-ext-lib.txt
2889f9
%{!?_licensedir:%global license %%doc}
2889f9
%license LICENSE gpl-2.0.txt mit-license.txt
2889f9
%{_libdir}/*.so.*
2889f9
2889f9
%files -n lib%{name}-devel
2889f9
%{_prefix}/include/*
2889f9
%{_libdir}/*.so
2889f9
%{_libdir}/pkgconfig/babeltrace.pc
2889f9
%{_libdir}/pkgconfig/babeltrace-ctf.pc
2889f9
2889f9
%files -n python3-%{name}
2889f9
%{python3_sitearch}/babeltrace
2889f9
%{python3_sitearch}/babeltrace*.egg-info
2889f9
2889f9
2889f9
%changelog
16fafd
* Wed Mar  2 2022 Bruno Larsen <blarsen@redhat.com> - 1.5.4-4
16fafd
- Bump NVR for subpackage release.
16fafd
2889f9
* Wed Jul  1 2020 Keith Seitz <keiths@redhat.com> - 1.5.4-3
2889f9
- Bump NVR for BaseOS move.
2889f9
2889f9
* Fri Feb 16 2018 2018 Lumír Balhar <lbalhar@redhat.com> - 1.5.4-2
2889f9
- Fix directory ownership in python3 subpackage
2889f9
2889f9
* Tue Feb 13 2018 Michael Jeanson <mjeanson@efficios.com> - 1.5.4-1
2889f9
- New upstream release
2889f9
2889f9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2889f9
2889f9
* Wed Aug 09 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.3-1
2889f9
- New upstream release
2889f9
2889f9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2889f9
2889f9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2889f9
2889f9
* Fri Mar 03 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.2-2
2889f9
- Revert python3 macro changes
2889f9
2889f9
* Wed Mar 01 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.2-1
2889f9
- New upstream release
2889f9
2889f9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2889f9
2889f9
* Mon Jan 09 2017 Michael Jeanson <mjeanson@efficios.com> - 1.5.1-1
2889f9
- New upstream release
2889f9
2889f9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
2889f9
- Rebuild for Python 3.6
2889f9
2889f9
* Wed Nov 30 2016 Michael Jeanson <mjeanson@efficios.com> - 1.5.0-1
2889f9
- New upstream release
2889f9
2889f9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
2889f9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2889f9
2889f9
* Wed Jun 22 2016 Michael Jeanson <mjeanson@efficios.com> - 1.4.0-2
2889f9
- Re-add rpath removing
2889f9
2889f9
* Tue Jun 21 2016 Michael Jeanson <mjeanson@efficios.com> - 1.4.0-1
2889f9
- New upstream release
2889f9
2889f9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2889f9
2889f9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2889f9
2889f9
* Tue Jul 28 2015 Michael Jeanson <mjeanson@gmail.com> - 1.2.4-2
2889f9
- Added python3 bindings module
2889f9
2889f9
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.4.1
2889f9
- Update to 1.2.4
2889f9
2889f9
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.1-5
2889f9
- Fix FTBFS, use %%license
2889f9
2889f9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2889f9
2889f9
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2889f9
2889f9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2889f9
2889f9
* Thu Mar 27 2014 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.2.1-1
2889f9
- New upstream release
2889f9
2889f9
* Sat Mar 01 2014 Suchakra Sharma <suchakra@fedoraproject.org> - 1.2.0-1
2889f9
- New upstream release
2889f9
- Popt patch for babeltrace.pc.in removed. Its fixed in Fedora now
2889f9
- Add new file (babeltrace-ctf.pc)
2889f9
2889f9
* Mon Aug 05 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.1-3
2889f9
- Remove reference to versionned docdir (#992011)
2889f9
2889f9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2889f9
2889f9
* Mon Jul 22 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.1-1
2889f9
- New upstream bugfix release
2889f9
2889f9
* Tue May 28 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.1.0-1
2889f9
- New upstream release
2889f9
- Patch babeltrace.pc to not depends on popt.pc, as it does not exist in Fedora
2889f9
2889f9
* Tue Feb 26 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.3-1
2889f9
- New upstream release
2889f9
- Add pkg-config file to devel package (#913895)
2889f9
2889f9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
2889f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2889f9
2889f9
* Fri Jan 18 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.2-1
2889f9
- New upstream release
2889f9
2889f9
* Tue Jan 15 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-3
2889f9
- Change documentation directory to proper versionned one. 
2889f9
2889f9
* Mon Jan 14 2013 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-2
2889f9
- Use autoreconf rpath fix because the sed one was breaking the make check
2889f9
- Use correct tar file version
2889f9
- Package documentations in the right packages
2889f9
2889f9
* Mon Oct 29 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-1
2889f9
- New upstream release
2889f9
2889f9
* Tue Oct 02 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-0.1.rc5
2889f9
- New upstream release candidate
2889f9
* Thu Jul 05 2012 Yannick Brosseau <yannick.brosseau@gmail.com> - 1.0.0-0.1.rc4
2889f9
- New package, inspired by the one from OpenSuse 
2889f9