From 66afd430551cc48c79cb5f219622aaf6998cd25d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 20:33:06 +0000 Subject: automatic import of python-prettyconf --- .gitignore | 1 + python-prettyconf.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 python-prettyconf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..bf025a5 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 2.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..6d5f459 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +bdf258fa3b9417628c3bd06819bb5e6c prettyconf-2.2.1.tar.gz -- cgit v1.2.3