[packages/lttng-tools] - new

qboosh qboosh at pld-linux.org
Sun Jul 14 07:05:56 CEST 2013


commit ad796f31733b0d63adc3e3b8fc4bc1d40f8dd023
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 14 07:05:42 2013 +0200

    - new

 lttng-tools-python.patch |  11 ++++
 lttng-tools.spec         | 151 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 162 insertions(+)
---
diff --git a/lttng-tools.spec b/lttng-tools.spec
new file mode 100644
index 0000000..9314147
--- /dev/null
+++ b/lttng-tools.spec
@@ -0,0 +1,151 @@
+Summary:	LTTng Trace Control
+Summary(pl.UTF-8):	Sterowanie śledzeniem LTTng
+Name:		lttng-tools
+Version:	2.2.1
+Release:	1
+License:	LGPL v2.1+ (library), GPL v2 (tools)
+Group:		Libraries
+Source0:	http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2
+# Source0-md5:	deca9a29f0856385867ac3fcfbff99bc
+Patch0:		%{name}-python.patch
+URL:		http://lttng.org/
+BuildRequires:	autoconf >= 2.50
+BuildRequires:	automake >= 1:1.10
+BuildRequires:	libtool >= 2:2.2
+BuildRequires:	libuuid-devel
+BuildRequires:	lttng-ust-devel >= 2.2.0
+BuildRequires:	popt-devel >= 1.13
+BuildRequires:	python-devel
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	swig-python >= 2.0.0
+BuildRequires:	userspace-rcu-devel >= 0.7.2
+Requires:	popt >= 1.13
+Requires:	userspace-rcu >= 0.7.2
+Requires:	uname(release) >= 2.6.27
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LTTng Trace Control library and utilities.
+
+%description -l pl.UTF-8
+Biblioteka i narzędzia do sterowania śledzeniem LTTng.
+
+%package devel
+Summary:	Header files for LTTng control library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki sterującej LTTng
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libuuid-devel
+Requires:	popt-devel >= 1.13
+Requires:	userspace-rcu-devel >= 0.7.2
+
+%description devel
+Header files for LTTng control library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki sterującej LTTng.
+
+%package static
+Summary:	Static LTTng control library
+Summary(pl.UTF-8):	Statyczna biblioteka sterująca LTTng
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static LTTng control library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka sterująca LTTng.
+
+%package -n python-lttng
+Summary:	Python binding for LTTng
+Summary(pl.UTF-8):	Wiązanie Pythona do LTTng
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-lttng
+Python binding for LTTng.
+
+%description -n python-lttng -l pl.UTF-8
+Wiązanie Pythona do LTTng.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I config
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+# NOTE: DON'T replace /usr/lib* with %{_libdir} in configure options!
+%configure \
+	--disable-silent-rules \
+	--enable-python-bindings \
+	--with-babeltrace-bin=/usr/bin/babeltrace \
+%ifnarch alpha ia64
+	--with-consumerd32-bin=/usr/lib/lttng/libexec/lttng-consumerd \
+	--with-consumerd32-libdir=/usr/lib \
+%endif
+%ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
+	--with-consumerd64-bin=/usr/lib64/lttng/libexec/lttng-consumerd \
+	--with-consumerd64-libdir=/usr/lib64 \
+%endif
+	--with-lttv-gui-bin=/usr/bin/lttv-gui
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# library *.la kept - missing Requires.private
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_lttng.{la,a}
+%py_postclean
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/lttng-tools
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog LICENSE README TODO doc/{calibrate,quickstart,streaming-howto}.txt
+%attr(755,root,root) %{_bindir}/lttng
+%attr(755,root,root) %{_bindir}/lttng-relayd
+%attr(755,root,root) %{_bindir}/lttng-sessiond
+%attr(755,root,root) %{_libdir}/liblttng-ctl.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblttng-ctl.so.0
+%dir %{_libdir}/lttng
+%dir %{_libdir}/lttng/libexec
+%attr(755,root,root) %{_libdir}/lttng/libexec/lttng-consumerd
+%{_mandir}/man1/lttng.1*
+%{_mandir}/man8/lttng-relayd.8*
+%{_mandir}/man8/lttng-sessiond.8*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblttng-ctl.so
+%{_libdir}/liblttng-ctl.la
+%{_includedir}/lttng/lttng.h
+%{_includedir}/lttng/lttng-error.h
+%{_pkgconfigdir}/lttng-ctl.pc
+%{_mandir}/man3/lttng-health-check.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblttng-ctl.a
+
+%files -n python-lttng
+%defattr(644,root,root,755)
+%doc doc/python-howto.txt
+%attr(755,root,root) %{py_sitedir}/_lttng.so
+%{py_sitescriptdir}/lttng.py[co]
diff --git a/lttng-tools-python.patch b/lttng-tools-python.patch
new file mode 100644
index 0000000..a427621
--- /dev/null
+++ b/lttng-tools-python.patch
@@ -0,0 +1,11 @@
+--- lttng-tools-2.2.1/extras/bindings/swig/python/Makefile.am.orig	2013-07-11 23:30:05.000000000 +0200
++++ lttng-tools-2.2.1/extras/bindings/swig/python/Makefile.am	2013-07-13 22:14:10.045728517 +0200
+@@ -11,7 +11,7 @@
+ MAINTAINERCLEANFILES = lttng_wrap.c lttng.py
+ 
+ nodist__lttng_la_SOURCES = lttng_wrap.c
+-_lttng_la_LDFLAGS = -module
++_lttng_la_LDFLAGS = -module -avoid-version
+ _lttng_la_LIBADD = 	$(top_srcdir)/src/lib/lttng-ctl/liblttng-ctl.la 		\
+ 			$(top_srcdir)/src/common/sessiond-comm/libsessiond-comm.la
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lttng-tools.git/commitdiff/ad796f31733b0d63adc3e3b8fc4bc1d40f8dd023



More information about the pld-cvs-commit mailing list