summaryrefslogtreecommitdiff
path: root/python-pywatchman.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:10:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:10:20 +0000
commitcee6886b226e1b3c844de83306d04927e4fba574 (patch)
tree5bc12d60431fe4d9c523990a52b0cffa75e113e7 /python-pywatchman.spec
parent681be449a5d80717847bfeedac4694bf9ef3c0a3 (diff)
automatic import of python-pywatchman
Diffstat (limited to 'python-pywatchman.spec')
-rw-r--r--python-pywatchman.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-pywatchman.spec b/python-pywatchman.spec
new file mode 100644
index 0000000..f7f4ab2
--- /dev/null
+++ b/python-pywatchman.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pywatchman
+Version: 1.4.1
+Release: 1
+Summary: Watchman client for python
+License: BSD
+URL: https://github.com/facebook/watchman
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c8/78/27e68a475fea03949cf37ebe9229e2c49a5af5e3d149951988e47b5929c1/pywatchman-1.4.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Connect and query Watchman to discover file changes
+
+%package -n python3-pywatchman
+Summary: Watchman client for python
+Provides: python-pywatchman
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pywatchman
+Connect and query Watchman to discover file changes
+
+%package help
+Summary: Development documents and examples for pywatchman
+Provides: python3-pywatchman-doc
+%description help
+Connect and query Watchman to discover file changes
+
+%prep
+%autosetup -n pywatchman-1.4.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pywatchman -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.1-1
+- Package Spec generated