summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:09:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:09:10 +0000
commitc7a0193deb9842bb3000ffe3e0bfdff88267b29a (patch)
treed3fcec9a119aaad8f1a2fe6bfedec8ad1bd8a16e
parentb8d36223997e77318d625dc438716d7f34413089 (diff)
automatic import of python-freesms
-rw-r--r--.gitignore1
-rw-r--r--python-freesms.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a9e26c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/freesms-0.2.0.tar.gz
diff --git a/python-freesms.spec b/python-freesms.spec
new file mode 100644
index 0000000..a9c56a1
--- /dev/null
+++ b/python-freesms.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-freesms
+Version: 0.2.0
+Release: 1
+Summary: Send SMS with Free Mobile
+License: MIT
+URL: https://github.com/bfontaine/freesms
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/66/7eab9c01148d0120b795946f9c003c5a9421768b22946f59cf2beb821830/freesms-0.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+ [sudo] pip install freesms
+Starting from v0.2.0 the library is only tested on Python 3.x, but it should work on 2.7.
+
+%package -n python3-freesms
+Summary: Send SMS with Free Mobile
+Provides: python-freesms
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-freesms
+ [sudo] pip install freesms
+Starting from v0.2.0 the library is only tested on Python 3.x, but it should work on 2.7.
+
+%package help
+Summary: Development documents and examples for freesms
+Provides: python3-freesms-doc
+%description help
+ [sudo] pip install freesms
+Starting from v0.2.0 the library is only tested on Python 3.x, but it should work on 2.7.
+
+%prep
+%autosetup -n freesms-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-freesms -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7497b5c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ceadf6a41c2c07002dc29019092c320b freesms-0.2.0.tar.gz