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