summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-fpyutils.spec279
-rw-r--r--sources1
3 files changed, 281 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4db938e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fpyutils-3.0.1.tar.gz
diff --git a/python-fpyutils.spec b/python-fpyutils.spec
new file mode 100644
index 0000000..392c538
--- /dev/null
+++ b/python-fpyutils.spec
@@ -0,0 +1,279 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fpyutils
+Version: 3.0.1
+Release: 1
+Summary: A collection of useful non-standard Python functions which aim to be simple to use, highly readable but not efficient.
+License: GPLv3+
+URL: https://blog.franco.net.eu.org/software/#fpyutils
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/d4/1d830b61211f22942bd74f32670a74783dc84de8321a38d033fc73f04c29/fpyutils-3.0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# fpyutils
+
+[![PyPI fpyutils version](https://img.shields.io/pypi/v/fpyutils.svg)](https://pypi.org/project/fpyutils/)
+[![Debian 12 package](https://repology.org/badge/version-for-repo/debian_12/fpyutils.svg)](https://repology.org/project/fpyutils/versions)
+[![nixpkgs unstable package](https://repology.org/badge/version-for-repo/nix_unstable/python:fpyutils.svg)](https://repology.org/project/python:fpyutils/versions)
+[![Anaconda.org](https://anaconda.org/conda-forge/fpyutils/badges/version.svg)](https://anaconda.org/conda-forge/fpyutils)
+[![Downloads](https://pepy.tech/badge/fpyutils)](https://pepy.tech/project/fpyutils)
+[![Dependent repos (via libraries.io)](https://img.shields.io/librariesio/dependent-repos/pypi/fpyutils.svg)](https://libraries.io/pypi/fpyutils/dependents)
+[![Buy me a coffee](assets/buy_me_a_coffee.svg)](https://buymeacoff.ee/frnmst)
+
+A collection of useful non-standard Python functions which aim to be
+simple to use, highly readable but not efficient.
+
+<!--TOC-->
+
+- [fpyutils](#fpyutils)
+ - [Documentation](#documentation)
+ - [API examples](#api-examples)
+ - [License](#license)
+ - [Changelog and trusted source](#changelog-and-trusted-source)
+ - [Crypto donations](#crypto-donations)
+
+<!--TOC-->
+
+## Documentation
+
+<https://docs.franco.net.eu.org/fpyutils/>
+
+## API examples
+
+```python
+>>> import fpyutils
+>>> f = open('foo.txt')
+>>> f.read()
+"This is\nfoo.\nfoo\nThis is\nnot\nbar.\nAnd it's\n foo\n\nBye!\n"
+>>> fpyutils.filelines.get_line_matches('foo.txt','foo',5)
+{1: 3, 2: 8}
+```
+
+## License
+
+Copyright (C) 2017-2023 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
+
+fpyutils is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+fpyutils is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along
+with fpyutils. If not, see <http://www.gnu.org/licenses/>.
+
+## Changelog and trusted source
+
+You can check the authenticity of new releases using my public key.
+
+Changelogs, instructions, sources and keys can be found at
+[blog.franco.net.eu.org/software/#fpyutils](https://blog.franco.net.eu.org/software/#fpyutils).
+
+## Crypto donations
+
+- Bitcoin: `bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu`
+- Monero: `84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY`
+- Dogecoin: `DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP`
+- Vertcoin: `vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0`
+
+
+%package -n python3-fpyutils
+Summary: A collection of useful non-standard Python functions which aim to be simple to use, highly readable but not efficient.
+Provides: python-fpyutils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fpyutils
+# fpyutils
+
+[![PyPI fpyutils version](https://img.shields.io/pypi/v/fpyutils.svg)](https://pypi.org/project/fpyutils/)
+[![Debian 12 package](https://repology.org/badge/version-for-repo/debian_12/fpyutils.svg)](https://repology.org/project/fpyutils/versions)
+[![nixpkgs unstable package](https://repology.org/badge/version-for-repo/nix_unstable/python:fpyutils.svg)](https://repology.org/project/python:fpyutils/versions)
+[![Anaconda.org](https://anaconda.org/conda-forge/fpyutils/badges/version.svg)](https://anaconda.org/conda-forge/fpyutils)
+[![Downloads](https://pepy.tech/badge/fpyutils)](https://pepy.tech/project/fpyutils)
+[![Dependent repos (via libraries.io)](https://img.shields.io/librariesio/dependent-repos/pypi/fpyutils.svg)](https://libraries.io/pypi/fpyutils/dependents)
+[![Buy me a coffee](assets/buy_me_a_coffee.svg)](https://buymeacoff.ee/frnmst)
+
+A collection of useful non-standard Python functions which aim to be
+simple to use, highly readable but not efficient.
+
+<!--TOC-->
+
+- [fpyutils](#fpyutils)
+ - [Documentation](#documentation)
+ - [API examples](#api-examples)
+ - [License](#license)
+ - [Changelog and trusted source](#changelog-and-trusted-source)
+ - [Crypto donations](#crypto-donations)
+
+<!--TOC-->
+
+## Documentation
+
+<https://docs.franco.net.eu.org/fpyutils/>
+
+## API examples
+
+```python
+>>> import fpyutils
+>>> f = open('foo.txt')
+>>> f.read()
+"This is\nfoo.\nfoo\nThis is\nnot\nbar.\nAnd it's\n foo\n\nBye!\n"
+>>> fpyutils.filelines.get_line_matches('foo.txt','foo',5)
+{1: 3, 2: 8}
+```
+
+## License
+
+Copyright (C) 2017-2023 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
+
+fpyutils is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+fpyutils is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along
+with fpyutils. If not, see <http://www.gnu.org/licenses/>.
+
+## Changelog and trusted source
+
+You can check the authenticity of new releases using my public key.
+
+Changelogs, instructions, sources and keys can be found at
+[blog.franco.net.eu.org/software/#fpyutils](https://blog.franco.net.eu.org/software/#fpyutils).
+
+## Crypto donations
+
+- Bitcoin: `bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu`
+- Monero: `84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY`
+- Dogecoin: `DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP`
+- Vertcoin: `vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0`
+
+
+%package help
+Summary: Development documents and examples for fpyutils
+Provides: python3-fpyutils-doc
+%description help
+# fpyutils
+
+[![PyPI fpyutils version](https://img.shields.io/pypi/v/fpyutils.svg)](https://pypi.org/project/fpyutils/)
+[![Debian 12 package](https://repology.org/badge/version-for-repo/debian_12/fpyutils.svg)](https://repology.org/project/fpyutils/versions)
+[![nixpkgs unstable package](https://repology.org/badge/version-for-repo/nix_unstable/python:fpyutils.svg)](https://repology.org/project/python:fpyutils/versions)
+[![Anaconda.org](https://anaconda.org/conda-forge/fpyutils/badges/version.svg)](https://anaconda.org/conda-forge/fpyutils)
+[![Downloads](https://pepy.tech/badge/fpyutils)](https://pepy.tech/project/fpyutils)
+[![Dependent repos (via libraries.io)](https://img.shields.io/librariesio/dependent-repos/pypi/fpyutils.svg)](https://libraries.io/pypi/fpyutils/dependents)
+[![Buy me a coffee](assets/buy_me_a_coffee.svg)](https://buymeacoff.ee/frnmst)
+
+A collection of useful non-standard Python functions which aim to be
+simple to use, highly readable but not efficient.
+
+<!--TOC-->
+
+- [fpyutils](#fpyutils)
+ - [Documentation](#documentation)
+ - [API examples](#api-examples)
+ - [License](#license)
+ - [Changelog and trusted source](#changelog-and-trusted-source)
+ - [Crypto donations](#crypto-donations)
+
+<!--TOC-->
+
+## Documentation
+
+<https://docs.franco.net.eu.org/fpyutils/>
+
+## API examples
+
+```python
+>>> import fpyutils
+>>> f = open('foo.txt')
+>>> f.read()
+"This is\nfoo.\nfoo\nThis is\nnot\nbar.\nAnd it's\n foo\n\nBye!\n"
+>>> fpyutils.filelines.get_line_matches('foo.txt','foo',5)
+{1: 3, 2: 8}
+```
+
+## License
+
+Copyright (C) 2017-2023 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
+
+fpyutils is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation, either version 3 of the License, or (at your
+option) any later version.
+
+fpyutils is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+
+You should have received a copy of the GNU General Public License along
+with fpyutils. If not, see <http://www.gnu.org/licenses/>.
+
+## Changelog and trusted source
+
+You can check the authenticity of new releases using my public key.
+
+Changelogs, instructions, sources and keys can be found at
+[blog.franco.net.eu.org/software/#fpyutils](https://blog.franco.net.eu.org/software/#fpyutils).
+
+## Crypto donations
+
+- Bitcoin: `bc1qnkflazapw3hjupawj0lm39dh9xt88s7zal5mwu`
+- Monero: `84KHWDTd9hbPyGwikk33Qp5GW7o7zRwPb8kJ6u93zs4sNMpDSnM5ZTWVnUp2cudRYNT6rNqctnMQ9NbUewbj7MzCBUcrQEY`
+- Dogecoin: `DMB5h2GhHiTNW7EcmDnqkYpKs6Da2wK3zP`
+- Vertcoin: `vtc1qd8n3jvkd2vwrr6cpejkd9wavp4ld6xfu9hkhh0`
+
+
+%prep
+%autosetup -n fpyutils-3.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-fpyutils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2ca5bb5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4ccb037b66b72ee48a50b0ec54aea60e fpyutils-3.0.1.tar.gz