[packages/ruby-gem2rpm] new, version 0.8.1

glen glen at pld-linux.org
Wed Apr 3 16:22:06 CEST 2013


commit f0d3c1e66096c980f23bf33f1b5a67e2ed4c9a07
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 3 17:21:26 2013 +0300

    new, version 0.8.1
    
    based on fedora rubygem-gem2rpm package
    2744468efa51616a3520a361bb1441ba17e061c8

 ruby-gem2rpm.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/ruby-gem2rpm.spec b/ruby-gem2rpm.spec
new file mode 100644
index 0000000..16d297e
--- /dev/null
+++ b/ruby-gem2rpm.spec
@@ -0,0 +1,66 @@
+%define		module	gem2rpm
+Summary:	Generate rpm specfiles from gems
+Name:		ruby-%{module}
+Version:	0.8.1
+Release:	1
+License:	GPL v2+
+Group:		Development/Languages
+URL:		https://github.com/lutter/gem2rpm/
+Source0:	http://rubygems.org/gems/%{module}-%{version}.gem
+# Source0-md5:	d3c9416f225ae944fd195e69e122d46e
+# git clone https://github.com/lutter/gem2rpm.git && cd gem2rpm && git checkout v0.8.1
+# tar czvf gem2rpm-0.8.1-tests.tgz test/
+Source1:	%{module}-%{version}-tests.tgz
+# Source1-md5:	d7d8bc231dc405bbce00f570c89f530e
+BuildRequires:	ruby
+Requires:	ruby
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Generate source rpms and rpm spec files from a Ruby Gem. The spec file
+tries to follow the gem as closely as possible, and be compliant with
+the Fedora rubygem packaging guidelines
+
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -qc
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README  -o -print | xargs touch --reference %{SOURCE0}
+
+%build
+%if %{with tests}
+testrb -Itest test/
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{_bindir}}
+
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README AUTHORS
+%attr(755,root,root) %{_bindir}/gem2rpm
+%{ruby_rubylibdir}/gem2rpm.rb
+%{ruby_rubylibdir}/gem2rpm
+
+%if 0
+%files doc
+%defattr(644,root,root,755)
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/AUTHORS
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-gem2rpm.git/commitdiff/f0d3c1e66096c980f23bf33f1b5a67e2ed4c9a07



More information about the pld-cvs-commit mailing list