File ttygif.spec of Package ttygif
#
# spec file for package ttygif
#
# Copyright (c) 2017 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: ttygif
Version: 1.4.0
Release: 0
Summary: Convert terminal recordings to animated gifs
License: MIT
Group: Productivity/Text/Utilities
Url: https://github.com/icholy/ttygif
Source: https://github.com/icholy/ttygif/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
# Check list of dependencies:
BuildRequires: ImageMagick
BuildRequires: ttyrec
BuildRequires: xwd
Requires: ImageMagick
Requires: ttyrec
Requires: xwd
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Converts a ttyrec file into gif files. It's a stripped down version of
ttyplay that screenshots every frame.
%prep
%setup -q
sed -e '/^CFLAGS/s/$/\ %{optflags}/' \
-i Makefile
%build
make %{?_smp_mflags}
%install
%make_install PREFIX=%{buildroot}%{_prefix}
%files
%defattr(-,root,root)
%doc LICENSE*
%{_bindir}/%{name}
%changelog