diff --git a/.cvsignore b/.cvsignore index e69de29..8af7abc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +sysprof-1.0.3.tar.gz diff --git a/sources b/sources index e69de29..41627f7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8949fe32a073b84cb2abb7f9d608f755 sysprof-1.0.3.tar.gz diff --git a/sysprof.desktop b/sysprof.desktop new file mode 100644 index 0000000..cd4f979 --- /dev/null +++ b/sysprof.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=0.9.4 +Encoding=UTF-8 +Name=Sysprof +Comment=a sampling CPU profiler +Exec=sysprof +Icon=sysprof-icon.png +StartupNotify=true +Terminal=false +Type=Application +Categories=Development;Profiling; diff --git a/sysprof.spec b/sysprof.spec new file mode 100644 index 0000000..adc4e1c --- /dev/null +++ b/sysprof.spec @@ -0,0 +1,78 @@ +Name: sysprof +Version: 1.0.3 +Release: 4%{?dist} +Summary: Sysprof is a sampling CPU profiler +Group: Development/System +License: GPL +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 + +# kmod related stuff +Provides: sysprof-kmod-common = %{version} +Requires: kmod-%{name} >= %{version} + +BuildRequires: gtk2-devel => 2.6 +BuildRequires: libglade2-devel +BuildRequires: binutils-devel +BuildRequires: desktop-file-utils + + +%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 + + +%build +%configure --disable-kernel-module +make %{?_smp_mflags} + + +%install +rm -rf ${RPM_BUILD_ROOT} +make install DESTDIR=${RPM_BUILD_ROOT} + +desktop-file-install --vendor fedora \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + --add-category X-Fedora \ + %{SOURCE1} + + +%clean +rm -rf ${RPM_BUILD_ROOT} + + +%files +%defattr(-,root,root,-) +%doc README COPYING ChangeLog +%{_bindir}/sysprof +%{_datadir}/pixmaps/sysprof-icon.png +%dir %{_datadir}/sysprof +%{_datadir}/sysprof/sysprof-icon.png +%{_datadir}/sysprof/sysprof.glade +%{_datadir}/applications/*.desktop + +%changelog +* Tue Oct 2 2006 ianluca 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