summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 08:37:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 08:37:39 +0000
commit08ccdb2dda5f8063ce8b39a22c005ec2314bb75f (patch)
tree3808c3e3e34c868e7ce487d3eb9d8f6dbc0c9fd7
parent8e333b9c43ee7a933ab9ea7c6ae0daf1e5b59dcd (diff)
automatic import of python-afinn
-rw-r--r--.gitignore1
-rw-r--r--python-afinn.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8d3cbbb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/afinn-0.1.tar.gz
diff --git a/python-afinn.spec b/python-afinn.spec
new file mode 100644
index 0000000..be8baa6
--- /dev/null
+++ b/python-afinn.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-afinn
+Version: 0.1
+Release: 1
+Summary: AFINN sentiment analysis
+License: GPL
+URL: https://github.com/fnielsen/afinn
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/86/e5/ffbb7ee3cca21ac6d310ac01944fb163c20030b45bda25421d725d8a859a/afinn-0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+AFINN sentiment analysis in Python: Wordlist-based approach for sentiment analysis.
+
+%package -n python3-afinn
+Summary: AFINN sentiment analysis
+Provides: python-afinn
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-afinn
+AFINN sentiment analysis in Python: Wordlist-based approach for sentiment analysis.
+
+%package help
+Summary: Development documents and examples for afinn
+Provides: python3-afinn-doc
+%description help
+AFINN sentiment analysis in Python: Wordlist-based approach for sentiment analysis.
+
+%prep
+%autosetup -n afinn-0.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-afinn -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..540eb8f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1017ee51c918a45461454b42c62fd722 afinn-0.1.tar.gz