Name: fbless Version: 0.2.3 Release: 2%{?dist} Summary: Console FB2 reader License: GPLv2+ URL: https://github.com/matimatik/fbless Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: fbless.1 BuildRequires: python2-devel Requires: ncurses BuildArch: noarch %description Curses based FictionBook2 viewer. %prep %autosetup #https://github.com/matimatik/fbless/pull/31 sed -ier "s|os.path.join(xdg_config_home, \"fbless\", \"fblessrc\"),|'/etc/fblessrc',\n os.path.join(xdg_config_home, \"fbless\", \"fblessrc\"),|" fbless_lib/options.py %build %py2_build %install %py2_install mkdir %{buildroot}%{_sysconfdir} install -m 644 fblessrc.example %{buildroot}%{_sysconfdir}/fblessrc mkdir -p %{buildroot}%{_mandir}/man1/ gzip -c %{SOURCE1} > %{buildroot}%{_mandir}/man1/%{name}.1.gz %files %license LICENSE %doc AUTHORS Changelog README TODO %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/fblessrc %{_mandir}/man1/%{name}.1.gz %{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{name}_lib/ %changelog * Fri Jul 29 2016 Vasiliy N. Glazov 0.2.3-2 - Add man file * Wed Jul 20 2016 Vasiliy N. Glazov 0.2.3-1 - Initial packaging