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