From c289b3f25676c395ee3003579252cf3ae17020ad Mon Sep 17 00:00:00 2001 From: Sam Kottler Date: Sat, 23 Nov 2013 16:42:04 -0500 Subject: Add initial spec, still needs to include patches to ensure the path for lib loading is correct --- gcutil/gcutil.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 gcutil/gcutil.spec 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 -- cgit