diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:49:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:49:35 +0000 |
commit | ceb3202447c480e9125426e9a52fbef1b6c811bd (patch) | |
tree | 1a485f98e3b21596b5969c6994718662ad9ad4d8 | |
parent | 891bd850c20597433e16e9c61bffc803019704f8 (diff) |
automatic import of python-steamid-converter
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-steamid-converter.spec | 108 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 110 insertions, 0 deletions
@@ -0,0 +1 @@ +/steamid-converter-1.0.1.tar.gz diff --git a/python-steamid-converter.spec b/python-steamid-converter.spec new file mode 100644 index 0000000..f768bf1 --- /dev/null +++ b/python-steamid-converter.spec @@ -0,0 +1,108 @@ +%global _empty_manifest_terminate_build 0 +Name: python-steamid-converter +Version: 1.0.1 +Release: 1 +Summary: Package for easy conversion between steamID formats +License: MIT License +URL: https://github.com/AlexHodgson/steamid-converter +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/a4/7658d5065eeab7884d26f41c4bc06804c48d82f260baba955bd6d8718a39/steamid-converter-1.0.1.tar.gz +BuildArch: noarch + + +%description +Format| STEAM_0:<zero-width space>X:XXXXXXXX | \[U:1:XXXXXXXX\] | 17 digit int +This package provides conversions between these formats.\ +For more in-depth information on steamIDs see the [Valve Software Wiki Page](https://developer.valvesoftware.com/wiki/SteamID) +## Functionality +All functions currently avaliable are located in ```steamid_converter.Converter```\ +Each function can take any of the steamID formats (Including the function's target format) as a string or integer. Then will return that ID converted to the function's target format. +### Avaliable Functions +```python +Converter.to_steamID(steamID) +""" +Convert to steamID +A steamID is unique to each steam account, +Formatted with digits as x "STEAM_0:x:xxxxxxxx" + +%package -n python3-steamid-converter +Summary: Package for easy conversion between steamID formats +Provides: python-steamid-converter +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-steamid-converter +Format| STEAM_0:<zero-width space>X:XXXXXXXX | \[U:1:XXXXXXXX\] | 17 digit int +This package provides conversions between these formats.\ +For more in-depth information on steamIDs see the [Valve Software Wiki Page](https://developer.valvesoftware.com/wiki/SteamID) +## Functionality +All functions currently avaliable are located in ```steamid_converter.Converter```\ +Each function can take any of the steamID formats (Including the function's target format) as a string or integer. Then will return that ID converted to the function's target format. +### Avaliable Functions +```python +Converter.to_steamID(steamID) +""" +Convert to steamID +A steamID is unique to each steam account, +Formatted with digits as x "STEAM_0:x:xxxxxxxx" + +%package help +Summary: Development documents and examples for steamid-converter +Provides: python3-steamid-converter-doc +%description help +Format| STEAM_0:<zero-width space>X:XXXXXXXX | \[U:1:XXXXXXXX\] | 17 digit int +This package provides conversions between these formats.\ +For more in-depth information on steamIDs see the [Valve Software Wiki Page](https://developer.valvesoftware.com/wiki/SteamID) +## Functionality +All functions currently avaliable are located in ```steamid_converter.Converter```\ +Each function can take any of the steamID formats (Including the function's target format) as a string or integer. Then will return that ID converted to the function's target format. +### Avaliable Functions +```python +Converter.to_steamID(steamID) +""" +Convert to steamID +A steamID is unique to each steam account, +Formatted with digits as x "STEAM_0:x:xxxxxxxx" + +%prep +%autosetup -n steamid-converter-1.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-steamid-converter -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +e83cf4f47c9fa52eb9baded8266aebc3 steamid-converter-1.0.1.tar.gz |