]> git.pld-linux.org Git - packages/babeltrace.git/blame - babeltrace.spec
- dropped py_postclean after switching to python3
[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
108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%post -p /sbin/ldconfig
112%postun -p /sbin/ldconfig
113
114%files
115%defattr(644,root,root,755)
116%doc ChangeLog LICENSE README std-ext-lib.txt
117%attr(755,root,root) %{_bindir}/babeltrace
118%attr(755,root,root) %{_bindir}/babeltrace-log
119%attr(755,root,root) %{_libdir}/libbabeltrace.so.*.*.*
14af0f70 120%attr(755,root,root) %ghost %{_libdir}/libbabeltrace.so.1
6e41d93e 121%attr(755,root,root) %{_libdir}/libbabeltrace-ctf.so.*.*.*
14af0f70 122%attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf.so.1
6e41d93e 123%attr(755,root,root) %{_libdir}/libbabeltrace-ctf-metadata.so.*.*.*
14af0f70 124%attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf-metadata.so.1
6e41d93e 125%attr(755,root,root) %{_libdir}/libbabeltrace-ctf-text.so.*.*.*
14af0f70 126%attr(755,root,root) %ghost %{_libdir}/libbabeltrace-ctf-text.so.1
6e41d93e 127%attr(755,root,root) %{_libdir}/libbabeltrace-dummy.so.*.*.*
14af0f70
JB
128%attr(755,root,root) %ghost %{_libdir}/libbabeltrace-dummy.so.1
129%attr(755,root,root) %{_libdir}/libbabeltrace-lttng-live.so.*.*.*
130%attr(755,root,root) %ghost %{_libdir}/libbabeltrace-lttng-live.so.1
6e41d93e
JB
131%{_mandir}/man1/babeltrace.1*
132%{_mandir}/man1/babeltrace-log.1*
133
134%files devel
135%defattr(644,root,root,755)
136%doc doc/{API,development}.txt
137%attr(755,root,root) %{_libdir}/libbabeltrace.so
138%attr(755,root,root) %{_libdir}/libbabeltrace-ctf.so
139%attr(755,root,root) %{_libdir}/libbabeltrace-ctf-metadata.so
140%attr(755,root,root) %{_libdir}/libbabeltrace-ctf-text.so
141%attr(755,root,root) %{_libdir}/libbabeltrace-dummy.so
14af0f70 142%attr(755,root,root) %{_libdir}/libbabeltrace-lttng-live.so
6e41d93e
JB
143%{_libdir}/libbabeltrace.la
144%{_libdir}/libbabeltrace-ctf.la
145%{_libdir}/libbabeltrace-ctf-metadata.la
146%{_libdir}/libbabeltrace-ctf-text.la
147%{_libdir}/libbabeltrace-dummy.la
14af0f70 148%{_libdir}/libbabeltrace-lttng-live.la
6e41d93e
JB
149%{_includedir}/babeltrace
150%{_pkgconfigdir}/babeltrace.pc
14af0f70 151%{_pkgconfigdir}/babeltrace-ctf.pc
6e41d93e
JB
152
153%files static
154%defattr(644,root,root,755)
155%{_libdir}/libbabeltrace.a
156%{_libdir}/libbabeltrace-ctf.a
157%{_libdir}/libbabeltrace-ctf-metadata.a
158%{_libdir}/libbabeltrace-ctf-text.a
159%{_libdir}/libbabeltrace-dummy.a
14af0f70
JB
160%{_libdir}/libbabeltrace-lttng-live.a
161
162%if %{with python}
ecc61248 163%files -n python3-babeltrace
14af0f70 164%defattr(644,root,root,755)
ecc61248
JB
165%dir %{py3_sitedir}/babeltrace
166%attr(755,root,root) %{py3_sitedir}/babeltrace/_babeltrace.cpython-*.so
167%{py3_sitedir}/babeltrace/*.py
168%{py3_sitedir}/babeltrace/__pycache__
169%{py3_sitedir}/babeltrace-%{version}-py*.egg-info
14af0f70 170%endif
This page took 0.096727 seconds and 4 git commands to generate.