summaryrefslogtreecommitdiff
path: root/python-substring.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 00:51:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 00:51:47 +0000
commit0a843cfc7830604301080056c2f1915ca9c3129e (patch)
treea2966dfd13a311631b765234cecfed5e8caa7333 /python-substring.spec
parent00a9512ba5062b3afe2c1aea802e571ee51da818 (diff)
automatic import of python-substring
Diffstat (limited to 'python-substring.spec')
-rw-r--r--python-substring.spec123
1 files changed, 123 insertions, 0 deletions
diff --git a/python-substring.spec b/python-substring.spec
new file mode 100644
index 0000000..c13b833
--- /dev/null
+++ b/python-substring.spec
@@ -0,0 +1,123 @@
+%global _empty_manifest_terminate_build 0
+Name: python-substring
+Version: 0.2
+Release: 1
+Summary: Multi-Operational and Flexible Substring Package
+License: MIT
+URL: https://github.com/VETURISRIRAM/SUBSTRING
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7e/7d/cf210fae5576a7ab9b7e5e84b3835e78e30d82d418d78ce4200258134007/substring-0.2.tar.gz
+BuildArch: noarch
+
+
+%description
+#SUBSTRING Version 0.2
+
+##Multi-Operational and Flexible Substring Package
+
+##This is indeed a need for the developer community to experience such simple, easy-to-use and extremely user friendly Python package which does your usual job of cutting out a piece of substring from the parent string without writing certain lines of code. Nobody wants to spend their valuable time in writing such simple code when they can work on the bigger and other important contributions to the developers' community. This package has the following two methods associated with it:
+
+###1) substringByChar()
+It has four parameters namely, initialString, startChar, endChar, and stepSize(default=1). It would spit out the substring on the basis of the characters entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end characters as "d" and "l" respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+###2) substringByInd()
+It has four parameters namely, initialString, startInd, endInd, and stepSize(default=1). It would spit out the substring on the basis of the indices entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end indices as 3 and 11 respectively because "d" and "l" represent the indices 3 and 11 respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+####This package is "Multi-Operational" because it not only gets you the substring of your choice with such ease but also allows you to play around with the step sizes that you want. For example, consider the same string "abcdefghijklmnopqrstuvwxyz", and you can pull out "aceg" by entering the startChar, endChar, stepSize as "a", "g" and 2 respectively.
+
+####With such ease of use, this package efficiently handles all the exceptions caused and lets the user know about them which makes the user experience very rich.
+
+
+
+
+%package -n python3-substring
+Summary: Multi-Operational and Flexible Substring Package
+Provides: python-substring
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-substring
+#SUBSTRING Version 0.2
+
+##Multi-Operational and Flexible Substring Package
+
+##This is indeed a need for the developer community to experience such simple, easy-to-use and extremely user friendly Python package which does your usual job of cutting out a piece of substring from the parent string without writing certain lines of code. Nobody wants to spend their valuable time in writing such simple code when they can work on the bigger and other important contributions to the developers' community. This package has the following two methods associated with it:
+
+###1) substringByChar()
+It has four parameters namely, initialString, startChar, endChar, and stepSize(default=1). It would spit out the substring on the basis of the characters entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end characters as "d" and "l" respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+###2) substringByInd()
+It has four parameters namely, initialString, startInd, endInd, and stepSize(default=1). It would spit out the substring on the basis of the indices entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end indices as 3 and 11 respectively because "d" and "l" represent the indices 3 and 11 respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+####This package is "Multi-Operational" because it not only gets you the substring of your choice with such ease but also allows you to play around with the step sizes that you want. For example, consider the same string "abcdefghijklmnopqrstuvwxyz", and you can pull out "aceg" by entering the startChar, endChar, stepSize as "a", "g" and 2 respectively.
+
+####With such ease of use, this package efficiently handles all the exceptions caused and lets the user know about them which makes the user experience very rich.
+
+
+
+
+%package help
+Summary: Development documents and examples for substring
+Provides: python3-substring-doc
+%description help
+#SUBSTRING Version 0.2
+
+##Multi-Operational and Flexible Substring Package
+
+##This is indeed a need for the developer community to experience such simple, easy-to-use and extremely user friendly Python package which does your usual job of cutting out a piece of substring from the parent string without writing certain lines of code. Nobody wants to spend their valuable time in writing such simple code when they can work on the bigger and other important contributions to the developers' community. This package has the following two methods associated with it:
+
+###1) substringByChar()
+It has four parameters namely, initialString, startChar, endChar, and stepSize(default=1). It would spit out the substring on the basis of the characters entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end characters as "d" and "l" respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+###2) substringByInd()
+It has four parameters namely, initialString, startInd, endInd, and stepSize(default=1). It would spit out the substring on the basis of the indices entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end indices as 3 and 11 respectively because "d" and "l" represent the indices 3 and 11 respectively. It has also the feature of step size where you can change and get your substrings accordingly.
+
+####This package is "Multi-Operational" because it not only gets you the substring of your choice with such ease but also allows you to play around with the step sizes that you want. For example, consider the same string "abcdefghijklmnopqrstuvwxyz", and you can pull out "aceg" by entering the startChar, endChar, stepSize as "a", "g" and 2 respectively.
+
+####With such ease of use, this package efficiently handles all the exceptions caused and lets the user know about them which makes the user experience very rich.
+
+
+
+
+%prep
+%autosetup -n substring-0.2
+
+%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-substring -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2-1
+- Package Spec generated