[rubygem-rttool] initial commit

Mamoru TASAKA mtasaka at fedoraproject.org
Mon Dec 2 04:33:57 UTC 2013


commit 3deed42a3ffe619b73ade33298f48b849849d3e4
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Mon Dec 2 13:33:50 2013 +0900

    initial commit

 .gitignore          |    1 +
 rubygem-rttool.spec |  106 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8b39b9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rttool-1.0.3.0.gem
diff --git a/rubygem-rttool.spec b/rubygem-rttool.spec
new file mode 100644
index 0000000..fa6b729
--- /dev/null
+++ b/rubygem-rttool.spec
@@ -0,0 +1,106 @@
+# Generated from rttool-1.0.3.0.gem by gem2rpm -*- rpm-spec -*-
+%global	gem_name	rttool
+
+Name:		rubygem-%{gem_name}
+Version:	1.0.3.0
+Release:	1%{?dist}
+
+Summary:	Converter from RT into various formats
+# See rttool.en.rd
+License:	Ruby
+# raa is dead
+#URL:		http://raa.ruby-lang.org/project/rttool/
+URL:		https://github.com/genki/rttool
+Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+BuildRequires:	ruby(release)
+BuildRequires:	rubygems-devel
+BuildRequires:	rubygem(minitest)
+BuildRequires:	rubygem(rdtool)
+Requires:	ruby(release)
+Requires:	ruby(rubygems)
+
+BuildArch:	noarch
+Provides:	rubygem(%{gem_name}) = %{version}-%{release}
+
+%description
+RT is a simple and human-readable table format.
+RTtool is a converter from RT into various formats.
+RT can be incorporated into RD.
+
+%package	doc
+Summary:	Documentation for %{name}
+Group:	Documentation
+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
+
+# Encoding
+for f in \
+	rttool.*.*
+do
+	iconv -f EUC-JP -t UTF-8 -o $f{.utf,}
+	touch -r $f{,.utf}
+	mv $f{.utf,}
+done
+
+# shebang
+sed -i \
+	-e '\@#![ \t]*/usr/bin/ruby at d' \
+	lib/rt/*.rb
+
+%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
+
+%check
+pushd .%{gem_instdir}
+chmod 0755 bin/rt2
+
+export RUBYOPT="-I$(pwd)/lib"
+export PATH=$(pwd)/bin:$PATH
+testrb test/test*rb
+
+popd
+
+%files
+%dir	%{gem_instdir}
+%doc	%{gem_instdir}/ChangeLog
+%doc	%{gem_instdir}/GPL
+%doc %{gem_instdir}/rttool.*.html
+%doc	%{gem_instdir}/rttool.*.rd
+
+%{_bindir}/rdrt2
+%{_bindir}/rt2
+%{gem_instdir}/bin
+
+%{gem_libdir}
+%exclude	%{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/examples/
+%exclude	%{gem_instdir}/test/
+
+%changelog
+* Fri Nov 15 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.3.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b424e00 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+30cd10d49636d5241ba4a5348d2d88a0  rttool-1.0.3.0.gem


More information about the scm-commits mailing list