diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-disecon.spec | 300 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 302 insertions, 0 deletions
@@ -0,0 +1 @@ +/Disecon-0.6.10.tar.gz diff --git a/python-disecon.spec b/python-disecon.spec new file mode 100644 index 0000000..c3fcf62 --- /dev/null +++ b/python-disecon.spec @@ -0,0 +1,300 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Disecon +Version: 0.6.10 +Release: 1 +Summary: Disecon +License: MIT +URL: https://pypi.org/project/Disecon/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/76/9b475a5c1199cd9f084b97d703fd0e6a5b9ef574f6c0c63784c6a9252632/Disecon-0.6.10.tar.gz +BuildArch: noarch + + +%description +
+# Disecon
+
+ 
+
+#
+
+Disecon is a python economy library where you could make a full economy system really easy.
+
+## Installing
+
+```
+# Windows
+
+pip install Disecon
+
+# Lunix / Mac
+
+python3 -m pip install Disecon
+```
+## Useage
+
+### Starting Disecon
+
+To start Disecon you need to do the following command bellow so that the database gets made. After you do the command you can delete the line that the command is on.
+
+```python
+from Disecon import *
+
+start()
+```
+
+### Adding money
+
+If you want to add some money into someones wallet you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Discord User ID)
+
+wallet.add()
+```
+
+If you want to add some money into somones bank you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.add()
+```
+
+### Subracting money
+
+If you want to subract money from somones wallet do the following example bellow.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Disecon User ID)
+
+wallet.sub()
+```
+
+If you want to subract money from someones bank you could follow the example bellow.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.sub()
+```
+
+ + +%package -n python3-Disecon +Summary: Disecon +Provides: python-Disecon +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Disecon +
+# Disecon
+
+ 
+
+#
+
+Disecon is a python economy library where you could make a full economy system really easy.
+
+## Installing
+
+```
+# Windows
+
+pip install Disecon
+
+# Lunix / Mac
+
+python3 -m pip install Disecon
+```
+## Useage
+
+### Starting Disecon
+
+To start Disecon you need to do the following command bellow so that the database gets made. After you do the command you can delete the line that the command is on.
+
+```python
+from Disecon import *
+
+start()
+```
+
+### Adding money
+
+If you want to add some money into someones wallet you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Discord User ID)
+
+wallet.add()
+```
+
+If you want to add some money into somones bank you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.add()
+```
+
+### Subracting money
+
+If you want to subract money from somones wallet do the following example bellow.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Disecon User ID)
+
+wallet.sub()
+```
+
+If you want to subract money from someones bank you could follow the example bellow.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.sub()
+```
+
+ + +%package help +Summary: Development documents and examples for Disecon +Provides: python3-Disecon-doc +%description help +
+# Disecon
+
+ 
+
+#
+
+Disecon is a python economy library where you could make a full economy system really easy.
+
+## Installing
+
+```
+# Windows
+
+pip install Disecon
+
+# Lunix / Mac
+
+python3 -m pip install Disecon
+```
+## Useage
+
+### Starting Disecon
+
+To start Disecon you need to do the following command bellow so that the database gets made. After you do the command you can delete the line that the command is on.
+
+```python
+from Disecon import *
+
+start()
+```
+
+### Adding money
+
+If you want to add some money into someones wallet you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Discord User ID)
+
+wallet.add()
+```
+
+If you want to add some money into somones bank you can follow the example bellow to add some money.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.add()
+```
+
+### Subracting money
+
+If you want to subract money from somones wallet do the following example bellow.
+
+```python
+from Disecon import *
+
+wallet = money.wallet(amount=100, user_ID=Disecon User ID)
+
+wallet.sub()
+```
+
+If you want to subract money from someones bank you could follow the example bellow.
+
+```python
+from Disecon import *
+
+bank = money.bank(amount=100, user_ID=Discord User ID)
+
+bank.sub()
+```
+
+ + +%prep +%autosetup -n Disecon-0.6.10 + +%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-Disecon -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.10-1 +- Package Spec generated @@ -0,0 +1 @@ +47f13fca72cf8b08d7e2961ed335c107 Disecon-0.6.10.tar.gz |