| 1 | # |
| 2 | # Spec file for ltt-control |
| 3 | # |
| 4 | Summary: LTT Control |
| 5 | Name: ltt-control |
| 6 | Version: 0.39 |
| 7 | Release: 25042007 |
| 8 | License: GPL |
| 9 | Group: Applications/Development |
| 10 | Source: http://ltt.polymtl.ca/lttng/ltt-control-%{version}-%{release}.tar.gz |
| 11 | URL: http://ltt.polymtl.ca |
| 12 | Packager: Martin Bisson <bissonm@discreet.com> |
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 14 | |
| 15 | # Where do we install the libs |
| 16 | %ifarch x86_64 ppc64 ppc64iseries ia64 |
| 17 | %define libdir /usr/lib64 |
| 18 | %else |
| 19 | %define libdir /usr/lib |
| 20 | %endif |
| 21 | |
| 22 | |
| 23 | %description |
| 24 | |
| 25 | ltt-control is the part of the Linux Trace Toolkit Next Generation |
| 26 | that allows a machine to be traced. It holds the daemon with which |
| 27 | the kernel will communicate and the application that starts and |
| 28 | terminate tracing. |
| 29 | |
| 30 | %prep |
| 31 | %setup -q -n ltt-control-%{version}-%{release} |
| 32 | |
| 33 | %build |
| 34 | ./configure --prefix=/usr --libdir=%{libdir} |
| 35 | make |
| 36 | |
| 37 | %install |
| 38 | rm -rf $RPM_BUILD_ROOT |
| 39 | make DESTDIR=$RPM_BUILD_ROOT install |
| 40 | |
| 41 | %post |
| 42 | echo "Running ldconfig (might take a while)" |
| 43 | ldconfig |
| 44 | |
| 45 | %postun |
| 46 | echo "Running ldconfig (might take a while)" |
| 47 | ldconfig |
| 48 | |
| 49 | %files |
| 50 | %{libdir}/liblttctl.so.0.0.0 |
| 51 | %{libdir}/liblttctl.so.0 |
| 52 | %{libdir}/liblttctl.so |
| 53 | %{libdir}/liblttctl.la |
| 54 | %{libdir}/liblttctl.a |
| 55 | /usr/bin/lttctl |
| 56 | /usr/bin/lttd |
| 57 | /usr/include/liblttctl |
| 58 | /usr/include/liblttctl/lttctl.h |
| 59 | /usr/share/ltt-control |
| 60 | /usr/share/ltt-control/facilities |
| 61 | /usr/share/ltt-control/facilities/compact.xml |
| 62 | /usr/share/ltt-control/facilities/core.xml |
| 63 | /usr/share/ltt-control/facilities/fs.xml |
| 64 | /usr/share/ltt-control/facilities/kernel.xml |
| 65 | /usr/share/ltt-control/facilities/kernel_arch_arm.xml |
| 66 | /usr/share/ltt-control/facilities/kernel_arch_c2.xml |
| 67 | /usr/share/ltt-control/facilities/kernel_arch_i386.xml |
| 68 | /usr/share/ltt-control/facilities/kernel_arch_mips.xml |
| 69 | /usr/share/ltt-control/facilities/kernel_arch_powerpc.xml |
| 70 | /usr/share/ltt-control/facilities/kernel_arch_ppc.xml |
| 71 | /usr/share/ltt-control/facilities/kernel_arch_x86_64.xml |
| 72 | /usr/share/ltt-control/facilities/list.xml |
| 73 | /usr/share/ltt-control/facilities/locking.xml |
| 74 | /usr/share/ltt-control/facilities/mm.xml |
| 75 | /usr/share/ltt-control/facilities/net.xml |
| 76 | /usr/share/ltt-control/facilities/stack_arch_i386.xml |
| 77 | /usr/share/ltt-control/facilities/stack_arch_x86_64.xml |
| 78 | /usr/share/ltt-control/facilities/user_generic.xml |
| 79 | /usr/share/ltt-control/facilities/xen.xml |
| 80 | /usr/share/ltt-control/facilities/ |