Please review pull request #49: Add hiera.spec for building hiera on redhat opened by (haus)
Description:
This commit adds a specfile that can be used as a base for building rpms of
hiera on redhat based systems.
- Opened: Sat May 12 00:25:16 UTC 2012
- Based on: puppetlabs:master (247c03dcf52dcf355a193935f68652dbb931462f)
- Requested merge: haus:add_spec_file (29c5ad7f0a321b6f2847df2c08286e526e17b48d)
Diff follows:
diff --git a/ext/redhat/hiera.spec b/ext/redhat/hiera.spec
new file mode 100644
index 0000000..e4ee340
--- /dev/null
+++ b/ext/redhat/hiera.spec
@@ -0,0 +1,53 @@
+%{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Object.const_get(defined?(RbConfig) ? :RbConfig : :Config)::CONFIG["sitelibdir"]')}
+
+%global _ver 0.3.0.24
+
+Name: hiera
+Version: 0.3.0.24
+Release: 1%{?dist}
+Summary: A simple pluggable Hierarchical Database.
+
+Group: System Environment/Base
+License: Apache 2.0
+URL: http://projects.puppetlabs.com/projects/%{name}/
+Source0: http://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: ruby >= 1.8.5
+Requires: ruby(abi) >= 1.8
+Requires: ruby >= 1.8.5
+
+%description
+A simple pluggable Hierarchical Database.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{ruby_sitelibdir}
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+cp -pr lib/hiera $RPM_BUILD_ROOT/%{ruby_sitelibdir}
+cp -pr lib/hiera.rb $RPM_BUILD_ROOT/%{ruby_sitelibdir}
+install -p -m0755 bin/hiera $RPM_BUILD_ROOT/%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/hiera
+%{ruby_sitelibdir}/hiera.rb
+%{ruby_sitelibdir}/hiera
+%doc CHANGES.txt COPYING README.md
+
+
+%changelog
+* Thu May 03 2012 Matthaus Litteken <[email protected]> - 0.3.0.24-1
+- Initial Hiera Packaging. Upstream version 0.3.0.24
+
-- You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
