babeltrace/babeltrace.spec

85 lines
2.4 KiB
RPMSpec
Raw Normal View History

%define internal_version 1.0.0-pre4
Name: babeltrace
Version: 1.0.0.pre4
Release: 0
License: GPL v2 or later, MIT
Source: %{name}-%{internal_version}.tar.bz2
Group: Development/Languages/C and C++
Summary: Common Trace Format Babel Tower
BuildRequires: pkgconfig bison flex glib2-devel popt-devel libuuid-devel
BuildRoot: %{_tmppath}/%{name}-%{internal_version}-build
ExclusiveArch: %ix86 x86_64 ppc ppc64 s390 s390x
%description
This project provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
The main format expected to be converted to/from is the Common Trace
Format (CTF). The latest version of the CTF specification can be found at:
git tree: git://git.efficios.com/ctf.git
gitweb: http://git.efficios.com/?p=ctf.git
Mathieu Desnoyers, EfficiOS Inc.
September 2010
%package -n %{name}-devel
Summary: Common Trace Format Babel Tower
Group: Development/Languages/C and C++
Requires: %{name} = %{version}-%{release} glib2-devel
%description -n %{name}-devel
This project provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
The main format expected to be converted to/from is the Common Trace
Format (CTF). The latest version of the CTF specification can be found at:
git tree: git://git.efficios.com/ctf.git
gitweb: http://git.efficios.com/?p=ctf.git
Mathieu Desnoyers, EfficiOS Inc.
September 2010
%prep
%setup -q -n %{name}-%{internal_version}
%build
%configure --docdir=%{_docdir}/%{name}
make
%install
make DESTDIR=%buildroot install
rm -vf %buildroot%{_libdir}/*.la
mkdir -p %buildroot%{_prefix}/include/babeltrace
cp -R include/babeltrace/* %buildroot%{_prefix}/include/babeltrace
#chown -R root %buildroot%{_prefix}/include/babeltrace
#chgrp -R root %buildroot%{_prefix}/include/babeltrace
#chmod -R 644 %buildroot%{_prefix}/include/babeltrace
%clean
rm -rf %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/%{name}*
%{_libdir}/*.so.*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/*.txt
%{_mandir}/man1/*.1.gz
%files -n %{name}-devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_libdir}/*.so
%{_libdir}/*.a
%changelog