-
Notifications
You must be signed in to change notification settings - Fork 2
/
watchman.spec
53 lines (43 loc) · 1.32 KB
/
watchman.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%global pyversion 1.4.0
Name: watchman
Version: 4.9.0
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}.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 <evan@eklitzke.org>
- Initial version