2 %bcond_without python2 # CPython 2.x module
3 %bcond_without python3 # CPython 3.x module
6 %define pypi_name python-dotenv
7 %define egg_name python_dotenv
8 Summary: Add .env support to your django/flask apps in development and deployments
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/python-dotenv/
15 Source0: https://files.pythonhosted.org/packages/source/p/python-dotenv/%{pypi_name}-%{version}.tar.gz
16 # Source0-md5: 664e1fd991a2dd109c95b743bb9eecd5
17 URL: https://pypi.org/project/python-dotenv/
19 BuildRequires: python-modules >= 1:2.5
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.2
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.5
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Add .env support to your django/flask apps in development and
36 %package -n python3-%{module}
39 Group: Libraries/Python
40 Requires: python3-modules >= 1:3.2
42 %description -n python3-%{module}
43 Add .env support to your django/flask apps in development and
47 %setup -q -n %{pypi_name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc CHANGELOG.md CONTRIBUTING.md README.md
78 %{py_sitescriptdir}/%{module}
79 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
83 %files -n python3-%{module}
84 %defattr(644,root,root,755)
85 %doc CHANGELOG.md CONTRIBUTING.md README.md
86 %{py3_sitescriptdir}/%{module}
87 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info