forked from theskumar/python-dotenv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-dotenv.spec
More file actions
51 lines (41 loc) · 1.07 KB
/
python-dotenv.spec
File metadata and controls
51 lines (41 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%global srcname dotenv
%global pkgname python-dotenv
%global sum Get and set values in your .env file in local and production servers using Python.
# Hack %{?dist} on CentOS build hosts
%if 0%{?rhel} == 6
%define dist .el6
%endif
%if 0%{?rhel} == 7
%define dist .el7
%endif
Summary: %{sum}
Name: python%{python3_pkgversion}-%{srcname}
Version: 0.10.3
Release: 1%{?dist}
Source0: %{pkgname}-%{version}.tar.gz
Group: System Environment/Base
License: Apache-2.0
URL: https://github.com/theskumar/python-dotenv
Vendor: theskumar
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
# Hopefully, we can use this in the future
%{?python_disable_dependency_generator}
%description
%{sum}
%prep
%autosetup -n %{pkgname}-%{version}
%build
%py3_build
%install
%py3_install
%clean
rm -rf %{buildroot}
%files
%{python3_sitelib}/python_%{srcname}*egg-info/
%{python3_sitelib}/%{srcname}/
%{_bindir}/dotenv
%changelog
- First rpm build