This repository was archived by the owner on Nov 16, 2019. It is now read-only.
forked from fedora-infra/pdc-updater
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpdc-updater.spec
104 lines (80 loc) · 3.04 KB
/
pdc-updater.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
%{!?_licensedir: %global license %%doc}
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: pdc-updater
Version: 0.2.4
Release: 1%{?dist}
Summary: Update the product definition center in response to fedmsg
Group: Development/Libraries
License: LGPLv2+
URL: http://pypi.python.org/pypi/pdc-updater
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: fedmsg
BuildRequires: python-fedmsg-commands
BuildRequires: python-fedmsg-consumers
BuildRequires: python-requests
BuildRequires: python-dogpile-cache
BuildRequires: python-fedora
BuildRequires: packagedb-cli
#BuildRequires: pdc-client
# For the tests
BuildRequires: python-nose
BuildRequires: python-vcrpy
BuildRequires: python-mock
Requires: fedmsg
Requires: python-fedmsg-commands
Requires: python-fedmsg-consumers
Requires: python-requests
Requires: python-dogpile-cache
Requires: python-fedora
Requires: packagedb-cli
Requires: pdc-client
%description
Fedmsg consumer that listens to activity on the Fedora message bus, and updates
the Product Definition Center database in response.
%prep
%setup -q -n %{name}-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{name}.egg-info
sed -i '/pdc-client/d' setup.py
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
# setuptools installs these, but we don't want them.
rm -rf %{buildroot}%{python2_sitelib}/tests/
# Disable tests for now until we get pdc-client in the buildroot...
#%check
## The tests require network, but we mock that with vcr
#PYTHONPATH=. nosetests -v
%files
%doc README.rst
%license LICENSE
%{python2_sitelib}/pdcupdater/
%{python2_sitelib}/pdc_updater-%{version}*
%{_bindir}/pdc-updater-retry
%{_bindir}/pdc-updater-audit
%{_bindir}/pdc-updater-initialize
%changelog
* Thu Feb 25 2016 Ralph Bean <[email protected]> - 0.2.4-1
- new version
* Thu Jan 28 2016 Ralph Bean <[email protected]> - 0.2.3-1
- new version
* Wed Jan 27 2016 Ralph Bean <[email protected]> - 0.2.2-1
- new version
* Tue Jan 26 2016 Ralph Bean <[email protected]> - 0.2.1-1
- new version
* Tue Jan 26 2016 Ralph Bean <[email protected]> - 0.2.0-1
- new version
* Tue Jan 19 2016 Ralph Bean <[email protected]> - 0.1.1-1
- Bugfix release.
* Tue Jan 12 2016 Ralph Bean <[email protected]> - 0.1.0-1
- Getting ready for staging deployment.
* Wed Nov 18 2015 Ralph Bean <[email protected]> - 0.0.1-1
- The dawn of time.