Add spec for rpmbuild solar-resources.spec

Change-Id: I544066e72b2c12e4f2919861fdeb271e9e9aaa7b
This commit is contained in:
alexz 2016-03-02 17:16:44 +02:00
parent 7847b4185e
commit 65ecc495a9

36
spec/solar-resources.spec Normal file
View File

@ -0,0 +1,36 @@
%define name solar-resources
%{!?version: %define version 0.1.0}
%{!?release: %define release 1}
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Summary: solar-resources
URL: http://mirantis.com
License: Apache
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
%description
Solar-resources are resources definitions and example deployments for solar project.
%prep
%setup -q -n %{name}-%{version}
%install
#copy resources
install -d -m 755 %{buildroot}%{_datadir}/solar-resources/
cp -a %{_builddir}/%{name}-%{version}/examples %{buildroot}%{_datadir}/solar-resources/
cp -a %{_builddir}/%{name}-%{version}/resources %{buildroot}%{_datadir}/solar-resources/
cp -a %{_builddir}/%{name}-%{version}/templates %{buildroot}%{_datadir}/solar-resources/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%{_datadir}/solar-resources/*