diff --git a/jaraco.collections-3.0.0.tar.gz b/jaraco.collections-3.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1a17ca8a4a6649a3bf17ef5a767fd79cbb99afb7 Binary files /dev/null and b/jaraco.collections-3.0.0.tar.gz differ diff --git a/python-jaraco-collections.spec b/python-jaraco-collections.spec new file mode 100644 index 0000000000000000000000000000000000000000..2abcf9832e8cf3e6a5e19a0f69565260fa545a38 --- /dev/null +++ b/python-jaraco-collections.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jaraco-collections +Version: 3.0.0 +Release: 1 +Summary: Collection objects similar to those in stdlib by jaraco +License: MIT +URL: https://pypi.org/project/jaraco.collections +Source0: https://files.pythonhosted.org/packages/74/ed/8ee1599924eb6c42b02e26a13e79f5069012b170401a42a8b8d6afe1f289/jaraco.collections-3.0.0.tar.gz +BuildArch: noarch +BuildRequires: python-setuptools_scm +Recommends: %{name}-help = %{version}-%{release} + +Requires: python3-six +Requires: python3-sphinx +Requires: python3-pytest +Requires: python3-pytest-checkdocs +Requires: python3-pytest-flake8 +Requires: python3-pytest-black-multipy +Requires: python3-pytest-cov + +%description +A dictionary-like object that maps a range of values to a given value. + +%package -n python3-jaraco-collections +Summary: Collection objects similar to those in stdlib by jaraco +Provides: python-jaraco-collections +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-jaraco-collections +A dictionary-like object that maps a range of values to a given value. + +%package help +Summary: Development documents and examples for jaraco.collections +Provides: python3-jaraco-collections-doc +%description help +A dictionary-like object that maps a range of values to a given value. + +%prep +%autosetup -n jaraco.collections-3.0.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-collections +%exclude %{python3_sitelib}/jaraco/__init__.py +%exclude %{python3_sitelib}/jaraco/collections.py +%exclude %{python3_sitelib}/jaraco/__pycache__/__init__.* +%exclude %{python3_sitelib}/jaraco/__pycache__/collections.cpython-38.* +%{python3_sitelib}/jaraco.collections-%{version}-py%{python3_version}.egg-info/ + +%files help +%{_docdir}/* + +%changelog +* Mon Nov 16 2020 Python_Bot +- Package init diff --git a/python-jaraco-collections.yaml b/python-jaraco-collections.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a77a9d8a1e911bb075ef452686f4f30f6650b709 --- /dev/null +++ b/python-jaraco-collections.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: jaraco.collections +tag_prefix: "^v" +seperator: "."