diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:33:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:33:06 +0000 |
commit | 66afd430551cc48c79cb5f219622aaf6998cd25d (patch) | |
tree | c7d4c0bb50479180763c8ed9c99655d54eae5721 | |
parent | ad87ef6035bbbe41fb2d99a4c1cbcbf4b7ccc737 (diff) |
automatic import of python-prettyconf
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-prettyconf.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/prettyconf-2.2.1.tar.gz diff --git a/python-prettyconf.spec b/python-prettyconf.spec new file mode 100644 index 0000000..7cbec37 --- /dev/null +++ b/python-prettyconf.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-prettyconf +Version: 2.2.1 +Release: 1 +Summary: Separation of settings from code. +License: MIT +URL: http://github.com/osantana/prettyconf +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/77/d6/8bb9a37b0afc12fe0d382c43f150f35d578f5b0e5bfd25e49d622d6d9f66/prettyconf-2.2.1.tar.gz +BuildArch: noarch + + +%description +|Build Status| |Coverage Status| |Docs| |Codacy| |Landscape| +Pretty Conf is a Python library created to make easy the separation of +configuration and code following the recomendations of `12 Factor`_'s topic +about configs. +It is strongly inspired in `python-decouple`_ and both provides a similar +API. + +%package -n python3-prettyconf +Summary: Separation of settings from code. +Provides: python-prettyconf +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-prettyconf +|Build Status| |Coverage Status| |Docs| |Codacy| |Landscape| +Pretty Conf is a Python library created to make easy the separation of +configuration and code following the recomendations of `12 Factor`_'s topic +about configs. +It is strongly inspired in `python-decouple`_ and both provides a similar +API. + +%package help +Summary: Development documents and examples for prettyconf +Provides: python3-prettyconf-doc +%description help +|Build Status| |Coverage Status| |Docs| |Codacy| |Landscape| +Pretty Conf is a Python library created to make easy the separation of +configuration and code following the recomendations of `12 Factor`_'s topic +about configs. +It is strongly inspired in `python-decouple`_ and both provides a similar +API. + +%prep +%autosetup -n prettyconf-2.2.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-prettyconf -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +bdf258fa3b9417628c3bd06819bb5e6c prettyconf-2.2.1.tar.gz |