diff --git a/python-dotenv-0.19.0.tar.gz b/python-dotenv-0.19.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d917825fe5f3212677daf7af3c3f5dabf1c1a7cb Binary files /dev/null and b/python-dotenv-0.19.0.tar.gz differ diff --git a/python-dotenv.spec b/python-dotenv.spec new file mode 100644 index 0000000000000000000000000000000000000000..9c56811ef7325a55883c8e78a2bfe61b387d882b --- /dev/null +++ b/python-dotenv.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dotenv +Version: 0.19.0 +Release: 1 +Summary: Read key-value pairs from a .env file and set them as environment variables +License: BSD-3-Clause +URL: https://github.com/theskumar/python-dotenv +Source0: https://files.pythonhosted.org/packages/59/39/20eb771fc2113fb67638d4f2e1905c51b0c75862d09018a393470234a51c/python-dotenv-0.19.0.tar.gz +BuildArch: noarch + +Requires: python3-click + +%description +Python-dotenv reads key-value pairs from a .env file and can set them as environment variables. It helps in the development of applications following the 12-factor principles. + +%package -n python3-dotenv +Summary: Read key-value pairs from a .env file and set them as environment variables +Provides: python-dotenv +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-dotenv +Python-dotenv reads key-value pairs from a .env file and can set them as environment variables. It helps in the development of applications following the 12-factor principles. + +%package help +Summary: Development documents and examples for python-dotenv +Provides: python3-dotenv-doc + +%description help +Development documents and examples for python-dotenv. + +%prep +%autosetup -n python-dotenv-0.19.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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-dotenv -f filelist.lst +%license LICENSE +%doc README.md +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%license LICENSE +%{_docdir}/* + +%changelog +* Sat Oct 09 2021 yinzehao - 0.19.0-1 +- Package init.