-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-ruamel-yaml.spec
153 lines (113 loc) · 5.47 KB
/
python-ruamel-yaml.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
%global pypi_name ruamel.yaml
%global pname ruamel-yaml
%global debug_package %{nil}
Name: python-%{pname}
Version: 0.16.12
Release: 1%{?dist}
Summary: YAML 1.2 loader/dumper package for Python
License: MIT
URL: https://bitbucket.org/ruamel/yaml
# Use bitbucket sources so we can run the tests
Source0: %{pypi_source}
%description
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
It is a derivative of Kirill Simonov’s PyYAML 3.11
%package -n python%{python3_pkgversion}-%{pname}
Summary: YAML 1.2 loader/dumper package for Python
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
# For tests
BuildRequires: python%{python3_pkgversion}-pytest
# typing was added in Python 3.5
%if %{python3_pkgversion} == 34
BuildRequires: python%{python3_pkgversion}-typing
%endif
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
Requires: python%{python3_pkgversion}-ruamel-yaml-clib
Requires: python%{python3_pkgversion}-setuptools
%if %{python3_pkgversion} == 34
Requires: python%{python3_pkgversion}-typing
%endif
%description -n python%{python3_pkgversion}-%{pname}
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
It is a derivative of Kirill Simonov’s PyYAML 3.11
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
%files -n python%{python3_pkgversion}-%{pname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/ruamel
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
- Update to 0.16.12 for lifx-photons-core
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Rebuilt for Python 3.9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
- Update to 0.16.6
- Rebuilt for Python 3.8.0rc1 (#1748018)
- Added ruamel-yaml-clib as Requires
- Update to 0.16.5
- Rebuilt for Python 3.8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
- Subpackage python2-ruamel-yaml has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- Update to 0.15.41
- Add patch not to require ruamel.std.pathlib
- Rebuilt for Python 3.7
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
- Update to 0.13.14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
- The ruamel.yaml needs at least typing >= 3.5.2.2
related: #1386563
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- Update to 0.13.13
- Add patch to support pytest 2.7 in EPEL7
- Rebuild for Python 3.6
- Require python34-typing on EPEL
- Ignore python2 test failure due to old pytest on EPEL7
- Build python3 package
- Run tests
- Disabling python3 as python3-ruamel-ordereddict not available
- Fixed python2-typing runtime dependency issue
- Initial package.