]>
Commit | Line | Data |
---|---|---|
14af0f70 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python # Python binding | |
4 | # | |
6e41d93e JB |
5 | Summary: Trace Format Babel Tower |
6 | Summary(pl.UTF-8): Wieża Babel formatów narzędzi śledzących | |
7 | Name: babeltrace | |
c7ef0e9a | 8 | Version: 1.2.4 |
54199e1c | 9 | Release: 2 |
6e41d93e JB |
10 | License: MIT |
11 | Group: Applications/System | |
12 | Source0: http://lttng.org/files/babeltrace/%{name}-%{version}.tar.bz2 | |
c7ef0e9a | 13 | # Source0-md5: 20a806fa7570e69a91707855a98f3ca6 |
14af0f70 | 14 | Patch0: %{name}-link.patch |
6e41d93e | 15 | URL: http://lttng.org/babeltrace |
14af0f70 JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake | |
6e41d93e | 18 | BuildRequires: glib2-devel >= 1:2.22.0 |
14af0f70 | 19 | BuildRequires: libtool >= 2:2 |
6e41d93e JB |
20 | BuildRequires: libuuid-devel |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: popt-devel | |
14af0f70 JB |
23 | %{?with_python:BuildRequires: python-devel >= 2} |
24 | BuildRequires: rpm-pythonprov | |
25 | BuildRequires: rpmbuild(macros) >= 1.219 | |
6e41d93e JB |
26 | Requires: glib2 >= 1:2.22.0 |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This project provides trace read and write libraries, as well as a | |
31 | trace converter. A plugin can be created for any trace format to allow | |
32 | its conversion to/from another trace format. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Ten projekt udostępnia biblioteki do odczytu i zapisu śladów, a także | |
36 | konwerter śladów. Można tworzyć wtyczki dla dowolnego formatu śladów, | |
37 | aby umożliwić konwersję do/z innego formatu. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for Babeltrace libraries | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Babeltrace | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: glib2-devel >= 1:2.22.0 | |
45 | Requires: libuuid-devel | |
46 | Requires: popt-devel | |
47 | ||
48 | %description devel | |
49 | Header files for Babeltrace libraries. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe bibliotek Babeltrace. | |
53 | ||
54 | %package static | |
55 | Summary: Static Babeltrace libraries | |
56 | Summary(pl.UTF-8): Statyczne biblioteki Babeltrace | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static Babeltrace libraries. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczne biblioteki Babeltrace. | |
65 | ||
14af0f70 JB |
66 | %package -n python-babeltrace |
67 | Summary: Python binding to Babeltrace library | |
68 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki Babeltrace | |
69 | Group: Libraries/Python | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
72 | %description -n python-babeltrace | |
73 | Python binding to Babeltrace library. | |
74 | ||
75 | %description -n python-babeltrace -l pl.UTF-8 | |
76 | Wiązanie Pythona do biblioteki Babeltrace. | |
77 | ||
6e41d93e JB |
78 | %prep |
79 | %setup -q | |
14af0f70 | 80 | %patch0 -p1 |
6e41d93e JB |
81 | |
82 | %build | |
14af0f70 JB |
83 | %{__libtoolize} |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
6e41d93e | 88 | %configure \ |
14af0f70 | 89 | %{?with_python:--enable-python-bindings} \ |
6e41d93e JB |
90 | --disable-silent-rules |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
14af0f70 | 99 | # lib*.la kept - no .pc files for individual libraries |
6e41d93e JB |
100 | |
101 | # packaged as %doc | |
102 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace | |
103 | ||
14af0f70 JB |
104 | %if %{with python} |
105 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_babeltrace.{la,a} | |
106 | %py_postclean | |
107 | %endif | |
108 | ||
6e41d93e JB |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc ChangeLog LICENSE README std-ext-lib.txt | |
118 | %attr(755,root,root) %{_bindir}/babeltrace | |
119 | %attr(755,root,root) %{_bindir}/babeltrace-log | |
120 | %attr(755,root,root) %{_libdir}/libbabeltrace.so.*.*.* | |
14af0f70 | 121 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace.so.1 |
6e41d93e | 122 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf.so.*.*.* |
14af0f70 | 123 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf.so.1 |
6e41d93e | 124 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf-metadata.so.*.*.* |
14af0f70 | 125 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf-metadata.so.1 |
6e41d93e | 126 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf-text.so.*.*.* |
14af0f70 | 127 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf-text.so.1 |
6e41d93e | 128 | %attr(755,root,root) %{_libdir}/libbabeltrace-dummy.so.*.*.* |
14af0f70 JB |
129 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace-dummy.so.1 |
130 | %attr(755,root,root) %{_libdir}/libbabeltrace-lttng-live.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libbabeltrace-lttng-live.so.1 | |
6e41d93e JB |
132 | %{_mandir}/man1/babeltrace.1* |
133 | %{_mandir}/man1/babeltrace-log.1* | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %doc doc/{API,development}.txt | |
138 | %attr(755,root,root) %{_libdir}/libbabeltrace.so | |
139 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf.so | |
140 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf-metadata.so | |
141 | %attr(755,root,root) %{_libdir}/libbabeltrace-ctf-text.so | |
142 | %attr(755,root,root) %{_libdir}/libbabeltrace-dummy.so | |
14af0f70 | 143 | %attr(755,root,root) %{_libdir}/libbabeltrace-lttng-live.so |
6e41d93e JB |
144 | %{_libdir}/libbabeltrace.la |
145 | %{_libdir}/libbabeltrace-ctf.la | |
146 | %{_libdir}/libbabeltrace-ctf-metadata.la | |
147 | %{_libdir}/libbabeltrace-ctf-text.la | |
148 | %{_libdir}/libbabeltrace-dummy.la | |
14af0f70 | 149 | %{_libdir}/libbabeltrace-lttng-live.la |
6e41d93e JB |
150 | %{_includedir}/babeltrace |
151 | %{_pkgconfigdir}/babeltrace.pc | |
14af0f70 | 152 | %{_pkgconfigdir}/babeltrace-ctf.pc |
6e41d93e JB |
153 | |
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libbabeltrace.a | |
157 | %{_libdir}/libbabeltrace-ctf.a | |
158 | %{_libdir}/libbabeltrace-ctf-metadata.a | |
159 | %{_libdir}/libbabeltrace-ctf-text.a | |
160 | %{_libdir}/libbabeltrace-dummy.a | |
14af0f70 JB |
161 | %{_libdir}/libbabeltrace-lttng-live.a |
162 | ||
163 | %if %{with python} | |
164 | %files -n python-babeltrace | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{py_sitedir}/_babeltrace.so | |
167 | %{py_sitescriptdir}/babeltrace.py[co] | |
168 | %endif |