babeltrace/babeltrace.spec

122 lines
3.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:32:09 -04:00
Name: babeltrace
2020-07-16 03:04:53 +00:00
Version: 1.5.8
2021-09-04 10:31:39 +00:00
Release: 3
2019-09-30 10:32:09 -04:00
Summary: Common Trace Format Babel Tower
License: MIT and GPLv2
URL: https://www.efficios.com/babeltrace
Source0: https://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: bison >= 2.4 flex >= 2.5.35 glib2-devel >= 2.22.0
BuildRequires: popt-devel >= 1.13 swig >= 2.0 elfutils-devel >= 0.154
2021-09-04 10:31:39 +00:00
BuildRequires: libuuid-devel python3-devel libtool gcc perl-Test-Harness chrpath
2019-09-30 10:32:09 -04:00
Provides: lib%{name}
Obsoletes: lib%{name}
%description
Babeltrace is a trace format converter. It is able to read and write different trace
formats, such as the Common Trace Format (CTF). Babeltrace also acts as the CTF
reference implementation.
%package -n lib%{name}-devel
Summary: Common Trace Format Babel Tower
Requires: %{name} = %{version}-%{release} glib2-devel
%description -n lib%{name}-devel
Babeltrace is a trace format converter. It is able to read and write different trace
formats, such as the Common Trace Format (CTF). Babeltrace also acts as the CTF
reference implementation.
%package -n python3-%{name}
Summary: Common Trace Format Babel Tower
2020-02-28 16:09:46 +08:00
Requires: %{name} = %{version}-%{release}
2019-09-30 10:32:09 -04:00
%description -n python3-%{name}
Babeltrace is a trace format converter. It is able to read and write different trace
formats, such as the Common Trace Format (CTF). Babeltrace also acts as the CTF
reference implementation.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:32:09 -04:00
%build
export PYTHON=%{__python3}
export PYTHON_CONFIG=%{__python3}-config
%configure --disable-static --enable-python-bindings
%make_build
%install
rm -rf $RPM_BUILD_ROOT
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
#Remove installed doc
rm %{buildroot}/%{_docdir}/%{name}/{LICENSE,API.txt,gpl-2.0.txt,mit-license.txt,std-ext-lib.txt}
2021-09-04 10:31:39 +00:00
chrpath --delete %{buildroot}%{_bindir}/babeltrace
chrpath --delete %{buildroot}%{_bindir}/babeltrace-log
chrpath --delete %{buildroot}%{_libdir}/*.so.*
2019-09-30 10:32:09 -04:00
%check
make check
%pre
%preun
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%doc ChangeLog doc/lttng-live.txt
%license LICENSE gpl-2.0.txt mit-license.txt
%{_bindir}/%{name}*
%{_libdir}/lib%{name}*.so.*
%files -n lib%{name}-devel
%{_includedir}/%{name}
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/babeltrace.pc
%{_libdir}/pkgconfig/babeltrace-ctf.pc
%files -n python3-%{name}
%{python3_sitearch}/babeltrace
%{python3_sitearch}/babeltrace*.egg-info
%files help
%{_mandir}/man1/*.1.gz
%changelog
2021-09-04 10:31:39 +00:00
* Sat Sep 4 2021 Hongxun Ren<renhongxun@huawei.com> - 1.5.8-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove rpath
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.5.8-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
2020-07-16 03:04:53 +00:00
* Thu Jul 16 2020 wenzhanli<wenzhanli2@huawei.com> - 1.5.8-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update version 1.5.8
2020-02-28 16:09:46 +08:00
* Fri Feb 28 2020 chengquan<chengquan3@huawei.com> - 1.5.6-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix bug in spell check
2019-09-30 10:32:09 -04:00
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 1.5.6-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add help package
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.6-2
- Package init