]> git.pld-linux.org Git - packages/python-dotenv.git/commitdiff
new (version 0.13.0) auto/th/python-dotenv-0.13.0-1
authorJan Palus <atler@pld-linux.org>
Wed, 3 Jun 2020 15:34:24 +0000 (17:34 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 3 Jun 2020 15:34:24 +0000 (17:34 +0200)
python-dotenv.spec [new file with mode: 0644]

diff --git a/python-dotenv.spec b/python-dotenv.spec
new file mode 100644 (file)
index 0000000..4a4e037
--- /dev/null
@@ -0,0 +1,88 @@
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define                module          dotenv
+%define                pypi_name       python-dotenv
+%define                egg_name        python_dotenv
+Summary:       Add .env support to your django/flask apps in development and deployments
+Name:          python-%{module}
+Version:       0.13.0
+Release:       1
+License:       BSD
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/python-dotenv/
+Source0:       https://files.pythonhosted.org/packages/source/p/python-dotenv/%{pypi_name}-%{version}.tar.gz
+# Source0-md5: 3dfde58c6a5fbd41292c4039a68f70f4
+URL:           https://pypi.org/project/python-dotenv/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-modules >= 1:2.5
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Add .env support to your django/flask apps in development and
+deployments.
+
+%package -n python3-%{module}
+Summary:       -
+Summary(pl.UTF-8):     -
+Group:         Libraries/Python
+Requires:      python3-modules >= 1:3.2
+
+%description -n python3-%{module}
+Add .env support to your django/flask apps in development and
+deployments.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md CONTRIBUTING.md README.md
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc CHANGELOG.md CONTRIBUTING.md README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
This page took 0.21802 seconds and 4 git commands to generate.