-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathufo.spec
73 lines (62 loc) · 2.56 KB
/
ufo.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
72
73
#########################################################################
# Command to build rpms. #
# $ rpmbuild -bb --buildroot=/home/makerpm/build/ROOT/ ufo.spec #
#########################################################################
# Setting up the environment. #
# * sh centos_install.sh #
# * yum groupinstall "Development Tools" #
# * yum install rpmdevtools #
# * rpmdev-setuptree #
# For more information refer #
# http://fedoraproject.org/wiki/How_to_create_an_RPM_package #
#########################################################################
%define _localdir /usr/local/
%define _usrdir /usr/
%define _objdir gluster-object
%define _libdir /usr/lib/
%define _ufo_version 1.0
%define _ufo_release beta
Summary: GlusterFS Unified File and Object Storage.
Name: glusterfs
Version: %{_ufo_version}
Release: %{_ufo_release}
Group: Application/File
Vendor: Gluster Inc.
Packager: [email protected]
License: Apache
BuildArch: noarch
%description
Gluster’s Unified File and Object Storage unifies NAS and object storage
technology. This provides a system for data storage that enables users to access
the same data as an object and as a file, simplifying management and controlling
storage costs.
%package ufo
Summary: Glusterfs UFO
Group: Application/File
Requires: memcached
Requires: openssl
Requires: python
%description ufo
Gluster’s Unified File and Object Storage unifies NAS and object storage
technology. This provides a system for data storage that enables users to access
the same data as an object and as a file, simplifying management and controlling
storage costs.
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_libdir}/python2.6/site-packages
mkdir -p %{buildroot}/%{_localdir}/%{_objdir}/config
mkdir -p %{buildroot}/%{_bindir}
cp -r %{_libdir}/python2.6/site-packages/* %{buildroot}/%{_libdir}/python2.6/site-packages
cp -r %{_localdir}/%{_objdir}/config/* %{buildroot}/%{_localdir}/%{_objdir}/config
cp -rv %{_bindir}/gluster-object-* %{buildroot}/%{_bindir}
%pre ufo
mkdir -p %{_libdir}/python2.6/site-packages
mkdir -p %{_localdir}/%{_objdir}/config
mkdir -p %{_conf_dir}/gluster-object
%files ufo
%defattr(-,root,root)
%{_libdir}/python2.6/site-packages/*
%{_localdir}/%{_objdir}/config
%{_bindir}/*
%clean
rm -rf %{buildroot}