]> git.pld-linux.org Git - packages/ruby-hashr.git/commitdiff
new, version 0.0.22
authorElan Ruusamäe <glen@delfi.ee>
Wed, 1 Jan 2014 18:29:13 +0000 (20:29 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 1 Jan 2014 18:29:13 +0000 (20:29 +0200)
ruby-hashr.spec [new file with mode: 0644]

diff --git a/ruby-hashr.spec b/ruby-hashr.spec
new file mode 100644 (file)
index 0000000..291eb12
--- /dev/null
@@ -0,0 +1,47 @@
+#
+# Conditional build:
+%bcond_with    tests           # build without tests
+
+%define        pkgname hashr
+Summary:       Simple Hash extension to make working with nested hashes
+Name:          ruby-%{pkgname}
+Version:       0.0.22
+Release:       1
+License:       GPL v2+ or Ruby
+Group:         Development/Languages
+Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 46cb93d63146f4ba7093d5c3153f419c
+URL:           http://github.com/svenfuchs/hashr
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-rake
+BuildRequires: ruby-test_declarative >= 0.0.2
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple Hash extension to make working with nested hashes (e.g. for
+configuration) easier and less error-prone.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+%__gem_helper spec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.218162 seconds and 4 git commands to generate.