-
Notifications
You must be signed in to change notification settings - Fork 6
/
validate.spec
59 lines (41 loc) · 1.5 KB
/
validate.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
Name: validate
Version: 6.1
Release: 1
Summary: Validates a cloud providers image of Red Hat Enterprise Linux
Group: Development/Libraries
License: GPL
URL: http://github.com/weshayutin/valid
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}
BuildArch: noarch
# BuildRequires:
# Requires:
%description
A shell script that will run tests to validate that the image of Red Hat Enterprise Linux meets or exceeds the minimum requirements as defined by Red Hat.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/valid
cp $RPM_BUILD_DIR/%{name}-%{version}/image_validation.sh $RPM_BUILD_ROOT/usr/local/valid
cp $RPM_BUILD_DIR/%{name}-%{version}/packages $RPM_BUILD_ROOT/usr/local/valid
cp $RPM_BUILD_DIR/%{name}-%{version}/README $RPM_BUILD_ROOT/usr/local/valid
cp $RPM_BUILD_DIR/%{name}-%{version}/rpmVerifyTable $RPM_BUILD_ROOT/usr/local/valid
cp $RPM_BUILD_DIR/%{name}-%{version}/testlib.sh $RPM_BUILD_ROOT/usr/local/valid
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%config /usr/local/valid/image_validation.sh
%config /usr/local/valid/packages
%config /usr/local/valid/README
%config /usr/local/valid/rpmVerifyTable
%config /usr/local/valid/testlib.sh
%changelog
* Fri Jul 30 2010 wes hayutin <[email protected]> 6.1-1
- changed bugzilla summary ([email protected])
- fixed a few bugs ([email protected])
- generalized disk and swap tests ([email protected])
* Tue Jul 13 2010 Wes Hayutin 5.1-1
- initial build ([email protected])