summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 15:10:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 15:10:03 +0000
commit194e6a63d30a5e9233b01ec8e34fb01ca6d5b0e9 (patch)
tree603890a98a1fabb96aaae8ad58fe2b732f0defad
parentff53e746b9d3af3c76b2916436ae9c00ae77ae39 (diff)
automatic import of python-palettable
-rw-r--r--.gitignore1
-rw-r--r--python-palettable.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..901dac6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/palettable-3.3.1.tar.gz
diff --git a/python-palettable.spec b/python-palettable.spec
new file mode 100644
index 0000000..c2e0aad
--- /dev/null
+++ b/python-palettable.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-palettable
+Version: 3.3.1
+Release: 1
+Summary: Color palettes for Python
+License: MIT License
+URL: https://jiffyclub.github.io/palettable/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ab/f2/db96513afc8dfd3b7cc994567c8da3cae1b87e9a475e631136c554d8ad64/palettable-3.3.1.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-palettable
+Summary: Color palettes for Python
+Provides: python-palettable
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-palettable
+
+
+%package help
+Summary: Development documents and examples for palettable
+Provides: python3-palettable-doc
+%description help
+
+
+%prep
+%autosetup -n palettable-3.3.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-palettable -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.3.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b558685
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+57a57477b8d105608ccbbf2c6da87181 palettable-3.3.1.tar.gz