summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Kottler <shk@redhat.com>2013-11-23 16:42:04 -0500
committerSam Kottler <shk@redhat.com>2013-11-23 16:42:04 -0500
commitc289b3f25676c395ee3003579252cf3ae17020ad (patch)
tree3b9f40d342ae4dff90a7c084e056275bbcad41e8
parent8eff3f56032b410f370018433294c7921f371fb5 (diff)
downloadgoogle-compute-engine-packaging-c289b3f25676c395ee3003579252cf3ae17020ad.tar.gz
google-compute-engine-packaging-c289b3f25676c395ee3003579252cf3ae17020ad.tar.xz
google-compute-engine-packaging-c289b3f25676c395ee3003579252cf3ae17020ad.zip
Add initial spec, still needs to include patches to ensure the path for lib loading is correctHEADmaster
-rw-r--r--gcutil/gcutil.spec45
1 files changed, 45 insertions, 0 deletions
diff --git a/gcutil/gcutil.spec b/gcutil/gcutil.spec
new file mode 100644
index 0000000..465f862
--- /dev/null
+++ b/gcutil/gcutil.spec
@@ -0,0 +1,45 @@
+Name: gcutil
+Version: 1.11.0
+Release: 1
+License: Apache 2
+Summary: Google Compute Engine utilities
+URL: https://code.google.com/p/google-compute-engine-tools/
+Group: System/Management
+Source0: https://google-compute-engine-tools.googlecode.com/files/%{name}-%{version}.tar.gz
+Requires: python
+Requires: python-ipaddr
+Requires: python-httplib2
+Requires: python-iso8601
+Requires: python-gflags
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+
+%description
+gcutil is a tool that allows you to interact with your Google Compute Engine
+resources through the command-line.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+%install
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/gcutil
+chmod +x gcutil
+rm -rf lib/{python_gflags,ipaddr,httplib2,iso8601}
+cp -r gcutil lib $RPM_BUILD_ROOT/%{_datadir}/gcutil
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+ln -s %{_datadir}/gcutil/gcutil $RPM_BUILD_ROOT/%{_bindir}/gcutil
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG LICENSE VERSION
+%dir %{_datadir}/gcutil
+%{_datadir}/gcutil/*
+%{_bindir}/gcutil
+
+%changelog