diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:48:56 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:48:56 +0000 |
| commit | d2fc389b6a89d2882d8754c52fe76a2a35fca647 (patch) | |
| tree | fa3fb92219693d7dcbd2fc943d7e73694fd11a5d /python-mr3px.spec | |
| parent | 4269c878c30c0f1627fa87a12bf4f7c306b73134 (diff) | |
automatic import of python-mr3px
Diffstat (limited to 'python-mr3px.spec')
| -rw-r--r-- | python-mr3px.spec | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/python-mr3px.spec b/python-mr3px.spec new file mode 100644 index 0000000..c0abcf2 --- /dev/null +++ b/python-mr3px.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mr3px +Version: 0.5.1 +Release: 1 +Summary: Line-based protocols for use with mrjob. +License: Apache +URL: http://github.com/msharp/mr3px +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/02/10/894865001cd5bac8a1c42d223ab5fb939732493ba6dbb51decbdace8c575/mr3px-0.5.1.tar.gz +BuildArch: noarch + + +%description +*This package is forked from `mr3po <https://github.com/yelp/mr3po>`__* + "The 3PX-series protocol droid were third-degree protocol droids + produced by Cybot Galactica in 50 BBY and based on the design of the + company's 3PO-series protocol droid." + *`Wookiepedia <http://starwars.wikia.com/wiki/3PX-series_protocol_droid>`__* +**mr3px** is a library of line-based `custom +protocols <http://packages.python.org/mrjob/protocols.html#custom-protocols>`__ +for use with the `mrjob <http://packages.python.org/mrjob/>`__ library. + +%package -n python3-mr3px +Summary: Line-based protocols for use with mrjob. +Provides: python-mr3px +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mr3px +*This package is forked from `mr3po <https://github.com/yelp/mr3po>`__* + "The 3PX-series protocol droid were third-degree protocol droids + produced by Cybot Galactica in 50 BBY and based on the design of the + company's 3PO-series protocol droid." + *`Wookiepedia <http://starwars.wikia.com/wiki/3PX-series_protocol_droid>`__* +**mr3px** is a library of line-based `custom +protocols <http://packages.python.org/mrjob/protocols.html#custom-protocols>`__ +for use with the `mrjob <http://packages.python.org/mrjob/>`__ library. + +%package help +Summary: Development documents and examples for mr3px +Provides: python3-mr3px-doc +%description help +*This package is forked from `mr3po <https://github.com/yelp/mr3po>`__* + "The 3PX-series protocol droid were third-degree protocol droids + produced by Cybot Galactica in 50 BBY and based on the design of the + company's 3PO-series protocol droid." + *`Wookiepedia <http://starwars.wikia.com/wiki/3PX-series_protocol_droid>`__* +**mr3px** is a library of line-based `custom +protocols <http://packages.python.org/mrjob/protocols.html#custom-protocols>`__ +for use with the `mrjob <http://packages.python.org/mrjob/>`__ library. + +%prep +%autosetup -n mr3px-0.5.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-mr3px -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1 +- Package Spec generated |
