]>
Commit | Line | Data |
---|---|---|
ad796f31 JB |
1 | Summary: LTTng Trace Control |
2 | Summary(pl.UTF-8): Sterowanie śledzeniem LTTng | |
3 | Name: lttng-tools | |
42c1ac0a | 4 | Version: 2.4.0 |
ad796f31 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ (library), GPL v2 (tools) | |
7 | Group: Libraries | |
8 | Source0: http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2 | |
42c1ac0a | 9 | # Source0-md5: 8ee2d489e2587a72825f5c186690df17 |
ad796f31 JB |
10 | Patch0: %{name}-python.patch |
11 | URL: http://lttng.org/ | |
12 | BuildRequires: autoconf >= 2.50 | |
13 | BuildRequires: automake >= 1:1.10 | |
14 | BuildRequires: libtool >= 2:2.2 | |
15 | BuildRequires: libuuid-devel | |
29c7206a | 16 | BuildRequires: lttng-ust-devel >= 2.3.0 |
ad796f31 JB |
17 | BuildRequires: popt-devel >= 1.13 |
18 | BuildRequires: python-devel | |
19 | BuildRequires: rpmbuild(macros) >= 1.219 | |
20 | BuildRequires: swig-python >= 2.0.0 | |
21 | BuildRequires: userspace-rcu-devel >= 0.7.2 | |
42c1ac0a | 22 | #BuildRequires: jdk java-lttng-ust # used for tests only |
ad796f31 JB |
23 | Requires: popt >= 1.13 |
24 | Requires: userspace-rcu >= 0.7.2 | |
25 | Requires: uname(release) >= 2.6.27 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | LTTng Trace Control library and utilities. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Biblioteka i narzędzia do sterowania śledzeniem LTTng. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for LTTng control library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sterującej LTTng | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: libuuid-devel | |
40 | Requires: popt-devel >= 1.13 | |
41 | Requires: userspace-rcu-devel >= 0.7.2 | |
42 | ||
43 | %description devel | |
44 | Header files for LTTng control library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki sterującej LTTng. | |
48 | ||
49 | %package static | |
50 | Summary: Static LTTng control library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka sterująca LTTng | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static LTTng control library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka sterująca LTTng. | |
60 | ||
61 | %package -n python-lttng | |
62 | Summary: Python binding for LTTng | |
63 | Summary(pl.UTF-8): Wiązanie Pythona do LTTng | |
64 | Group: Libraries/Python | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description -n python-lttng | |
68 | Python binding for LTTng. | |
69 | ||
70 | %description -n python-lttng -l pl.UTF-8 | |
71 | Wiązanie Pythona do LTTng. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} -I config | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
83 | # NOTE: DON'T replace /usr/lib* with %{_libdir} in configure options! | |
84 | %configure \ | |
85 | --disable-silent-rules \ | |
86 | --enable-python-bindings \ | |
87 | --with-babeltrace-bin=/usr/bin/babeltrace \ | |
88 | %ifnarch alpha ia64 | |
89 | --with-consumerd32-bin=/usr/lib/lttng/libexec/lttng-consumerd \ | |
90 | --with-consumerd32-libdir=/usr/lib \ | |
91 | %endif | |
92 | %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64 | |
93 | --with-consumerd64-bin=/usr/lib64/lttng/libexec/lttng-consumerd \ | |
94 | --with-consumerd64-libdir=/usr/lib64 \ | |
95 | %endif | |
96 | --with-lttv-gui-bin=/usr/bin/lttv-gui | |
97 | ||
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | # library *.la kept - missing Requires.private | |
107 | ||
108 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_lttng.{la,a} | |
109 | %py_postclean | |
110 | ||
111 | # packaged as %doc | |
112 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/lttng-tools | |
113 | ||
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
122 | %doc ChangeLog LICENSE README TODO doc/{calibrate,quickstart,streaming-howto}.txt | |
123 | %attr(755,root,root) %{_bindir}/lttng | |
124 | %attr(755,root,root) %{_bindir}/lttng-relayd | |
125 | %attr(755,root,root) %{_bindir}/lttng-sessiond | |
126 | %attr(755,root,root) %{_libdir}/liblttng-ctl.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/liblttng-ctl.so.0 | |
128 | %dir %{_libdir}/lttng | |
129 | %dir %{_libdir}/lttng/libexec | |
130 | %attr(755,root,root) %{_libdir}/lttng/libexec/lttng-consumerd | |
131 | %{_mandir}/man1/lttng.1* | |
132 | %{_mandir}/man8/lttng-relayd.8* | |
133 | %{_mandir}/man8/lttng-sessiond.8* | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/liblttng-ctl.so | |
138 | %{_libdir}/liblttng-ctl.la | |
42c1ac0a | 139 | %{_includedir}/lttng/health.h |
ad796f31 JB |
140 | %{_includedir}/lttng/lttng.h |
141 | %{_includedir}/lttng/lttng-error.h | |
29c7206a | 142 | %{_includedir}/lttng/snapshot.h |
ad796f31 | 143 | %{_pkgconfigdir}/lttng-ctl.pc |
ad796f31 JB |
144 | |
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/liblttng-ctl.a | |
148 | ||
149 | %files -n python-lttng | |
150 | %defattr(644,root,root,755) | |
151 | %doc doc/python-howto.txt | |
152 | %attr(755,root,root) %{py_sitedir}/_lttng.so | |
153 | %{py_sitescriptdir}/lttng.py[co] |