Name: aha Version: 0.5.1 Release: %mkrel 1 Summary: Ansi HTML Adapter License: MPLv1.1 or LGPLv2+ Group: Development/Tools URL: https://github.com/theZiz/aha Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz # Fix a null pointer dereference when interpreting # invalid 24-bit color code escape sequences. # # Submitted upstream: https://github.com/theZiz/aha/pull/97 Patch0: 0000-fix-null-pointer-dereference.patch BuildRequires: gcc BuildRequires: make %description %{name} (ANSI HTML Adapter) converts ANSI escape sequences of a unix terminal to HTML code. %{name} parses output from other programs, recognizes ANSI terminal escape sequences and produces an HTML rendition of the original text. %prep %autosetup -p1 # Extract license header from source code cat aha.c | awk '1;/\*\//{exit}' > LICENSE %build %set_build_flags %make_build %install %make_install PREFIX=%{_prefix} %files %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}.*