Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 82193e7d03bba3b009aa881d10b4d856 > files > 7

valkyrie-2.0.0-5.fc16.src.rpm

Name:		valkyrie
Version:	2.0.0
Release:	5%{?dist}
Summary:	Graphical User Interface for Valgrind Suite

%global valkyrie %{name}-%{version}

Group:		Development/Debuggers
License:	GPLv2
URL:		http://www.valgrind.org/
Source0:	http://www.valgrind.org/downloads/%{valkyrie}.tar.bz2
Source1:	%{name}.desktop
Patch1:		%{name}-docdir.patch
Patch2:		%{name}-usleep.patch
Patch3:		%{name}-getuid.patch
Patch4:		%{name}-getpid.patch
BuildRoot:	%{_tmppath}/%{valkyrie}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	desktop-file-utils
BuildRequires:	qt4-devel >= 4.2
Requires:	valgrind >= 3.6.0

%description
Valkyrie is a graphical user interface to the Valgrind suite
of tools for debugging and profiling programs.  It makes use
of the XML output capabilities offered by Valgrind.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
qmake-qt4 PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make INSTALL_ROOT=%{buildroot} install
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
install -d %{buildroot}%{_datadir}/pixmaps/
install -m 644 %{_builddir}/%{valkyrie}/icons/%{name}.xpm %{buildroot}%{_datadir}/pixmaps/
# move images to a more suitable spot for the doc --parents expansion:
mv %{_builddir}/%{valkyrie}/doc/images %{_builddir}/%{valkyrie}/images

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%doc COPYING INSTALL README doc/*.css doc/*.html
%doc --parents images/*.png

%changelog
* Mon Oct  8 2012 Nathan Scott <nathans@redhat.com> 2.0.0-5
- Resolve remaining fedora-review issues (bz 862160)
- Use doc instead of install-sh of {README,LICENSE,INSTALL}
- Rework expansion of docs in general to fit in with this
- Use global instead of define

* Sat Oct  6 2012 Nathan Scott <nathans@redhat.com> 2.0.0-4
- Add getpid patch to resolve build issue reported by Sebastian Dyroff (bz 862160)

* Fri Oct  5 2012 Nathan Scott <nathans@redhat.com> 2.0.0-3
- Add getuid patch to resolve build issue reported by Sebastian Dyroff (bz 862160)

* Thu Oct  4 2012 Nathan Scott <nathans@redhat.com> 2.0.0-2
- Add usleep patch to resolve build issue reported by Sebastian Dyroff (bz 862160)

* Tue Oct  2 2012 Nathan Scott <nathans@redhat.com> 2.0.0-1
- Initial build