%global _empty_manifest_terminate_build 0 Name: python-dotenv Version: 1.0.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://github.com/theskumar/python-dotenv/archive/v%{version}/dotenv-%{version}.tar.gz BuildArch: noarch %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 = %{version}-%{release} Requires: python3-click 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 %{name}-%{version} -p1 %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 * Tue Apr 04 2023 yaoxin - 1.0.0-1 - Update to 1.0.0 * Tue Feb 21 2023 jiangxinyu - 0.21.1-1 - Update package to version 0.21.1 * Tue Dec 6 2022 lijian - 0.21.0-1 - Upgrade version to 0.21.0 * Sat Oct 09 2021 yinzehao - 0.19.0-1 - Package init.