summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 12:47:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 12:47:25 +0000
commit35614b1f924813f1e8312b068b159d617b0ec5cf (patch)
tree6555177ade15e2dbfa7799d80d8b324ba41b4d31
parent133c33978b9270a1e381064ef14c514e1a1105fa (diff)
automatic import of python-link-extractoropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-link-extractor.spec121
-rw-r--r--sources1
3 files changed, 123 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3c89763 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/link_extractor-0.0.135.tar.gz
diff --git a/python-link-extractor.spec b/python-link-extractor.spec
new file mode 100644
index 0000000..d7f7ed0
--- /dev/null
+++ b/python-link-extractor.spec
@@ -0,0 +1,121 @@
+%global _empty_manifest_terminate_build 0
+Name: python-link-extractor
+Version: 0.0.135
+Release: 1
+Summary: Extract Links from news source, ranked by importance.
+License: MIT License
+URL: https://github.com/gaoyunzhi/link_extractor
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2e/50/e9791686799ecbaba9a8cc0dd3f7b9bd501f7ce39a4b8b1716546986730a/link_extractor-0.0.135.tar.gz
+BuildArch: noarch
+
+Requires: python3-bs4
+Requires: python3-telegram-util
+Requires: python3-cached-url
+Requires: python3-pyyaml
+
+%description
+# link_extractor
+
+Extract Links from news source, ranked by importance.
+
+## usage
+
+```
+import link_extractor
+link_extractor.getLinks(site)
+```
+
+## how to install
+
+`pip3 install link_extractor`
+
+
+
+%package -n python3-link-extractor
+Summary: Extract Links from news source, ranked by importance.
+Provides: python-link-extractor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-link-extractor
+# link_extractor
+
+Extract Links from news source, ranked by importance.
+
+## usage
+
+```
+import link_extractor
+link_extractor.getLinks(site)
+```
+
+## how to install
+
+`pip3 install link_extractor`
+
+
+
+%package help
+Summary: Development documents and examples for link-extractor
+Provides: python3-link-extractor-doc
+%description help
+# link_extractor
+
+Extract Links from news source, ranked by importance.
+
+## usage
+
+```
+import link_extractor
+link_extractor.getLinks(site)
+```
+
+## how to install
+
+`pip3 install link_extractor`
+
+
+
+%prep
+%autosetup -n link-extractor-0.0.135
+
+%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-link-extractor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.135-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e67dc28
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4ad10fe8157af806dd0ebcecf1acc5ad link_extractor-0.0.135.tar.gz