Name: oprofileui Version: 0.2.0 Release: 2%{?dist} Summary: GTK2 user interface for oprofile License: GPLv2 Group: User Interface/Desktops URL: http://labs.o-hand.com/oprofileui/ Source0: http://labs.o-hand.com/sources/oprofileui/oprofileui-%{version}.tar.gz BuildRequires: autoconf automake libtool intltool BuildRequires: avahi-devel avahi-glib-devel gtk2-devel desktop-file-utils BuildRequires: libglade2-devel libxml-devel gnome-vfs2-devel GConf2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: avahi oprofile gnome-vfs2 GConf2 %description This is a GTK2 user interface for the oprofile performance profiling tool. %prep %setup -q %build aclocal autoconf automake --add-missing %configure --bindir=%{_bindir} --docdir=%{_docdir}/%{name} --with-avahi make CFLAGS="%{optflags}" %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot} make DESTDIR=%{buildroot} INSTALL='%{__install} -p' install desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ --add-category X-Fedora \ --delete-original \ %{buildroot}/%{_datadir}/applications/oprofile-viewer.desktop rm -rf %{buildroot}/%{_docdir} %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-, root, root, -) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/oprofile-server %{_bindir}/oprofile-viewer %{_bindir}/oparchconv %{_datadir}/applications/oprofile-viewer.desktop %{_datadir}/icons/hicolor/scalable/apps/oprofile-viewer.svg %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/oprofileui/oprofile-viewer.glade %clean rm -rf %{buildroot} %changelog * Mon Jun 30 2008 Terje Rosten - 0.2.0-2 - add desktop-file-utils - remove vendor in desktop-file-install - remove libglade2 and libxml from reqs (picked up by rpm) - fix macro usage - fix timestamp on sources and installed files - fix docs - add %%post/%%postun scripts - license is GPLv2 * Sat Apr 12 2008 Dave Jones - 0.2.0-1 - Initial packaging.