[rubygem-rdtool] Initial commit

Mamoru TASAKA mtasaka at fedoraproject.org
Wed Nov 27 06:14:17 UTC 2013


commit 64b89b9692b1c73a748dac47bd5a0905542dcfd3
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Wed Nov 27 15:14:04 2013 +0900

    Initial commit

 .gitignore          |    1 +
 rubygem-rdtool.spec |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b8c66f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rdtool-0.6.38.gem
diff --git a/rubygem-rdtool.spec b/rubygem-rdtool.spec
new file mode 100644
index 0000000..5471eba
--- /dev/null
+++ b/rubygem-rdtool.spec
@@ -0,0 +1,113 @@
+%global	gem_name	rdtool
+
+Name:		rubygem-%{gem_name}
+Version:	0.6.38
+Release:	2%{?dist}
+
+Summary:	Formatter for RD
+# From README.rd
+# Note that setup.rb is not included in the binary
+# rpm
+License:	GPLv2+ or Ruby
+URL:		https://github.com/uwabami/rdtool
+Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+BuildRequires:	ruby(release)
+BuildRequires:	rubygems-devel
+BuildRequires:	rubygem(minitest)
+Requires:	ruby(release)
+Requires:	ruby(rubygems)
+BuildArch:	noarch
+Provides:	rubygem(%{gem_name}) = %{version}-%{release}
+
+%description
+RD is multipurpose documentation format created for documentating Ruby and
+output of Ruby world. You can embed RD into Ruby script. And RD have neat
+syntax which help you to read document in Ruby script. On the other hand, RD
+have a feature for class reference.
+
+
+%package	doc
+Summary:	Documentation for %{name}
+# utils/rd-mode.el is under GPLv2+
+License:	(GPLv2+ or Ruby) and GPLv2+
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# rename rdswap.rb
+mv bin/rdswap{.rb,}
+sed -i -e "s|rdswap\.rb|rdswap|" %{gem_name}.gemspec
+
+# shebang
+sed -i \
+	-e '\@/usr/bin/env at d' \
+	lib/rd/rd2html-ext-opt.rb
+sed -i \
+	-e 's|/usr/bin/ruby[^ ][^ ]*|%{_bindir}/ruby|' \
+	bin/*
+
+%build
+gem build %{gem_name}.gemspec
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+	%{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+	%{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+# Cleanup
+pushd %{buildroot}%{gem_instdir}
+rm -rf \
+	Gemfile Rakefile \
+	setup.rb \
+	%{gem_name}.gemspec \
+	test/
+
+rm -f lib/rd/pre-setup.rb
+find lib/rd -type f -print0 | xargs -0 chmod ugo-x
+popd
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib:test test/test-*rb
+popd
+
+%files
+%dir %{gem_instdir}
+%doc	%{gem_instdir}/[A-Z]*
+%exclude	%{gem_instdir}/LGPL-2.1
+
+%{_bindir}/rd2
+%{_bindir}/rdswap
+
+%{gem_instdir}/bin
+%{gem_libdir}/
+
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc	%{gem_docdir}
+%doc	%{gem_instdir}/doc/
+%{gem_instdir}/utils/
+
+%changelog
+* Mon Nov 25 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.6.38-2
+- Incorporate comments on review request (bug 1031316)
+
+* Thu Nov 14 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.6.38-1
+- Initial package
diff --git a/sources b/sources
index e69de29..f29f776 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a9332634a3dff8dfea8cb433fd048168  rdtool-0.6.38.gem


More information about the scm-commits mailing list