]> git.pld-linux.org Git - packages/babeltrace.git/blame - babeltrace.spec
- updated to 1.2.1
[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
a869563c 8Version: 1.2.1
6e41d93e
JB
9Release: 1
10License: MIT
11Group: Applications/System
12Source0: http://lttng.org/files/babeltrace/%{name}-%{version}.tar.bz2
a869563c 13# Source0-md5: 5d2dbf37117537b484f731ecbe72c29c
14af0f70 14Patch0: %{name}-link.patch
6e41d93e 15URL: http://lttng.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
14af0f70
JB
23%{?with_python:BuildRequires: python-devel >= 2}
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
14af0f70
JB
66%package -n python-babeltrace
67Summary: Python binding to Babeltrace library
68Summary(pl.UTF-8): Wiązanie Pythona do biblioteki Babeltrace
69Group: Libraries/Python
70Requires: %{name} = %{version}-%{release}
71
72%description -n python-babeltrace
73Python binding to Babeltrace library.
74
75%description -n python-babeltrace -l pl.UTF-8
76Wiązanie Pythona do biblioteki Babeltrace.
77
6e41d93e
JB
78%prep
79%setup -q
14af0f70 80%patch0 -p1
6e41d93e
JB
81
82%build
14af0f70
JB
83%{__libtoolize}
84%{__aclocal} -I m4
85%{__autoconf}
86%{__autoheader}
87%{__automake}
6e41d93e 88%configure \
14af0f70 89 %{?with_python:--enable-python-bindings} \
6e41d93e
JB
90 --disable-silent-rules
91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
96%{__make} install \
97 DESTDIR=$RPM_BUILD_ROOT
98
14af0f70 99# lib*.la kept - no .pc files for individual libraries
6e41d93e
JB
100
101# packaged as %doc
102%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace
103
14af0f70
JB
104%if %{with python}
105%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_babeltrace.{la,a}
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}
164%files -n python-babeltrace
165%defattr(644,root,root,755)
166%attr(755,root,root) %{py_sitedir}/_babeltrace.so
167%{py_sitescriptdir}/babeltrace.py[co]
168%endif
This page took 0.114759 seconds and 4 git commands to generate.