summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuchakra Sharma <suchakra@fedoraproject.org>2015-07-28 23:36:16 -0400
committerSuchakra Sharma <suchakra@fedoraproject.org>2015-07-28 23:36:16 -0400
commited78fb4d51e013db937f858aec9bf4b1b0a9aa43 (patch)
treeb259d126bc5f4f39e8adb49db08d47597661b842
parentb0f33b034bd1e84717f2751ee8a83fa8c480e3cb (diff)
downloadbabeltrace-ed78fb4d51e013db937f858aec9bf4b1b0a9aa43.tar.gz
babeltrace-ed78fb4d51e013db937f858aec9bf4b1b0a9aa43.tar.xz
babeltrace-ed78fb4d51e013db937f858aec9bf4b1b0a9aa43.zip
Added python3 bindings module
-rw-r--r--babeltrace.spec47
1 files changed, 39 insertions, 8 deletions
diff --git a/babeltrace.spec b/babeltrace.spec
index a8a38ca..66d7ce9 100644
--- a/babeltrace.spec
+++ b/babeltrace.spec
@@ -1,18 +1,20 @@
Name: babeltrace
Version: 1.2.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Trace Viewer and Converter, mainly for the Common Trace Format
License: MIT and GPLv2
URL: http://www.efficios.com/babeltrace
Source0: http://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2
Group: Development/Tools
-BuildRequires: bison
-BuildRequires: flex
-BuildRequires: glib2-devel
+BuildRequires: bison >= 2.4
+BuildRequires: flex >= 2.5.35
+BuildRequires: glib2-devel >= 2.22.0
BuildRequires: libuuid-devel
-BuildRequires: libtool autoconf automake
-BuildRequires: popt-devel
+BuildRequires: libtool >= 2.2, autoconf, automake
+BuildRequires: popt-devel >= 1.13
+BuildRequires: python3-devel
+BuildRequires: swig >= 2.0
# For check
BuildRequires: perl-Test-Harness
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@@ -36,7 +38,6 @@ converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
-
%package -n lib%{name}-devel
Summary: Common Trace Format Babel Tower
Group: Development/Libraries
@@ -48,6 +49,17 @@ converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
+%package -n python3-%{name}
+Summary: Common Trace Format Babel Tower
+Group: Development/Libraries
+Requires: lib%{name}%{?_isa} = %{version}-%{release}
+
+%description -n python3-%{name}
+This project provides trace read and write libraries, as well as a trace
+converter. A plugin can be created for any trace format to allow its conversion
+to/from another trace format.
+
+
%prep
%setup -q
@@ -55,7 +67,8 @@ to/from another trace format.
#Re-run libtoolize and autoreconf to remove rpath
libtoolize --force --copy
autoreconf -v --install --force
-%configure --disable-static
+export PYTHON=%{__python3}
+%configure --disable-static --enable-python-bindings
make %{?_smp_mflags} V=1
@@ -65,16 +78,25 @@ make check
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete
+# Clean installed doc
+rm -f %{buildroot}/%{_pkgdocdir}/API.txt
+rm -f %{buildroot}/%{_pkgdocdir}/LICENSE
+rm -f %{buildroot}/%{_pkgdocdir}/gpl-2.0.txt
+rm -f %{buildroot}/%{_pkgdocdir}/mit-license.txt
+rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%doc ChangeLog
+%doc doc/lttng-live.txt
%{_bindir}/%{name}*
%{_mandir}/man1/*.1*
%files -n lib%{name}
+%doc doc/API.txt
+%doc std-ext-lib.txt
%{!?_licensedir:%global license %%doc}
%license LICENSE gpl-2.0.txt mit-license.txt
%{_libdir}/*.so.*
@@ -85,7 +107,16 @@ find %{buildroot} -type f -name "*.la" -delete
%{_libdir}/pkgconfig/babeltrace.pc
%{_libdir}/pkgconfig/babeltrace-ctf.pc
+%files -n python3-%{name}
+%{python3_sitelib}/babeltrace.py
+%{python3_sitelib}/__pycache__/*
+%{python3_sitearch}/
+
+
%changelog
+* Tue Jul 28 2015 Michael Jeanson <mjeanson@gmail.com> - 1.2.4-2
+- Added python3 bindings module
+
* Sun Jul 19 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.4.1
- Update to 1.2.4