%global _empty_manifest_terminate_build 0
Name: python-PythonStrings
Version: 0.2.0
Release: 1
Summary: A library made to make string easier to use in python
License: MIT
URL: https://github.com/Sas2k/PythonStrings
Source0: https://mirrors.aliyun.com/pypi/web/packages/9a/83/4f97f995701321fa9aa81dade4cf78b5cc3dcc444ae7fe8aa9670babda9e/PythonStrings-0.2.0.tar.gz
BuildArch: noarch
%description
# PythonStrings🧵 2.0.0 [Library/Package]
A simple python library to help with strings
## Installation
You can download the file with pip
### Windows
```cmd
Users/user>pip install PythonStrings
```
### Linux/MacOS
```bash
$ pip3 install PythonStrings
#or
$ pip install PythonStrings
#or
$ python3 -m pip install PythonStrings
```
## Documentation
`revstring(:string:)` Reverces the string in the brackets and returns it
`encodestr(string)` encodes the string with utf-16 and returns it [not sure if works these are some old code that i wrote some months back
`decodestr(string)` decodes the string with utf-16 and returns it [same for this one also, I think? 🤔]
`Capatilize(string)` Capitalizes the first letter of the string and returns it
`Cap(string)` Returns the length of the string
## Authors
- [@Sas2k](https://www.github.com/Sas2k)
## Badges

%package -n python3-PythonStrings
Summary: A library made to make string easier to use in python
Provides: python-PythonStrings
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-PythonStrings
# PythonStrings🧵 2.0.0 [Library/Package]
A simple python library to help with strings
## Installation
You can download the file with pip
### Windows
```cmd
Users/user>pip install PythonStrings
```
### Linux/MacOS
```bash
$ pip3 install PythonStrings
#or
$ pip install PythonStrings
#or
$ python3 -m pip install PythonStrings
```
## Documentation
`revstring(:string:)` Reverces the string in the brackets and returns it
`encodestr(string)` encodes the string with utf-16 and returns it [not sure if works these are some old code that i wrote some months back
`decodestr(string)` decodes the string with utf-16 and returns it [same for this one also, I think? 🤔]
`Capatilize(string)` Capitalizes the first letter of the string and returns it
`Cap(string)` Returns the length of the string
## Authors
- [@Sas2k](https://www.github.com/Sas2k)
## Badges

%package help
Summary: Development documents and examples for PythonStrings
Provides: python3-PythonStrings-doc
%description help
# PythonStrings🧵 2.0.0 [Library/Package]
A simple python library to help with strings
## Installation
You can download the file with pip
### Windows
```cmd
Users/user>pip install PythonStrings
```
### Linux/MacOS
```bash
$ pip3 install PythonStrings
#or
$ pip install PythonStrings
#or
$ python3 -m pip install PythonStrings
```
## Documentation
`revstring(:string:)` Reverces the string in the brackets and returns it
`encodestr(string)` encodes the string with utf-16 and returns it [not sure if works these are some old code that i wrote some months back
`decodestr(string)` decodes the string with utf-16 and returns it [same for this one also, I think? 🤔]
`Capatilize(string)` Capitalizes the first letter of the string and returns it
`Cap(string)` Returns the length of the string
## Authors
- [@Sas2k](https://www.github.com/Sas2k)
## Badges

%prep
%autosetup -n PythonStrings-0.2.0
%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-PythonStrings -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jun 20 2023 Python_Bot - 0.2.0-1
- Package Spec generated