!1 package init
From: @caodongxia Reviewed-by: @jeff200902,@myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
fadd992183
BIN
jaraco.text-3.2.0.tar.gz
Normal file
BIN
jaraco.text-3.2.0.tar.gz
Normal file
Binary file not shown.
87
python-jaraco-text.spec
Normal file
87
python-jaraco-text.spec
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-jaraco-text
|
||||||
|
Version: 3.2.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Module for text manipulation
|
||||||
|
License: MIT
|
||||||
|
URL: https://pypi.org/project/jaraco.text
|
||||||
|
Source0: https://files.pythonhosted.org/packages/03/3e/4fd93c4ca0524b3a55ab6c9a1cc5e2ec4fdbf6cfbf4c23a2fbfcf450e348/jaraco.text-3.2.0.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python-setuptools_scm
|
||||||
|
Recommends: %{name}-help = %{version}-%{release}
|
||||||
|
|
||||||
|
Requires: python3-six
|
||||||
|
Requires: python3-importlib-resources
|
||||||
|
Requires: python3-sphinx
|
||||||
|
Requires: python3-pytest
|
||||||
|
Requires: python3-pytest-checkdocs
|
||||||
|
Requires: python3-pytest-flake8
|
||||||
|
Requires: python3-pytest-black-multipy
|
||||||
|
Requires: python3-pytest-cov
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%package -n python3-jaraco-text
|
||||||
|
Summary: Module for text manipulation
|
||||||
|
Provides: python-jaraco-text
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
|
%description -n python3-jaraco-text
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for jaraco.text
|
||||||
|
Provides: python3-jaraco-text-doc
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Documentation for jaraco.text
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n jaraco.text-3.2.0
|
||||||
|
|
||||||
|
%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-jaraco-text
|
||||||
|
%exclude %{python3_sitelib}/jaraco/__init__*
|
||||||
|
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
|
||||||
|
%{python3_sitelib}/jaraco/text/
|
||||||
|
%{python3_sitelib}/jaraco.text-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Nov 16 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||||
|
- Package init
|
||||||
4
python-jaraco-text.yaml
Normal file
4
python-jaraco-text.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: pypi
|
||||||
|
src_repo: jaraco.text
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user