File gource.spec of Package gource

Name:           gource
Version:        0.26b
Release:        1
URL:            http://code.google.com/p/gource/
License:        GPLv3
Group:          Productivity/Graphics/Visualization/Graph
Summary:        Software version control visualization tool
Source:         http://gource.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:        cvs-exp.pl
Source2:        svn-gource.py
Patch0:         %{name}-nonvoid.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  SDL-devel
BuildRequires:  SDL_image-devel
BuildRequires:  freetype2-devel
BuildRequires:  ftgl-devel
BuildRequires:  libpng-devel
BuildRequires:  libjpeg-devel
BuildRequires:  pcre-devel
Requires:       freefont

%description
Gource is a software version control visualization tool.

Software projects are displayed by Gource as an animated tree
with the root directory of the project at its centre. Directories
appear as branches with files as leaves. Developers can be seen
working on the tree at the times they contributed to the project.

Currently there is first party support for Git and Mercurial,
and third party (using additional steps) for CVS and SVN.

%prep
%setup -q
%patch0

%build
%configure \
  --enable-ttf-font-dir=%{_datadir}/fonts/truetype
make %{?_smp_flags}

%install
make DESTDIR=$RPM_BUILD_ROOT install
install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/cvs-exp
install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/svn-gource

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING ChangeLog README THANKS
%doc %{_mandir}/man1/*
%{_bindir}/gource
%{_bindir}/cvs-exp
%{_bindir}/svn-gource
%dir %{_datadir}/gource
%{_datadir}/gource/*

%changelog
openSUSE Build Service is sponsored by