7ef04783 |
1 | # |
2 | # Spec file for ltt-control |
3 | # |
4 | Summary: LTT Control |
5 | Name: ltt-control |
9f9cb951 |
6 | Version: 0.45 |
7 | Release: 11102007 |
7ef04783 |
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 |