## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 28; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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: 2021.05.10.00 Release: %autorelease Summary: File alteration monitoring service %global stripped_version %(echo %{version} | sed -r 's/\\.0([[:digit:]])/.\\1/g') License: Apache-2.0 URL: https://facebook.github.io/%{name}/ Source0: https://github.com/facebook/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: tmpfiles-%{name}.conf Patch0: %{name}-destdir.patch # https://github.com/facebook/folly/commit/b65ef9f8b5f9b495370b1e651732214cde8abc7d Patch1: watchman-2021.05.10.00-folly-new.patch # Fix build failure on 32bit arch Patch2: watchman-2021.05.10.00-wordsize.patch # Fix build failure with Python 3.12 Patch3: watchman-fix-for-py3_12.diff # Fix build failure with fmt 10 Patch4: watchman-fix-for-fmt10.diff ExclusiveArch: x86_64 aarch64 ppc64le riscv64 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: folly-devel BuildRequires: pcre-devel # for %%{_tmpfilesdir} BuildRequires: systemd-rpm-macros # Optional dependencies BuildRequires: valgrind-devel # Test dependencies # TODO this shouldn't be needed if tests are not enabled BuildRequires: gmock-devel BuildRequires: gtest-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-3-Clause and MIT BuildRequires: procps-ng BuildRequires: python3-devel BuildRequires: python3-setuptools 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 -i "s|version=\"1.4.1\"|version=\"%{version}\"|" python/setup.py # testsuite does not seem to compile with gtest 1.11.... # disabling for now on rawhide %if 0%{?fedora} >= 36 sed -i CMakeLists.txt -e 's|^t_test|#t_test|' %endif %build %cmake \ -DINSTALL_WATCHMAN_STATE_DIR=ON %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_tmpfilesdir} cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf %if %{with tests} %check %ctest %endif %files %license LICENSE %doc CODE_OF_CONDUCT.md README.markdown %attr(02777,root,root) %dir %{_var}/run/%{name} %{_bindir}/%{name} %{_tmpfilesdir}/%{name}.conf %files -n python3-py%{name} %license python/LICENSE %{_bindir}/%{name}-* %{python3_sitearch}/py%{name} %{python3_sitearch}/py%{name}-%{stripped_version}-py%{python3_version}.egg-info %changelog ## START: Generated by rpmautospec * Sat Jun 08 2024 Python Maint - 2021.05.10.00-28 - Rebuilt for Python 3.13 * Mon Apr 08 2024 JasenChao - 2021.05.10.00-27 - Add riscv64 support. * Sat Feb 24 2024 Michel Lind - 2021.05.10.00-26 - Rebuilt for folly 2024.02.19.00 * Thu Jan 25 2024 Michel Lind - 2021.05.10.00-25 - Rebuilt for folly 2024.01.22.00 * Wed Oct 18 2023 Michel Lind - 2021.05.10.00-24 - Rebuilt for folly 2023.10.16.00 * Wed Sep 13 2023 Michel Lind - 2021.05.10.00-23 - Rebuilt for folly 2023.09.11.00 * Sat Jul 22 2023 Fedora Release Engineering - 2021.05.10.00-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 10 2023 Michel Alexandre Salim - 2021.05.10.00-21 - Rebuild for folly 2023.07.03.00 - Fix build failure with Python 3.12 (fixes: rhbz#2155443) - Fix build failure with fmt 10 (fixes: rhbz#2219458) - Use SPDX license identifiers * Wed Jun 28 2023 Vitaly Zaitsev - 2021.05.10.00-20 - Rebuilt due to fmt 10 update. * Tue Jun 13 2023 Python Maint - 2021.05.10.00-19 - Rebuilt for Python 3.12 * Tue Apr 25 2023 Michel Alexandre Salim - 2021.05.10.00-18 - Rebuild for folly-2023.04.24.00 * Sat Jan 21 2023 Fedora Release Engineering - 2021.05.10.00-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2021.05.10.00-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 22 2022 Michel Alexandre Salim - 2021.05.10.00-15 - Rebuild for folly 2022.07.11.00 * Tue Jul 19 2022 Mamoru TASAKA - 2021.05.10.00-14 - Rebuild for fmt-9, enable ppc64 again * Thu Mar 17 2022 Michel Alexandre Salim - 2021.05.10.00-13 - Rebuild for folly-2022.03.14.00 * Wed Mar 09 2022 Michel Alexandre Salim - 2021.05.10.00-12 - Drop %%%%{arm32} too on clang-compiled folly * Wed Mar 09 2022 Michel Alexandre Salim - 2021.05.10.00-11 - Exclude %%%%{ix86} on Fedora >= 36 * Wed Mar 09 2022 Michel Alexandre Salim - 2021.05.10.00-10 - Exclude ppc64le on Fedora >= 36 until Folly's fmt issue is fixed * Wed Mar 09 2022 Michel Alexandre Salim - 2021.05.10.00-9 - Rebuild for folly-2022.03.07.00 * Sat Jan 22 2022 Fedora Release Engineering - 2021.05.10.00-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 28 2021 Michel Alexandre Salim - 2021.05.10.00-7 - Rebuilt with Folly 2021.12.20.00 - Opt in to rpmautospec * Tue Sep 14 2021 Sahana Prasad - 2021.05.10.00-6 - Rebuilt with OpenSSL 3.0.0 * Mon Sep 13 2021 Mamoru TASAKA - 2021.05.10.00-5 - Patch for folly API deprecation change - Patch for build issue on 32bit arch - Disable tests with gtest 1.11 for now * Fri Jul 23 2021 Fedora Release Engineering - 2021.05.10.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 05 2021 Richard Shaw - 2021.05.10.00-3 - Rebuild for new fmt version. * Fri Jun 04 2021 Python Maint - 2021.05.10.00-2 - Rebuilt for Python 3.10 * Mon May 10 2021 Michel Alexandre Salim - 2021.05.10.00-1 - Update to 2021.05.10.00 * Mon Apr 26 2021 Michel Alexandre Salim - 2021.04.26.00-1 - Update to 2021.04.26.00 * Fri Apr 16 2021 Michel Alexandre Salim - 2021.04.12.00-1 - Update to 2021.04.12.00 * Tue Mar 30 2021 Jonathan Wakely - 2021.03.29.00-2 - Rebuilt for removed libstdc++ symbol (#1937698) * Mon Mar 29 2021 Michel Alexandre Salim - 2021.03.29.00-1 - Update to 2021.03.29.00 * Wed Mar 24 2021 Michel Alexandre Salim - 2021.03.22.00-1 - Update to 2021.03.22.00 * Mon Mar 15 2021 Michel Alexandre Salim - 2021.03.15.00-1 - Update to 2021.03.15.00 * Wed Feb 03 2021 Michel Alexandre Salim - 2021.02.01.00-1 - Update to 2021.02.01.00 * Tue Jan 26 17:51:20 PST 2021 Michel Alexandre Salim - 2021.01.25.00-1 - Update to 2021.01.25.00 * Tue Dec 29 12:16:46 PST 2020 Michel Alexandre Salim - 2020.12.28.00-1 - Update to 2020.12.28.00 * Tue Dec 22 20:48:10 PST 2020 Michel Alexandre Salim - 2020.12.21.00-1 - Update to 2020.12.21.00 * Tue Dec 1 12:26:55 PST 2020 Michel Alexandre Salim - 2020.09.21.00-7 - Recreate state directory with tmpfiles (bz #1903141) * Mon Nov 30 16:23:46 PST 2020 Michel Alexandre Salim - 2020.09.21.00-6 - Rebuild for folly-2020.11.30.00 * Mon Nov 23 2020 Michel Alexandre Salim - 2020.09.21.00-5 - Rebuild for folly-2020.11.23.00 * Mon Nov 16 2020 Michel Alexandre Salim - 2020.09.21.00-4 - Rebuild for folly-2020.11.16.00 * Thu Nov 12 2020 Michel Alexandre Salim - 2020.09.21.00-3 - Also install Watchman's state directory * Wed Nov 11 2020 Michel Alexandre Salim - 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 - 2020.09.21.00-1 - Initial package ## END: Generated by rpmautospec