summaryrefslogtreecommitdiff
path: root/python-silpa-common.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 11:15:59 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 11:15:59 +0000
commit5b52804c4a25ec24d96a74a4bd8c4d9cabbe6055 (patch)
tree5c9787770ab0699a93015f4f8c0ceff3b9c59b4b /python-silpa-common.spec
parentae5b02024a2130757854ca49097a620524b03808 (diff)
automatic import of python-silpa-common
Diffstat (limited to 'python-silpa-common.spec')
-rw-r--r--python-silpa-common.spec132
1 files changed, 132 insertions, 0 deletions
diff --git a/python-silpa-common.spec b/python-silpa-common.spec
new file mode 100644
index 0000000..90b8e46
--- /dev/null
+++ b/python-silpa-common.spec
@@ -0,0 +1,132 @@
+%global _empty_manifest_terminate_build 0
+Name: python-silpa_common
+Version: 0.3
+Release: 1
+Summary: Common functions for SILPA and related modules
+License: LGPL-2.1+
+URL: https://silpa.org.in
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8d/55/452f5103cb7071d188a818d9e2f12c19c4c8a12124a28aaa212eb6716a4d/silpa_common-0.3.tar.gz
+BuildArch: noarch
+
+
+%description
+Common functions for SILPA
+##########################
+
+.. image::
+ https://travis-ci.org/Project-SILPA/silpa-common.svg
+ :target: https://travis-ci.org/Project-SILPA/silpa-common
+
+
+.. image::
+ https://coveralls.io/repos/Project-SILPA/silpa-common/badge.png?branch=master
+ :target: https://coveralls.io/r/Project-SILPA/silpa-common?branch=master
+
+
+This package provides common functions needed by SILPA web application
+itself and modules which are hosted by SILPA. There are 2 submodules
+provided by this package
+
+* charmap - provides character mapping for Indic and other languages
+* langdetect - module provides language detecting capabilities
+* Also provides a decorator servicemethod, this should be used by
+ modules which want to expose their methods via JSONRPC modules
+
+%package -n python3-silpa_common
+Summary: Common functions for SILPA and related modules
+Provides: python-silpa_common
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-silpa_common
+Common functions for SILPA
+##########################
+
+.. image::
+ https://travis-ci.org/Project-SILPA/silpa-common.svg
+ :target: https://travis-ci.org/Project-SILPA/silpa-common
+
+
+.. image::
+ https://coveralls.io/repos/Project-SILPA/silpa-common/badge.png?branch=master
+ :target: https://coveralls.io/r/Project-SILPA/silpa-common?branch=master
+
+
+This package provides common functions needed by SILPA web application
+itself and modules which are hosted by SILPA. There are 2 submodules
+provided by this package
+
+* charmap - provides character mapping for Indic and other languages
+* langdetect - module provides language detecting capabilities
+* Also provides a decorator servicemethod, this should be used by
+ modules which want to expose their methods via JSONRPC modules
+
+%package help
+Summary: Development documents and examples for silpa_common
+Provides: python3-silpa_common-doc
+%description help
+Common functions for SILPA
+##########################
+
+.. image::
+ https://travis-ci.org/Project-SILPA/silpa-common.svg
+ :target: https://travis-ci.org/Project-SILPA/silpa-common
+
+
+.. image::
+ https://coveralls.io/repos/Project-SILPA/silpa-common/badge.png?branch=master
+ :target: https://coveralls.io/r/Project-SILPA/silpa-common?branch=master
+
+
+This package provides common functions needed by SILPA web application
+itself and modules which are hosted by SILPA. There are 2 submodules
+provided by this package
+
+* charmap - provides character mapping for Indic and other languages
+* langdetect - module provides language detecting capabilities
+* Also provides a decorator servicemethod, this should be used by
+ modules which want to expose their methods via JSONRPC modules
+
+%prep
+%autosetup -n silpa_common-0.3
+
+%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-silpa_common -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3-1
+- Package Spec generated