]> git.pld-linux.org Git - packages/babeltrace.git/blame - babeltrace.spec
- updated to 1.5.8
[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
eacdc6bb
JB
8Version: 1.5.8
9Release: 1
6e41d93e
JB
10License: MIT
11Group: Applications/System
ecc61248 12Source0: https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
eacdc6bb 13# Source0-md5: 5c305d6f4be15bc3562c724f9b5206df
ecc61248 14Patch0: %{name}-python.patch
eacdc6bb 15URL: https://babeltrace.org/
14af0f70
JB
16BuildRequires: autoconf >= 2.50
17BuildRequires: automake
eacdc6bb 18BuildRequires: elfutils-devel >= 0.154
6e41d93e 19BuildRequires: glib2-devel >= 1:2.22.0
14af0f70 20BuildRequires: libtool >= 2:2
6e41d93e
JB
21BuildRequires: libuuid-devel
22BuildRequires: pkgconfig
23BuildRequires: popt-devel
ecc61248 24%{?with_python:BuildRequires: python3-devel >= 1:3.2}
14af0f70 25BuildRequires: rpm-pythonprov
eacdc6bb
JB
26BuildRequires: rpmbuild(macros) >= 1.507
27Requires: elfutils >= 0.154
6e41d93e
JB
28Requires: glib2 >= 1:2.22.0
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32This project provides trace read and write libraries, as well as a
33trace converter. A plugin can be created for any trace format to allow
34its conversion to/from another trace format.
35
36%description -l pl.UTF-8
37Ten projekt udostępnia biblioteki do odczytu i zapisu śladów, a także
38konwerter śladów. Można tworzyć wtyczki dla dowolnego formatu śladów,
39aby umożliwić konwersję do/z innego formatu.
40
41%package devel
42Summary: Header files for Babeltrace libraries
43Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Babeltrace
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
eacdc6bb 46Requires: elfutils-devel >= 0.154
6e41d93e
JB
47Requires: glib2-devel >= 1:2.22.0
48Requires: libuuid-devel
49Requires: popt-devel
50
51%description devel
52Header files for Babeltrace libraries.
53
54%description devel -l pl.UTF-8
55Pliki nagłówkowe bibliotek Babeltrace.
56
57%package static
58Summary: Static Babeltrace libraries
59Summary(pl.UTF-8): Statyczne biblioteki Babeltrace
60Group: Development/Libraries
61Requires: %{name}-devel = %{version}-%{release}
62
63%description static
64Static Babeltrace libraries.
65
66%description static -l pl.UTF-8
67Statyczne biblioteki Babeltrace.
68
ecc61248
JB
69%package -n python3-babeltrace
70Summary: Python 3 binding to Babeltrace library
71Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki Babeltrace
14af0f70
JB
72Group: Libraries/Python
73Requires: %{name} = %{version}-%{release}
ecc61248 74Obsoletes: python-babeltrace < 1.5.3
14af0f70 75
ecc61248
JB
76%description -n python3-babeltrace
77Python 3 binding to Babeltrace library.
14af0f70 78
ecc61248
JB
79%description -n python3-babeltrace -l pl.UTF-8
80Wią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
98rm -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
113rm -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
This page took 0.332993 seconds and 4 git commands to generate.