From e21c36ec0e7fb9a42f32b8d2bf87fd6f7d6e088c Mon Sep 17 00:00:00 2001 From: David Nalley Date: Sun, 9 Sep 2012 16:44:44 -0400 Subject: [PATCH] adding script to make this easier to consume --- docs/publican-cloudstack/gen_rpm.sh | 22 +++++++++++++++++++ .../publican-cloudstack.spec | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 docs/publican-cloudstack/gen_rpm.sh diff --git a/docs/publican-cloudstack/gen_rpm.sh b/docs/publican-cloudstack/gen_rpm.sh new file mode 100755 index 00000000000..6c87141dbf4 --- /dev/null +++ b/docs/publican-cloudstack/gen_rpm.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information# +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +cd ../ +tar -czf ~/rpmbuild/SOURCES/publican-cloudstack.tgz publican-cloudstack +cp -a publican-cloudstack/publican-cloudstack.spec ~/rpmbuild/SPECS/ +rpmbuild -ba ~/rpmbuild/SPECS/publican-cloudstack.spec diff --git a/docs/publican-cloudstack/publican-cloudstack.spec b/docs/publican-cloudstack/publican-cloudstack.spec index 9dec6007393..03218638b55 100644 --- a/docs/publican-cloudstack/publican-cloudstack.spec +++ b/docs/publican-cloudstack/publican-cloudstack.spec @@ -2,13 +2,13 @@ Name: publican-cloudstack Summary: Common documentation files for Apache %{brand} -Version: 0.3 +Version: 0.4 Release: 1%{?dist} License: ASLv2 Group: Applications/Text Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildarch: noarch -Source: %{name}-%{version}.tgz +Source: %{name}.tgz Requires: publican >= 1.99 BuildRequires: publican >= 1.99 URL: http://cloudstack.org