Name: watchman Version: 2.5.2 Release: 0.1.20130601git%{?dist} Summary: Watches files and takes action when they change License: ASL 2.0 URL: https://github.com/facebook/watchman/ # Pulled from master, because latest release would not build. # git clone https://github.com/facebook/watchman.git # git checkout fecfb258b0 Source0: %{name}-master.tar.gz BuildRequires: autoconf automake help2man pcre-devel Requires: pcre %description Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change. %prep %setup -q -n %{name}-master %build ./autogen.sh %configure \ --with-pcre \ --with-buildinfo="%{version}-%{release}" # %%{?_smp_mflags} breaks the build, intentionally leaving off. make %install %make_install # Generate the manpage with help2man mkdir -p %{buildroot}/%{_mandir}/man1/ help2man %{buildroot}/%{_bindir}/watchman -N > %{buildroot}/%{_mandir}/man1/%{name}.1 # We include README.markdown in %%doc below, and this installs in the # wrong place anyway. rm -rf %{buildroot}/%{_docdir}/%{name}-2.5 %files %doc LICENSE README.markdown %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Fri May 31 2013 Ricky Elrod - 2.5.2-0.1.20130531git - Initial spec.