forked from perfguru87/perftracker-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperftracker-lib.spec
54 lines (44 loc) · 1.79 KB
/
perftracker-lib.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
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%define _ver 0.0.44
Name: perftracker-lib
Version: %{_ver}
Release: 0
Summary: The perftracker libraries set
BuildArch: noarch
Group: Development/Libraries
License: MIT
BuildRequires: python
Requires: python git gcc python-devel python-setuptools python-dateutil
Requires: xorg-x11-server-Xvfb chromedriver google-chrome-stable libjpeg-devel zlib-devel
%description
The perftracker-lib is a set of performance and reporting python libraries (the
perftracker client, the UI crawler library and other helpers)
%install
mkdir $RPM_BUILD_ROOT/bin
touch $RPM_BUILD_ROOT/bin/pt-suite-uploader.py
touch $RPM_BUILD_ROOT/bin/pt-artifact-ctl.py
%post
echo -e "\n====== Installing the perftracker-lib v%{_ver} from sources =======\n"
echo "PRE easy_install git+https://github.com/perfguru87/perftracker-lib.git@v%{_ver}"
easy_install git+https://github.com/perfguru87/perftracker-lib.git@v%{_ver} || exit -1
echo -e "\n====== The perftracker-lib installation done ======================\n"
%postun
echo -e "\n====== Uninstalling the perftracker-lib v%{_ver} =======\n"
echo "rm -rf %{python_sitelib}/perftrackerlib-%{_ver}*.egg"
rm -rf "%{python_sitelib}/"perftrackerlib-%{_ver}*.egg
echo -e "\n====== The perftracker-lib uninstallation done =========\n"
%files
%ghost
/bin/pt-suite-uploader.py
/bin/pt-artifact-ctl.py
%changelog
* Tue Oct 2 2018 <[email protected]>
- added pt-artifact-ctl.py - a tool to manage artifacts
* Thu Aug 16 2018 <[email protected]>
- added libjpeg-devel, zlib-devel needed for Pillow installation
* Tue Aug 7 2018 <[email protected]>
- update to 0.0.20
* Tue Aug 7 2018 <[email protected]>
- update to 0.0.19
* Mon Jul 30 2018 <[email protected]>
- initial version