-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-stevedore.spec
More file actions
142 lines (112 loc) · 3.58 KB
/
python-stevedore.spec
File metadata and controls
142 lines (112 loc) · 3.58 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
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
%if 0%{?fedora}
%global with_python3 1
%endif
Name: python-stevedore
Version: XXX
Release: XXX
Summary: Manage dynamic plugins for Python applications
Group: Development/Languages
License: ASL 2.0
URL: https://github.com/dreamhost/stevedore
Source0: http://pypi.python.org/packages/source/s/stevedore/stevedore-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python-mock
BuildRequires: python-six
BuildRequires: python-testrepository
#BuildRequires: python-discover
#BuildRequires: python-oslotest
Requires: python-setuptools
Requires: python-six
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-mock
BuildRequires: python3-six
#BuildRequires: python3-testrepository
#BuildRequires: python3-discover
#BuildRequires: python3-oslotest
%endif
%description
Manage dynamic plugins for Python applications
%if 0%{?with_python3}
%package -n python3-stevedore
Summary: Manage dynamic plugins for Python applications
Group: Development/Libraries
Requires: python3-setuptools
Requires: python-six
%description -n python3-stevedore
Manage dynamic plugins for Python applications
%endif
%prep
%setup -q -n stevedore-%{upstream_version}
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
%{__python} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif
%install
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
popd
%endif
%{__python} setup.py install --skip-build --root %{buildroot}
%check
#TODO: reenable when commented test requirements above are available
#
#PYTHONPATH=. nosetests
#
#%if 0%{?with_python3}
#pushd %{py3dir}
#PYTHONPATH=. nosetests-%{python3_version}
#popd
#%endif
%files
%doc README.rst LICENSE
%{python_sitelib}/stevedore
%{python_sitelib}/stevedore-*.egg-info
%if 0%{?with_python3}
%files -n python3-stevedore
%doc README.rst LICENSE
%{python3_sitelib}/stevedore
%{python3_sitelib}/stevedore-*.egg-info
%endif
%changelog
* Wed Oct 29 2014 Pádraig Brady <pbrady@redhat.com> - 1.1.0-1
- Latest upstream
* Mon Sep 22 2014 Alan Pevec <alan.pevec@redhat.com> 1.0.0-1
- Update to upstream 1.0.0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Thu Apr 03 2014 Ralph Bean <rbean@redhat.com> - 0.15-1
- Latest upstream
- Package python3-stevedore subpackage
- Add Requires on python-setuptools.
- Added a %%check section.
* Mon Jan 27 2014 Pádraig Brady <pbrady@redhat.com> - 0.14-1
- Latest upstream
* Mon Nov 11 2013 Matthias Runge <mrunge@redhat.com> - 0.12-1
- update to version 0.12
- fix FTBFS (rhbz#993170)
* Thu Sep 12 2013 Pádraig Brady <pbrady@redhat.com> - 0.11-1
- update to version 0.11
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 7 2013 Pádraig Brady <P@draigBrady.com> - 0.8-1
- Update to version 0.8
* Mon Dec 10 2012 Dan Prince <dprince@redhat.com> - 0.7.2-1
- Initial package.