summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 12:43:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 12:43:10 +0000
commita9361a81f8d1591506ba8d2516dd04f349972e28 (patch)
tree0c979b7f05cfa17ab3dc76cc4578cea29106969f
parent2445ea698977b0f3960e44d34aff0922d0d04a4b (diff)
automatic import of python-pycocoaopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pycocoa.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ecb8659 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PyCocoa-23.2.6.zip
diff --git a/python-pycocoa.spec b/python-pycocoa.spec
new file mode 100644
index 0000000..87856d8
--- /dev/null
+++ b/python-pycocoa.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-PyCocoa
+Version: 23.2.6
+Release: 1
+Summary: Basic Python binding to macOS' Objective-C Cocoa
+License: MIT
+URL: https://GitHub.com/mrJean1/PyCocoa
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fd/40/ee1a351d5293d5347a94b77731ae067e4ee6f308e173a79bba7854814e8a/PyCocoa-23.2.6.zip
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-PyCocoa
+Summary: Basic Python binding to macOS' Objective-C Cocoa
+Provides: python-PyCocoa
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-PyCocoa
+
+
+%package help
+Summary: Development documents and examples for PyCocoa
+Provides: python3-PyCocoa-doc
+%description help
+
+
+%prep
+%autosetup -n PyCocoa-23.2.6
+
+%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-PyCocoa -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 23.2.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..435bb1e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1dafd1d1eaafc5509c33681cdc97e919 PyCocoa-23.2.6.zip