File gource.spec of Package gource
#
# spec file for package gource
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gource
Version: 0.43
Release: 0
Summary: Software version control visualization tool
License: GPL-3.0+
Group: Productivity/Graphics/Visualization/Graph
Url: https://code.google.com/p/gource/
Source: https://github.com/acaudwell/Gource/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: http://gource.googlecode.com/files/cvs-exp.pl
Source2: https://raw.githubusercontent.com/acaudwell/Gource/gource-%{version}/contrib/svn-gource.py
Patch0: boost_ppc64le.patch
BuildRequires: automake
BuildRequires: boost-devel >= 1.46
BuildRequires: gcc-c++
BuildRequires: glew-devel
BuildRequires: glm-devel >= 0.9.3
BuildRequires: tinyxml-devel
BuildRequires: pkgconfig(freetype2) >= 9.0.3
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libpng) >= 1.2
Requires: freefont
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1310
BuildRequires: pkgconfig(SDL2_image) >= 2.0
BuildRequires: pkgconfig(sdl2) >= 2.0
%else
BuildRequires: pkgconfig(SDL_image) >= 1.2
BuildRequires: pkgconfig(sdl) >= 1.2
%endif
%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 -p1
%build
autoreconf -fi
%configure \
--with-tinyxml=yes \
--enable-ttf-font-dir=%{_datadir}/fonts/truetype
make %{?_smp_mflags}
%install
%make_install
install %{SOURCE1} %{buildroot}%{_bindir}/cvs-exp
install %{SOURCE2} %{buildroot}%{_bindir}/svn-gource
%files
%defattr(-,root,root)
%doc COPYING ChangeLog README THANKS
%doc %{_mandir}/man1/*
%{_bindir}/gource
%{_bindir}/cvs-exp
%{_bindir}/svn-gource
%{_datadir}/gource/
%changelog