]> git.pld-linux.org Git - packages/babeltrace.git/blame - babeltrace.spec
- note on babeltrace 2.0.0 actually being babeltrace2
[packages/babeltrace.git] / babeltrace.spec
CommitLineData
14af0f70
JB
1#
2# Conditional build:
3%bcond_without python # Python binding
4#
6e41d93e
JB
5Summary: Trace Format Babel Tower
6Summary(pl.UTF-8): Wieża Babel formatów narzędzi śledzących
7Name: babeltrace
13508583 8# keep 1.x here, babeltrace2 is separate project (see babeltrace2.spec)
eacdc6bb
JB
9Version: 1.5.8
10Release: 1
6e41d93e
JB
11License: MIT
12Group: Applications/System
ecc61248 13Source0: https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
eacdc6bb 14# Source0-md5: 5c305d6f4be15bc3562c724f9b5206df
ecc61248 15Patch0: %{name}-python.patch
eacdc6bb 16URL: https://babeltrace.org/
14af0f70
JB
17BuildRequires: autoconf >= 2.50
18BuildRequires: automake
eacdc6bb 19BuildRequires: elfutils-devel >= 0.154
6e41d93e 20BuildRequires: glib2-devel >= 1:2.22.0
14af0f70 21BuildRequires: libtool >= 2:2
6e41d93e
JB
22BuildRequires: libuuid-devel
23BuildRequires: pkgconfig
24BuildRequires: popt-devel
ecc61248 25%{?with_python:BuildRequires: python3-devel >= 1:3.2}
14af0f70 26BuildRequires: rpm-pythonprov
eacdc6bb
JB
27BuildRequires: rpmbuild(macros) >= 1.507
28Requires: elfutils >= 0.154
6e41d93e
JB
29Requires: glib2 >= 1:2.22.0
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33This project provides trace read and write libraries, as well as a
34trace converter. A plugin can be created for any trace format to allow
35its conversion to/from another trace format.
36
37%description -l pl.UTF-8
38Ten projekt udostępnia biblioteki do odczytu i zapisu śladów, a także
39konwerter śladów. Można tworzyć wtyczki dla dowolnego formatu śladów,
40aby umożliwić konwersję do/z innego formatu.
41
42%package devel
43Summary: Header files for Babeltrace libraries
44Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Babeltrace
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
eacdc6bb 47Requires: elfutils-devel >= 0.154
6e41d93e
JB
48Requires: glib2-devel >= 1:2.22.0
49Requires: libuuid-devel
50Requires: popt-devel
51
52%description devel
53Header files for Babeltrace libraries.
54
55%description devel -l pl.UTF-8
56Pliki nagłówkowe bibliotek Babeltrace.
57
58%package static
59Summary: Static Babeltrace libraries
60Summary(pl.UTF-8): Statyczne biblioteki Babeltrace
61Group: Development/Libraries
62Requires: %{name}-devel = %{version}-%{release}
63
64%description static
65Static Babeltrace libraries.
66
67%description static -l pl.UTF-8
68Statyczne biblioteki Babeltrace.
69
ecc61248
JB
70%package -n python3-babeltrace
71Summary: Python 3 binding to Babeltrace library
72Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki Babeltrace
14af0f70
JB
73Group: Libraries/Python
74Requires: %{name} = %{version}-%{release}
ecc61248 75Obsoletes: python-babeltrace < 1.5.3
14af0f70 76
ecc61248
JB
77%description -n python3-babeltrace
78Python 3 binding to Babeltrace library.
14af0f70 79
ecc61248
JB
80%description -n python3-babeltrace -l pl.UTF-8
81Wiązanie Pythona 3 do biblioteki Babeltrace.
14af0f70 82
6e41d93e
JB
83%prep
84%setup -q
14af0f70 85%patch0 -p1
6e41d93e
JB
86
87%build
14af0f70
JB
88%{__libtoolize}
89%{__aclocal} -I m4
90%{__autoconf}
91%{__autoheader}
92%{__automake}
6e41d93e 93%configure \
14af0f70 94 %{?with_python:--enable-python-bindings} \
6e41d93e
JB
95 --disable-silent-rules
96%{__make}
97
98%install
99rm -rf $RPM_BUILD_ROOT
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
103
14af0f70 104# lib*.la kept - no .pc files for individual libraries
6e41d93e
JB
105
106# packaged as %doc
107%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace
108
109%clean
110rm -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}
ecc61248 164%files -n python3-babeltrace
14af0f70 165%defattr(644,root,root,755)
ecc61248
JB
166%dir %{py3_sitedir}/babeltrace
167%attr(755,root,root) %{py3_sitedir}/babeltrace/_babeltrace.cpython-*.so
168%{py3_sitedir}/babeltrace/*.py
169%{py3_sitedir}/babeltrace/__pycache__
170%{py3_sitedir}/babeltrace-%{version}-py*.egg-info
14af0f70 171%endif
This page took 0.046829 seconds and 4 git commands to generate.