Skip to content

Commit aa770a0

Browse files
committed
template for cheetah based release
1 parent d5b6db9 commit aa770a0

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

glusterfs-hadoop.spec.tmpl

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Name: $name
2+
Version: $version
3+
Release: $release
4+
#if $epoch
5+
Epoch: $epoch
6+
#end if
7+
License: Apache
8+
Summary: GlusterFS Hadoop Plugin
9+
Group: Application/File
10+
11+
#set $i = 0
12+
#for $artifact in $all_artifacts
13+
Source$i: $artifact
14+
#set $i += 1
15+
#end for
16+
17+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18+
BuildArch: noarch
19+
20+
%description
21+
Gluster's Unified File and Object Storage unifies NAS and object storage
22+
technology. This provides a system for data storage that enables users to access
23+
the same data as an object and as a file, simplifying management and controlling
24+
storage costs.
25+
26+
%prep
27+
28+
%build
29+
30+
%install
31+
rm -rf %{buildroot}
32+
/usr/bin/install -d %{buildroot}%{_javadir}
33+
/usr/bin/install -d %{buildroot}%{_javadir}/poms
34+
/usr/bin/install -d %{buildroot}%{_javadir}/zips
35+
/usr/bin/install -d %{buildroot}%{_javadir}/conf
36+
37+
pwd
38+
find -name core-site.xml
39+
### /usr/bin/install -m 644 conf/core-site.xml %{buildroot}%{_javadir}/conf/core-site.xml
40+
41+
#set $i = 0
42+
#for $artifact in $all_artifacts
43+
#if $artifact.endswith('.jar')
44+
/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir}
45+
#elif $artifact.endswith('.pom')
46+
/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir}/poms
47+
#elif $artifact.endswith('.zip')
48+
/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir}/zips
49+
#end if
50+
#set $i += 1
51+
#end for
52+
53+
%clean
54+
rm -rf %{buildroot}
55+
56+
%files
57+
%defattr(-,root,root,-)
58+
%dir %{_javadir}/poms
59+
%dir %{_javadir}/zips
60+
%dir %{_javadir}/conf
61+
62+
### %{_javadir}/conf/core-site.xml
63+
#set $i = 0
64+
#for $artifact in $all_artifacts
65+
#if $artifact.endswith('.jar')
66+
%{_javadir}/$artifact
67+
#elif $artifact.endswith('.pom')
68+
%{_javadir}/poms/$artifact
69+
#elif $artifact.endswith('.zip')
70+
%{_javadir}/zips/$artifact
71+
#end if
72+
#set $i += 1
73+
#end for
74+
75+
%changelog
76+
* Fri May 18 2012 Anthony Towns <[email protected]> - 0.20.2-0
77+
- Initial build
78+

0 commit comments

Comments
 (0)