This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsatellite-sanity.spec
71 lines (53 loc) · 1.72 KB
/
satellite-sanity.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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: satellite-sanity
Version: REPLACE_ME_WITH_VERSION
Release: 2%{?dist}
Summary: Red Hat Satellite health check
License: GPLv3
Group: Applications/Internet
URL: https://github.com/SatelliteQE/satellite-sanity
Source0: https://github.com/SatelliteQE/satellite-sanity/archive/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python
Requires: python-dateutil
%if 0%{?rhel} <= 6
Requires: python-argparse
%endif
%description
Red Hat Satellite health check tool
%prep
%setup -qc
%build
pushd %{name}-%{version}
%{__python} setup.py build
popd
%install
rm -rf %{buildroot}
pushd %{name}-%{version}
%{__python} setup.py install --skip-build --root %{buildroot}
rm -f %{buildroot}%{python_sitelib}/satellite_sanity/rules/example_fails.*
mkdir -p %{buildroot}%{_bindir}/
cp -p satellite-sanity %{buildroot}%{_bindir}/
popd
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/satellite_sanity
%if 0%{?fedora} || 0%{?rhel} >= 6
%{python_sitelib}/*egg-info
%endif
%{_bindir}/satellite-sanity
%changelog
* Fri Mar 18 2016 Jan Hutar <[email protected]> 0.1.3-2
- Some changes for RHEL5
* Fri Mar 18 2016 Jan Hutar <[email protected]> 0.1.3-1
- Fixes, enhancements, new rules and should build on RHEL6 as well
* Wed Dec 09 2015 Jan Hutar <[email protected]> 0.1.1-1
- Let's try to build in COPR
* Wed Dec 09 2015 Jan Hutar <[email protected]> 0.1-1
- Init