%global _plan9dir %{_libdir}/plan9 %global __requires_exclude ^/bin/rc$ %global commit 46606276c3fe20fa81597cf87378e18f7baf88a7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: plan9port Version: %{shortcommit} Release: 3%{?dist} Summary: Plan 9 from User Space License: LPL URL: https://9fans.github.io/plan9port/ Source0: https://github.com/9fans/%{name}/archive/%{commit}.tar.gz BuildRequires: gcc BuildRequires: fontconfig-devel BuildRequires: make BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXt-devel Requires: fontconfig Requires: libX11 Requires: libXext Requires: libXt %description Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs from their native Plan 9 environment to Unix-like operating systems. %prep %setup -q -n %{name}-%{commit} # Borrow from Gentoo to rename paths prior to building from source; # see: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/plan9port/plan9port-20140306-r4.ebuild#n55 grep --null -l -r "/usr/local/plan9" | xargs --null sed -i "s!/usr/local/plan9!%{_plan9dir}!g" %build ./INSTALL -r %{_plan9dir} %install mkdir -p %{buildroot}%{_plan9dir}/ mkdir -p %{buildroot}%{_sysconfdir}/profile.d/ cp -pr * %{buildroot}%{_plan9dir}/ rm -f %{buildroot}%{_plan9dir}/install.{log,sum} cat >%{buildroot}%{_sysconfdir}/profile.d/plan9.sh <%{buildroot}%{_sysconfdir}/profile.d/plan9.csh < 4660627-3 - Upgrade to 4660627 * Tue Oct 17 2017 Steven Stallion 805d91d-2 - Fix shell expansion * Tue Oct 17 2017 Steven Stallion 805d91d-1 - Initial revision