diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sniffer.spec | 91 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 93 insertions, 0 deletions
@@ -0,0 +1 @@ +/sniffer-0.4.1.tar.gz diff --git a/python-sniffer.spec b/python-sniffer.spec new file mode 100644 index 0000000..ba538aa --- /dev/null +++ b/python-sniffer.spec @@ -0,0 +1,91 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sniffer +Version: 0.4.1 +Release: 1 +Summary: An automatic test runner. Supports nose out of the box. +License: MIT +URL: http://github.com/jeffh/sniffer/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9d/12/f75e449ce32d4426dfec61ec05b3546d5373aa10cb2a863c40548eeadade/sniffer-0.4.1.tar.gz +BuildArch: noarch + +Requires: python3-colorama +Requires: python3-termstyle +Requires: python3-nose +Requires: python3-gntp +Requires: python3-py-notify +Requires: python3-pyinotify +Requires: python3-MacFSEvents + +%description +``sniffer`` is a autotest tool for Python_ using the nosetest_ library. +**NEW**: sniffer can now be customize to run anything, see 'Advanced Usage'. +Sniffer will automatically re-run tests if your code changes. And with another third-party +library (see below), the CPU usage of file system monitoring is reduced in comparison +to pure-python solutions. However, sniffer will still work without any of those libraries. + +%package -n python3-sniffer +Summary: An automatic test runner. Supports nose out of the box. +Provides: python-sniffer +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sniffer +``sniffer`` is a autotest tool for Python_ using the nosetest_ library. +**NEW**: sniffer can now be customize to run anything, see 'Advanced Usage'. +Sniffer will automatically re-run tests if your code changes. And with another third-party +library (see below), the CPU usage of file system monitoring is reduced in comparison +to pure-python solutions. However, sniffer will still work without any of those libraries. + +%package help +Summary: Development documents and examples for sniffer +Provides: python3-sniffer-doc +%description help +``sniffer`` is a autotest tool for Python_ using the nosetest_ library. +**NEW**: sniffer can now be customize to run anything, see 'Advanced Usage'. +Sniffer will automatically re-run tests if your code changes. And with another third-party +library (see below), the CPU usage of file system monitoring is reduced in comparison +to pure-python solutions. However, sniffer will still work without any of those libraries. + +%prep +%autosetup -n sniffer-0.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-sniffer -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.1-1 +- Package Spec generated @@ -0,0 +1 @@ +1edf8d976b8ee5081a5f0c15d7142b77 sniffer-0.4.1.tar.gz |