-
Notifications
You must be signed in to change notification settings - Fork 6
/
ovfconf.noarch.spec
48 lines (38 loc) · 1.12 KB
/
ovfconf.noarch.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
Summary: Tool to configure Linux VM with OVF Environment data
Name: ovfconf
Version: 1.0.0
Release: 1
License: none
Group: Applications/System
Vendor: Alexey Vekshin
Packager: Alexey Vekshin <alex@maxidom.ru>
Provides: ovfconf
Requires: perl >= 5.0, bash, open-vm-tools
Source: %{name}.tar.gz
BuildRoot: %{_tmppath}/%{name}-build
URL: https://github.com/veksh/ovfconf
%description
%prep
%setup -n %{name}
%build
%install
# create directories where the files will be located
mkdir -p $RPM_BUILD_ROOT/usr/local/sbin
mkdir -p $RPM_BUILD_ROOT/etc/init.d
# put the files in to the relevant directories.
install -m 755 ovfconf $RPM_BUILD_ROOT/usr/local/sbin
install -m 755 boot.ovfconf $RPM_BUILD_ROOT/etc/init.d
%pre
%post
echo "do not forget to enable startup (chkconfig boot.ovfconf on)"
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{_tmppath}/%{name}
rm -rf %{_topdir}/BUILD/%{name}
%files
%defattr(-,root,root)
/usr/local/sbin/ovfconf
/etc/init.d/boot.ovfconf
%changelog
* Wed Sep 30 2015 alex
- first release of RPM spec