forked from KonishchevDmitry/python-config
-
Notifications
You must be signed in to change notification settings - Fork 2
/
python-config.spec
89 lines (60 loc) · 2.24 KB
/
python-config.spec
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%{!?__python3: %global __python3 /usr/bin/python3}
%bcond_without tests
%global project_name pcore
%global project_description %{expand:
Python configuration files themselves are actual Python files. The module
reads only values in uppercase from them, checks that they contain only basic
Python types and returns a dictionary which corresponds to the configuration
file.
Note: if you want to validate the configuration values, take a look at
https://github.com/KonishchevDmitry/object-validator project.}
Name: python-config
Version: 0.1.2
Release: 4.ROCKIT3%{?dist}
Summary: A simple module for reading Python configuration files
Group: Development/Libraries
License: GPLv3
URL: https://github.com/KonishchevDmitry/python-config
Source: http://pypi.python.org/packages/source/p/python-config/python-config-%version.tar.gz
BuildArch: noarch
BuildRequires: make
%description %{project_description}
%package -n python%{python3_pkgversion}-config
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%if 0%{with tests}
BuildRequires: python%{python3_pkgversion}-pytest >= 2.2.4
%endif # with tests
Obsoletes: python36-config
Conflicts: python36-config
%description -n python%{python3_pkgversion}-config %{project_description}
%prep
%setup -n %name-%version -q
%build
%py3_build
%check
make PYTHON=%{__python3} check
%install
%py3_install
%files -n python%{python3_pkgversion}-config
%defattr(-,root,root,-)
%{python3_sitelib}/python_config.py
%{python3_sitelib}/__pycache__/python_config.*.py*
%{python3_sitelib}/python_config-%{version}-*.egg-info
%doc ChangeLog INSTALL README
%clean
[ "%buildroot" = "/" ] || rm -rf "%buildroot"
%changelog
* Tue Jan 24 2023 Andrey Kulaev <[email protected]> - 0.1.2-4
- Add centos 8.4 support
* Sun Feb 10 2019 Mikhail Ushanov <[email protected]> - 0.1.2-3
- Enable tests for python36
* Sun Jan 13 2019 Mikhail Ushanov <[email protected]> - 0.1.2-2
- Add python3 package build for EPEL
* Mon Dec 12 2016 Dmitry Konishchev <[email protected]> - 0.1.2-1
- New version.
* Wed Jul 03 2013 Dmitry Konishchev <[email protected]> - 0.1.1-1
- New version.
* Wed Jul 03 2013 Dmitry Konishchev <[email protected]> - 0.1-1
- New package.