1%global repo_owner atextor 2%global repo_name icat 3 4Name: icat 5Version: 0.4 6Release: 1%{?dist} 7Summary: Output images in terminal 8 9License: BSD 10URL: https://github.com/%{repo_owner}/%{repo_name} 11Source0: %{URL}/archive/v%{version}.tar.gz#/%{repo_name}-%{version}.tar.gz 12 13BuildRequires: imlib2-devel 14 15%description 16Outputs an image on a 256-color or 24-bit color enabled terminal 17with UTF-8 locale, such as gnome-terminal, konsole or rxvt-unicode (urxvt). 18 19%prep 20%setup -q -n %{repo_name}-%{version} 21# Extract license from source code 22cat icat.c | awk '1;/\*\//{exit}' > LICENSE 23 24%build 25make %{?_smp_mflags} 26 27%install 28install -m 755 -d %{buildroot}/%{_bindir} 29install -m 755 ./icat %{buildroot}/%{_bindir}/icat 30 31%files 32%doc CHANGELOG README.md 33%license LICENSE 34%{_bindir}/icat 35 36%changelog 37* Tue Oct 17 2017 suve <veg@svgames.pl> 38- Initial packaging 39