diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c324909 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/aha-0.4.10.6.tar.gz +/aha-0.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index aac56a8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# aha - -The aha package \ No newline at end of file diff --git a/aha.spec b/aha.spec new file mode 100644 index 0000000..4617ef2 --- /dev/null +++ b/aha.spec @@ -0,0 +1,49 @@ +Name: aha +Version: 0.5 +Release: 1%{?dist} +Summary: Convert terminal output to HTML + +License: MPLv1.1 or LGPLv2+ +URL: https://github.com/theZiz/aha +Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc make + + +%description +%{name} parses output from other programs, +recognizes ANSI terminal escape sequences +and produces an HTML rendition of the original text. + + +%prep +%setup -q +# 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}.* + + +%changelog +* Sat Oct 27 2018 Artur Iwicki - 0.5-1 +- Update to latest upstream release + +* Wed Jul 18 2018 Artur Iwicki - 0.4.10.6-2 +- Invoke %%set_build_flags before building +- Use %%make_build instead of "make %%{?_smp_flags}" + +* Sun Jul 15 2018 Artur Iwicki - 0.4.10.6-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..97ad0fa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (aha-0.5.tar.gz) = 2fbf0be928d8ea0491f6710d96eddd135253cadce6cc8c00f342e03e030ee16a3ff1eb6a559740cdd642b074c9e4e3fd9a76412272ffeb0b7bb419b0dcb6dbc1