From e662dbef5eb6f9263a85679bb078b59c0e83f256 Mon Sep 17 00:00:00 2001 From: Gianluca Sforna Date: Sun, 27 Sep 2009 14:49:02 +0000 Subject: [PATCH] Revive sysprof package --- .cvsignore | 2 +- dead.package | 1 - sources | 1 + sysprof.desktop | 9 ++++ sysprof.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 118 insertions(+), 2 deletions(-) delete mode 100644 dead.package create mode 100644 sources create mode 100644 sysprof.desktop create mode 100644 sysprof.spec diff --git a/.cvsignore b/.cvsignore index e60e1d7..28d5adb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -sysprof-1.0.9.tar.gz +sysprof-1.1.2.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 54c0f58..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Package moved to livna due to kmod requirement diff --git a/sources b/sources new file mode 100644 index 0000000..c6a14af --- /dev/null +++ b/sources @@ -0,0 +1 @@ +386a4002b3fc9f96be52ca69240a8729 sysprof-1.1.2.tar.gz diff --git a/sysprof.desktop b/sysprof.desktop new file mode 100644 index 0000000..5f6febf --- /dev/null +++ b/sysprof.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Sysprof +Comment=a sampling CPU profiler +Exec=sysprof +Icon=sysprof-icon +StartupNotify=true +Terminal=false +Type=Application +Categories=Development;Profiling; diff --git a/sysprof.spec b/sysprof.spec new file mode 100644 index 0000000..a030279 --- /dev/null +++ b/sysprof.spec @@ -0,0 +1,107 @@ +Name: sysprof +Version: 1.1.2 +Release: 2%{?dist} +Summary: A system-wide Linux profiler +Group: Development/System +License: GPLv2+ +URL: http://www.daimi.au.dk/~sandmann/sysprof/ +Source0: http://www.daimi.au.dk/~sandmann/sysprof/sysprof-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source1: sysprof.desktop + +BuildRequires: gtk2-devel => 2.6 +BuildRequires: libglade2-devel +BuildRequires: binutils-devel +BuildRequires: desktop-file-utils + +ExclusiveArch: %{ix86} x86_64 + +%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. + +%prep +%setup -q -n sysprof-%{version} + +# Fix README +iconv --from=ISO-8859-1 --to=UTF-8 README > README.new && \ +touch -r README README.new && \ +mv README.new README + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf ${RPM_BUILD_ROOT} +make install DESTDIR=${RPM_BUILD_ROOT} + +desktop-file-install \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + %{SOURCE1} + + +%clean +rm -rf ${RPM_BUILD_ROOT} + + +%files +%defattr(-,root,root,-) +%doc NEWS README COPYING TODO AUTHORS +%{_sysconfdir}/udev/rules.d/60-sysprof.rules +%{_bindir}/sysprof +%{_bindir}/sysprof-cli +%{_datadir}/pixmaps/sysprof-*.png +%{_datadir}/sysprof/ +%{_datadir}/applications/*.desktop + + +%changelog +* Sun Sep 27 2009 Gianluca Sforna - 1.1.2-2 +- Incorporate suggestions from package review + +* Sat Sep 26 2009 Gianluca Sforna - 1.1.2-1 +- New upstream release + +* Wed Apr 9 2008 Gianluca Sforna - 1.0.9-1 +- version update to 1.0.9 + +* Tue Aug 28 2007 Gianluca Sforna 1.0.8-2 +- update License field + +* Thu Dec 21 2006 Gianluca Sforna 1.0.8-1 +- version update to 1.0.8 + +* Tue Nov 21 2006 Gianluca Sforna 1.0.7-1 +- version update to 1.0.7 + +* Wed Nov 1 2006 Gianluca Sforna 1.0.5-1 +- version update + +* Sun Oct 8 2006 Gianluca Sforna 1.0.3-6 +- better to use ExclusiveArch %%{ix86} (thanks Ville) + +* Thu Oct 5 2006 Gianluca Sforna 1.0.3-5 +- add ExclusiveArch to match sysprof-kmod supported archs + +* Tue Oct 2 2006 Gianluca Sforna 1.0.3-4 +- add .desktop file + +* Fri Sep 30 2006 Gianluca Sforna 1.0.3-3 +- versioned Provides +- add BR: binutils-devel + +* Fri Sep 29 2006 Gianluca Sforna 1.0.3-2 +- own sysprof directory + +* Thu Jun 22 2006 Gianluca Sforna 1.0.3-1 +- version update +- use standard %%configure macro + +* Sun May 14 2006 Gianluca Sforna 1.0.2-1 +- Initial Version