[rubygem-hikidoc] Initial commit
Mamoru TASAKA
mtasaka at fedoraproject.org
Wed Nov 20 03:00:57 UTC 2013
commit 8be06b2de8d1792c56c766061a5fb3ce63b75cdf
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Wed Nov 20 12:01:25 2013 +0900
Initial commit
.gitignore | 1 +
rubygem-hikidoc.spec | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b5fac02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hikidoc-0.0.6.gem
diff --git a/rubygem-hikidoc.spec b/rubygem-hikidoc.spec
new file mode 100644
index 0000000..f25ea9a
--- /dev/null
+++ b/rubygem-hikidoc.spec
@@ -0,0 +1,97 @@
+# Generated from hikidoc-0.0.6.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name hikidoc
+
+Name: rubygem-%{gem_name}
+Version: 0.0.6
+Release: 1%{?dist}
+
+Summary: Text-to-HTML conversion tool for web writers
+License: MIT
+URL: https://github.com/hiki/hikidoc
+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
+'HikiDoc' is a text-to-HTML conversion tool for web writers.
+HikiDoc allows you to write using an easy-to-read, easy-to-write plain
+text format, then convert it to structurally valid HTML (or XHTML).
+
+%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 \
+ NEWS.ja \
+ README.ja \
+ TextFormattingRules.ja
+do
+ iconv -f EUC-JP -t UTF-8 -o $f{.utf,}
+ touch -r $f{,.utf}
+ mv $f{.utf,}
+done
+
+%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 \
+ .gitignore Gemfile Rakefile \
+ %{gem_name}.gemspec \
+ setup.rb \
+ test/
+popd
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib:test test/*_test.rb
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/[A-Z]*
+
+%{_bindir}/hikidoc
+%{gem_instdir}/bin
+
+%{gem_libdir}/
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}/
+
+%changelog
+* Thu Nov 14 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.0.6-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9801ce1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8b0b12debd7bc282639f2bcde2bd454e hikidoc-0.0.6.gem
More information about the scm-commits
mailing list