Name: gitbash Version: 2015.01 Release: 1%{?dist} Summary: gitbash License: GPL URL: https://github.com/kjn/gitbash/ Source0: https://github.com/kjn/gitbash/archive/45dcd0d.tar.gz BuildRequires: python3-devel Requires: python3 %description gitbash %prep %setup -q -n gitbash-45dcd0d56cce341e9f693f0f539f8d60dc19ac23 sed -i '/_gitbash_prompt_script=/s|=.*|=%{_libexecdir}/%{name}/prompt.py|' prompt.bash %install install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d install -d -m 755 %{buildroot}%{_libexecdir}/%{name} install -p -m 644 aliases.bash %{buildroot}%{_sysconfdir}/profile.d/aliases.sh install -p -m 644 prompt.bash %{buildroot}%{_sysconfdir}/profile.d/prompt.sh install -p -m 755 prompt.py %{buildroot}%{_libexecdir}/%{name}/ %files %{_sysconfdir}/profile.d/aliases.sh %{_sysconfdir}/profile.d/prompt.sh %{_libexecdir}/%{name}/prompt.py %license COPYING %doc AUTHORS %changelog * Sat Oct 6 2018 Mikolaj Izdebski - 2015.01-2 - Initial packaging