[packages/ruby-xz] new, version 0.2.3
glen
glen at pld-linux.org
Thu Jun 2 15:52:17 CEST 2016
commit 52149549c2bc5398d4496aeac5c7de770582f4e4
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jun 2 16:51:47 2016 +0300
new, version 0.2.3
created with gem2rpm
ruby-xz.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
---
diff --git a/ruby-xz.spec b/ruby-xz.spec
new file mode 100644
index 0000000..f1a7669
--- /dev/null
+++ b/ruby-xz.spec
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_with tests # build without tests
+
+%define pkgname ruby-xz
+Summary: XZ compression via liblzma for Ruby, using FFI
+Name: ruby-xz
+Version: 0.2.3
+Release: 1
+License: MIT
+Group: Development/Languages
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 6930d427894a786e714b1dcca9addbf1
+URL: http://quintus.github.io/ruby-xz
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-archive-tar-minitar < 1
+BuildRequires: ruby-archive-tar-minitar >= 0.5
+%endif
+Requires: xz-libs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+These are simple Ruby bindings for the liblzma library, which is best
+known for the extreme compression ratio its native XZ format achieves.
+Since FFI is used to implement the bindings, no compilation is needed
+and they should work with JRuby as well.
+
+%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}}
+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}/xz.rb
+%{ruby_vendorlibdir}/xz
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-xz.git/commitdiff/52149549c2bc5398d4496aeac5c7de770582f4e4
More information about the pld-cvs-commit
mailing list