Summary: Linux Trace Toolkit
+Summary(pl.UTF-8): Narzędzia do śledzenia Linuksa
Name: TraceToolkit
-Version: 0.9.5
-Release: 1
+Version: 0.9.6
+%define _pre pre2
+Release: 0.%{_pre}.2
License: GPL
-Group: Applications
-###### Unknown group!
-Source0: ftp://ftp.opersys.com/pub/LTT/%{name}-%{version}.tgz
-Url: http://www.opersys.com/LTT/
+Group: X11/Applications
+Source0: http://www.opersys.com/ftp/pub/LTT/%{name}-%{version}%{_pre}.tgz
+# Source0-md5: 09be9c2b411070a51ba85be5570f0d05
+URL: http://www.opersys.com/LTT/
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: gtk+-devel
-Requires: gtk+
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6/
%description
-The Linux Trace Toolkit, more commonly known as LTT, is a fully-featured
-tracing system for the Linux kernel. It includes both the kernel components
-required for tracing and the user-level tools required to view the traces.
+The Linux Trace Toolkit, more commonly known as LTT, is a
+fully-featured tracing system for the Linux kernel. It includes both
+the kernel components required for tracing and the user-level tools
+required to view the traces.
+
+%description -l pl.UTF-8
+Linux Trace Toolkit, znany bardziej jako LTT, jest w pełni
+funkcjonalnym systemem do śledzenia jądra Linuksa. Zawiera elementy
+jądra potrzebne do śledzenia oraz narzędzia użytkownika potrzebne do
+przeglądania wyników śledzenia.
+
+%package devel
+Summary: Header files for Linux Trace Toolkit library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Linux Trace Toolkit
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for Linux Trace Toolkit library
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Linux Trace Toolkit
+
+%package static
+Summary: Static version of Linux Trace Toolkit library
+Summary(pl.UTF-8): Statyczna wersja biblioteki Linux Trace Toolkit
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static version of Linux Trace Toolkit library.
+
+%description static -l pl.UTF-8
+Statyczna wersja biblioteki Linux Trace Toolkit.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}%{_pre}
%build
-%configure2_13
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
-gzip -9nf COPYING README
-
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
%clean
-rm -rf $RPM_BUILD_ROOT/%{name}-%{version}
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/
-%attr(755,root,root) %{_libdir}/
-%attr(755,root,root) %{_sbindir}/
+%doc README
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a