%global pyversion 1.4.0 Name: watchman Version: 2020.11.23 Release: 2%{?dist} Summary: Watches files and records, or triggers actions, when they change. License: APL2 URL: https://facebook.github.io/watchman/ Source0: https://github.com/facebook/%{name}/archive/v%{version}.00.tar.gz BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: make BuildRequires: autoconf BuildRequires: automake BuildRequires: openssl-devel BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Watches files and records, or triggers actions, when they change. %prep %autosetup -n %{name}-%{version} ./autogen.sh # See https://github.com/facebook/watchman/issues/638 as to why --enable-lenient # is required. %configure --enable-lenient --with-python=%{__python3} %build %make_build # Unfortunately make check fails on art.t # %%check #make check %install make install DESTDIR=%{buildroot} mkdir %{buildroot}%{_docdir}/%{name} rm -rf %{buildroot}%{_docdir}/%{name}-%{version} rm -rf %{buildroot}%{_usr}/var/run/watchman rm -rf %{buildroot}%{python3_sitearch}/py%{name}-%{pyversion}-py%{python3_version}.egg-info %files %defattr(-,root,root,-) %doc README.markdown %attr(0755,root,root) %{_bindir}/watchman{,-make,-wait} %{python3_sitearch}/pywatchman %changelog * Thu Nov 22 2018 Evan Klitzke - Initial version