blob: fc2b0bed98b74281a830a34ec351655a90828446 (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# some Python tests are failing
# The following tests FAILED:
# 40 - CacheTest.future (Child aborted)
# 290 - test_py::tests.integration.test_site_spawn.TestSiteSpawn.test_failingSpawner (Failed)
# 292 - test_py::tests.integration.test_site_spawn.TestSiteSpawn.test_spawner (Failed)
# Errors while running CTest
%bcond_with tests
Name: watchman
Version: 2020.09.21.00
Release: 2%{?dist}
Summary: File alteration monitoring service
License: ASL 2.0
URL: https://facebook.github.io/%{name}/
Source0: https://github.com/facebook/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-py_destdir.patch
# Folly is known not to work on big-endian CPUs
# TODO: file bz once this is approved
ExcludeArch: s390x
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: folly-devel
BuildRequires: pcre-devel
%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.
%package -n python3-py%{name}
Summary: Python bindings for %{name}
License: BSD and MIT
BuildRequires: procps-ng
BuildRequires: python3-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
# watchman-diag shells out to ps
Requires: procps-ng
%description -n python3-py%{name}
The python3-py%{name} package contains Python bindings for %{name}.
%prep
%autosetup -p1
# Fix pywatchman version.
sed -ie "s|version=\"1.4.1\"|version=\"%{version}\"|" python/setup.py
%build
%cmake
%cmake_build
%install
%cmake_install
%if %{with tests}
%check
%ctest
%endif
%files
%license LICENSE
%doc CODE_OF_CONDUCT.md README.markdown
%{_bindir}/watchman
%files -n python3-py%{name}
%license python/LICENSE
%{_bindir}/watchman-*
%{python3_sitearch}/py%{name}
%{python3_sitearch}/py%{name}-%{version}-py%{python3_version}.egg-info
%changelog
* Wed Nov 11 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 2020.09.21.00-2
- Support enabling tests
- Add ExcludeArch on s390x for Folly dependency
- Rename Python subpackage
- Fix version number and licensing for Python subpackage
- Move Python scripts to the Python subpackage
* Tue Nov 10 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 2020.09.21.00-1
- Initial package
|