summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 10:36:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 10:36:42 +0000
commit48f68a97c71a076f548d4730f069d8cd32259402 (patch)
treef025be47ae6278e2c7c00294414f3b8af7cfca95
parentb36778320b8095bd2a0704d7f308e0db4f3ae252 (diff)
automatic import of python-breadability
-rw-r--r--.gitignore1
-rw-r--r--python-breadability.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..95f4f38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/breadability-0.1.20.tar.gz
diff --git a/python-breadability.spec b/python-breadability.spec
new file mode 100644
index 0000000..9419770
--- /dev/null
+++ b/python-breadability.spec
@@ -0,0 +1,102 @@
+%global _empty_manifest_terminate_build 0
+Name: python-breadability
+Version: 0.1.20
+Release: 1
+Summary: Port of Readability HTML parser in Python
+License: BSD
+URL: https://github.com/bookieio/breadability
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/2d/bb6c9b381e6b6a432aa2ffa8f4afdb2204f1ff97cfcc0766a5b7683fec43/breadability-0.1.20.tar.gz
+BuildArch: noarch
+
+
+%description
+I've tried to work with the various forks of some ancient codebase that ported
+`readability`_ to Python. The lack of tests, unused regex's, and commented out
+sections of code in other Python ports just drove me nuts.
+I put forth an effort to bring in several of the better forks into one
+code base, but they've diverged so much that I just can't work with it.
+So what's any sane person to do? Re-port it with my own repo, add some tests,
+infrastructure, and try to make this port better. OSS FTW (and yea, NIH FML,
+but oh well I did try)
+This is a pretty straight port of the JS here:
+- http://code.google.com/p/arc90labs-readability/source/browse/trunk/js/readability.js#82
+- http://www.minvolai.com/blog/decruft-arc90s-readability-in-python/
+
+%package -n python3-breadability
+Summary: Port of Readability HTML parser in Python
+Provides: python-breadability
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-breadability
+I've tried to work with the various forks of some ancient codebase that ported
+`readability`_ to Python. The lack of tests, unused regex's, and commented out
+sections of code in other Python ports just drove me nuts.
+I put forth an effort to bring in several of the better forks into one
+code base, but they've diverged so much that I just can't work with it.
+So what's any sane person to do? Re-port it with my own repo, add some tests,
+infrastructure, and try to make this port better. OSS FTW (and yea, NIH FML,
+but oh well I did try)
+This is a pretty straight port of the JS here:
+- http://code.google.com/p/arc90labs-readability/source/browse/trunk/js/readability.js#82
+- http://www.minvolai.com/blog/decruft-arc90s-readability-in-python/
+
+%package help
+Summary: Development documents and examples for breadability
+Provides: python3-breadability-doc
+%description help
+I've tried to work with the various forks of some ancient codebase that ported
+`readability`_ to Python. The lack of tests, unused regex's, and commented out
+sections of code in other Python ports just drove me nuts.
+I put forth an effort to bring in several of the better forks into one
+code base, but they've diverged so much that I just can't work with it.
+So what's any sane person to do? Re-port it with my own repo, add some tests,
+infrastructure, and try to make this port better. OSS FTW (and yea, NIH FML,
+but oh well I did try)
+This is a pretty straight port of the JS here:
+- http://code.google.com/p/arc90labs-readability/source/browse/trunk/js/readability.js#82
+- http://www.minvolai.com/blog/decruft-arc90s-readability-in-python/
+
+%prep
+%autosetup -n breadability-0.1.20
+
+%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-breadability -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.20-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e20762d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+57903360c77f4603d634511566ef1595 breadability-0.1.20.tar.gz