]> git.pld-linux.org Git - packages/sysprof.git/commitdiff
- new, system wide linux profiller
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 6 Apr 2008 18:35:22 +0000 (18:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sysprof.spec -> 1.1

sysprof.spec [new file with mode: 0644]

diff --git a/sysprof.spec b/sysprof.spec
new file mode 100644 (file)
index 0000000..e47fd63
--- /dev/null
@@ -0,0 +1,88 @@
+# Conditional build:
+%bcond_without  dist_kernel     # without distribution kernel
+%bcond_without  kernel          # don't build kernel modules
+%bcond_without  userspace       # don't build userspace tools
+#
+%define        rel     1
+Summary:       Sampling CPU profiler for Linux
+Name:          sysprof
+Version:       1.0.9
+Release:       %{rel}
+License:       GPL v2
+Group:         Applications/System
+Source0:       http://www.daimi.au.dk/~sandmann/sysprof/%{name}-%{version}.tar.gz
+# Source0-md5: 3fdbce685f75fac650c8a03e3bafff57
+URL:           http://www.daimi.au.dk/~sandmann/sysprof/
+BuildRequires: binutils-devel
+BuildRequires: gtk+2-devel
+BuildRequires: rpmbuild(macros) >= 1.217
+Requires:      uname(release) >= 2.6
+Conflicts:     kernel < 2.6
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sysprof is a sampling CPU profiler for Linux that uses a kernel module
+to profile the entire system, not just a single application. Sysprof
+handles shared libraries and applications do not need to be
+recompiled. In fact they don't even have to be restarted.
+
+Just insert the kernel module and start sysprof.
+
+%package -n kernel%{_alt_kernel}-sysprof
+Summary:       sysprof kernel driver
+Release:       %{rel}@%{_kernel_ver_str}
+Group:         Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):      %releq_kernel
+%endif
+
+%description -n kernel%{_alt_kernel}-sysprof
+sysprof Linux kernel driver.
+
+%prep
+%setup -q
+
+%build
+%configure \
+       --disable-kernel-module
+%if %{with userspace}
+%{__make}
+%endif
+
+%if %{with kernel}
+cd module
+%build_kernel_modules SUBDIRS=$PWD -m sysprof-module
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%if %{with kernel}
+cd module
+%install_kernel_modules -m sysprof-module -d misc
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/*
+%{_pixmapsdir}/*.png
+%{_datadir}/%{name}
+%endif
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-sysprof
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+%endif
This page took 0.170665 seconds and 4 git commands to generate.