summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-12-09 21:53:48 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-12-09 21:59:26 -0700
commit28f6919be56730591b9046d63b3c133940d12a85 (patch)
treed246f4ad598d78132d01d66a45d6f364c800d215
downloadrubygem-wikicloth-master.zip
rubygem-wikicloth-master.tar.gz
rubygem-wikicloth-master.tar.xz
initial package importHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--rubygem-wikicloth.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d974dde
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/wikicloth-0.8.0.gem
diff --git a/rubygem-wikicloth.spec b/rubygem-wikicloth.spec
new file mode 100644
index 0000000..24e9e0e
--- /dev/null
+++ b/rubygem-wikicloth.spec
@@ -0,0 +1,91 @@
+%global gem_name wikicloth
+
+Name: rubygem-%{gem_name}
+Version: 0.8.0
+Release: 1%{?dist}
+Summary: Mediawiki parser
+Group: Development/Languages
+License: MIT
+URL: https://github.com/nricciar/wikicloth
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
+Requires: rubygem(builder)
+Requires: rubygem(expression_parser)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(activesupport)
+BuildRequires: rubygem(builder)
+BuildRequires: rubygem(expression_parser)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+An implementation of the mediawiki markup in Ruby.
+
+
+%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
+
+# Remove the old-style loading for test-unit
+sed -i -e '/gem "test-unit"/d' test/test_helper.rb
+
+# Remove developer-only files.
+for f in .gitignore .travis.yml Gemfile Rakefile run_tests.rb tasks/wikicloth_tasks.rake; do
+ rm $f
+ sed -i "s|\"$f\",||g" %{gem_name}.gemspec
+done
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+# Remove unnecessary gemspec
+rm .%{gem_instdir}/%{gem_name}.gemspec
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+ ruby -Ilib test/*_test.rb
+popd
+
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/README.textile
+%doc %{gem_instdir}/MIT-LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+%{gem_instdir}/init.rb
+%{gem_instdir}/lang
+
+%files doc
+%doc %{gem_docdir}
+%exclude %{gem_instdir}/test
+%{gem_instdir}/examples
+%{gem_instdir}/sample_documents
+
+%changelog
+* Wed Nov 06 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.8.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fd00712
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f6fb9290ef81b94e70231fe38653fe64 wikicloth-0.8.0.gem