sysprof/sysprof.spec

152 lines
4.2 KiB
RPMSpec

Name: sysprof
Version: 1.1.8
Release: 4%{?dist}
Summary: A system-wide Linux profiler
Group: Development/System
License: GPLv2+
URL: http://www.sysprof.com
Source0: http://www.sysprof.com/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
Requires: kernel => 2.6.31
Requires: hicolor-icon-theme
ExclusiveArch: %{ix86} x86_64
%description
Sysprof is a sampling CPU profiler for Linux that collects accurate,
high-precision data and provides efficient access to the sampled
calltrees.
%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}
for size in 16 24 32 48; do
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/${size}x${size}/apps
ln -s %{_datadir}/pixmaps/sysprof-icon-${size}.png \
${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/${size}x${size}/apps/sysprof-icon.png
done
desktop-file-install \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
%{SOURCE1}
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%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
%{_datadir}/icons/hicolor/*/*/*
%changelog
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Nov 07 2011 Adam Jackson <ajax@redhat.com> 1.1.8-2
- Rebuild to break bogus libpng dependency
* Thu Jul 28 2011 Gianluca Sforna <giallu@gmail.com> 1.1.8-1
- New upstream release
* Fri Jun 24 2011 Gianluca Sforna <giallu@gmail.com> 1.1.6-3
- Fix missing icon (#558089)
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Jun 8 2010 Gianluca Sforna <giallu gmail com> - 1.1.6-1
- New upstream release
* Sun Sep 27 2009 Gianluca Sforna <giallu gmail com> - 1.1.2-3
- Incorporate suggestions from package review
- Require kernel 2.6.31
- Updated description
* Sat Sep 26 2009 Gianluca Sforna <giallu gmail com> - 1.1.2-1
- New upstream release
* Wed Apr 9 2008 Gianluca Sforna <giallu gmail com> - 1.0.9-1
- version update to 1.0.9
* Tue Aug 28 2007 Gianluca Sforna <giallu gmail com> 1.0.8-2
- update License field
* Thu Dec 21 2006 Gianluca Sforna <giallu gmail com> 1.0.8-1
- version update to 1.0.8
* Tue Nov 21 2006 Gianluca Sforna <giallu gmail com> 1.0.7-1
- version update to 1.0.7
* Wed Nov 1 2006 Gianluca Sforna <giallu gmail com> 1.0.5-1
- version update
* Sun Oct 8 2006 Gianluca Sforna <giallu gmail com> 1.0.3-6
- better to use ExclusiveArch %%{ix86} (thanks Ville)
* Thu Oct 5 2006 Gianluca Sforna <giallu gmail com> 1.0.3-5
- add ExclusiveArch to match sysprof-kmod supported archs
* Tue Oct 2 2006 Gianluca Sforna <giallu gmail com> 1.0.3-4
- add .desktop file
* Fri Sep 30 2006 Gianluca Sforna <giallu gmail com> 1.0.3-3
- versioned Provides
- add BR: binutils-devel
* Fri Sep 29 2006 Gianluca Sforna <giallu gmail com> 1.0.3-2
- own sysprof directory
* Thu Jun 22 2006 Gianluca Sforna <giallu gmail com> 1.0.3-1
- version update
- use standard %%configure macro
* Sun May 14 2006 Gianluca Sforna <giallu gmail com> 1.0.2-1
- Initial Version