[packages/ruby-di-ruby-lvm] new, version 0.1.3

glen glen at pld-linux.org
Mon Mar 10 11:32:49 CET 2014


commit ee06ea1e7c9d1fa1f0255644b8941ce4bf1fc1ac
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jan 7 09:24:48 2014 +0200

    new, version 0.1.3

 ruby-di-ruby-lvm.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/ruby-di-ruby-lvm.spec b/ruby-di-ruby-lvm.spec
new file mode 100644
index 0000000..3d0fefe
--- /dev/null
+++ b/ruby-di-ruby-lvm.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define	pkgname	di-ruby-lvm
+Summary:	This is a fork of the ruby-lvm gem found at git://rubyforge.org/ruby-lvm.git
+Name:		ruby-%{pkgname}
+Version:	0.1.3
+Release:	1
+License:	GPL v2+ or Ruby
+Group:		Development/Languages
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	1a95892a53a34080d56abce8b5714e52
+URL:		http://ruby-lvm.rubyforge.org/
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires:	ruby-hoe < 4
+BuildRequires:	ruby-hoe >= 3.0
+BuildRequires:	ruby-rdoc < 4
+BuildRequires:	ruby-rdoc >= 3.10
+%endif
+Requires:	ruby-di-ruby-lvm-attrib < 0.1
+Requires:	ruby-di-ruby-lvm-attrib >= 0.0.3
+Requires:	ruby-open4 >= 0.9.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a fork of the ruby-lvm gem found at
+git://rubyforge.org/ruby-lvm.git.
+
+The primary difference from upstream is that it depends on
+di-ruby-lvm-attributes instead of ruby-lvm-attributes. This adds
+support for lvm version 2.02.66(2). This is a wrapper for the LVM2
+administration utility, lvm. Its primary function it to convert
+physical volumes, logical volumes and volume groups into easy to use
+ruby objects. It also provides a simple wrapper for typical
+create/delete/etc operations. Due to a lack of LVM2 api this is a best
+effort attempt at ruby integration but subject to complete replacement
+in the future.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_examplesdir}/%{name}-%{version}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt History.txt Todo.txt
+%{ruby_vendorlibdir}/lvm.rb
+%{ruby_vendorlibdir}/lvm
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-di-ruby-lvm.git/commitdiff/ee06ea1e7c9d1fa1f0255644b8941ce4bf1fc1ac



More information about the pld-cvs-commit mailing list