[packages/ruby-msgpack] new, version 0.5.11

glen glen at pld-linux.org
Sun Sep 18 19:55:14 CEST 2016


commit 874e9395f0bb02d955045a5ccf5690728c1eb6a7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 18 20:54:33 2016 +0300

    new, version 0.5.11
    
    based on fedora rubygem-msgpack package, cbe1a71

 ruby-msgpack.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
---
diff --git a/ruby-msgpack.spec b/ruby-msgpack.spec
new file mode 100644
index 0000000..634135d
--- /dev/null
+++ b/ruby-msgpack.spec
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define pkgname msgpack
+Summary:	MessagePack, a binary-based efficient data interchange format
+Name:		ruby-%{pkgname}
+Version:	0.5.11
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages
+Source0:	https://rubygems.org/gems/%{pkgname}-%{version}.gem
+# Source0-md5:	7289b86b6fabf77809d89721a515688a
+URL:		https://msgpack.org/
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MessagePack is a binary-based efficient object serialization library.
+It enables to exchange structured objects between many languages like
+JSON. But unlike JSON, it is very fast and small.
+
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+rm -r spec/jruby
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+# binary pkgs:
+cd ext/%{pkgname}
+%{__ruby} extconf.rb
+%{__make} \
+	CC="%{__cc}" \
+	LDFLAGS="%{rpmldflags}" \
+	CFLAGS="%{rpmcflags} -fPIC"
+cd -
+
+%if %{with tests}
+rspec -Ilib -I$RPM_BUILD_ROOT%{gem_extdir_mri} spec
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_vendorarchdir}/%{pkgname},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+install -p ext/%{pkgname}/*.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}/%{pkgname}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rdoc msgpack.org.md ChangeLog
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%dir %{ruby_vendorarchdir}/%{pkgname}
+%attr(755,root,root) %{ruby_vendorarchdir}/%{pkgname}/%{pkgname}.so
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-msgpack.git/commitdiff/874e9395f0bb02d955045a5ccf5690728c1eb6a7



More information about the pld-cvs-commit mailing list