diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:56:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:56:22 +0000 |
commit | 5d0c77ebdc7f3d8bc3b9dccb05535f04c2b87f3f (patch) | |
tree | 2d3ecb73776025838dfbf23da54e60011b20e0dc | |
parent | b3de697fd15ffa9bb6e662206a39f3c0d3605b54 (diff) |
automatic import of python-mozrunner
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-mozrunner.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/mozrunner-8.2.1.tar.gz diff --git a/python-mozrunner.spec b/python-mozrunner.spec new file mode 100644 index 0000000..74d68b3 --- /dev/null +++ b/python-mozrunner.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mozrunner +Version: 8.2.1 +Release: 1 +Summary: Reliable start/stop/configuration of Mozilla Applications (Firefox, Thunderbird, etc.) +License: MPL 2.0 +URL: https://wiki.mozilla.org/Auto-tools/Projects/Mozbase +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/76/ae/0922c23455f6aa04895a4fd589fcc80f6134f294f90b566043486d3a7805/mozrunner-8.2.1.tar.gz +BuildArch: noarch + + +%description +see https://firefox-source-docs.mozilla.org/mozbase/index.html + +%package -n python3-mozrunner +Summary: Reliable start/stop/configuration of Mozilla Applications (Firefox, Thunderbird, etc.) +Provides: python-mozrunner +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mozrunner +see https://firefox-source-docs.mozilla.org/mozbase/index.html + +%package help +Summary: Development documents and examples for mozrunner +Provides: python3-mozrunner-doc +%description help +see https://firefox-source-docs.mozilla.org/mozbase/index.html + +%prep +%autosetup -n mozrunner-8.2.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-mozrunner -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 8.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +571adb27bd1167acada08c03789c7dcf mozrunner-8.2.1.tar.gz |