-
Notifications
You must be signed in to change notification settings - Fork 0
/
myproject.spec
36 lines (29 loc) · 1000 Bytes
/
myproject.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
%define _topdir /home/harry/rpmbuild
%define name myproject
%define release 1
%define version 1
%define buildroot %{_topdir}/%{name}-%{version}-root
BuildRoot: %{buildroot}
Summary: This is my project
License: none
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}
Prefix: /var
Group: Applications/System
Requires: tty,shellinabox,ansible,httpd,python2,
pip,libvirt,qemu-kvm,virt-manager
%description
This is my cloud.
%install
mkdir -p %{buildroot}/var/www/html
mkdir -p %{buildroot}/var/www/cgi-bin
cp -rf %{_topdir}/SOURCES/myproject/cgi-bin/* %buildroot/var/www/cgi-bin/
cp -rf %{_topdir}/SOURCES/myproject/html/* %buildroot/var/www/html/
%files
%defattr(0777, root,root)
/var/www/cgi-bin/*
/var/www/html/*
%clean
rm -rf $RPM_BUILD_ROOT