[rubygem-expression_parser/f19] initial package import (RHBZ #1028168)

Ken Dreyer ktdreyer at fedoraproject.org
Thu Nov 21 21:58:26 UTC 2013


commit ea3d9380724ac8142ca742282d8ec7159e33aecb
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Thu Nov 21 14:57:07 2013 -0700

    initial package import (RHBZ #1028168)

 .gitignore                            |    1 +
 rubygem-expression_parser-MIT-LICENSE |   20 +++++++
 rubygem-expression_parser.spec        |   88 +++++++++++++++++++++++++++++++++
 sources                               |    1 +
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..429d3fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/expression_parser-0.9.0.gem
diff --git a/rubygem-expression_parser-MIT-LICENSE b/rubygem-expression_parser-MIT-LICENSE
new file mode 100644
index 0000000..9df1f93
--- /dev/null
+++ b/rubygem-expression_parser-MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009.
+ 
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+ 
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+ 
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/rubygem-expression_parser.spec b/rubygem-expression_parser.spec
new file mode 100644
index 0000000..a5af62c
--- /dev/null
+++ b/rubygem-expression_parser.spec
@@ -0,0 +1,88 @@
+%global gem_name expression_parser
+
+Name: rubygem-%{gem_name}
+Version: 0.9.0
+Release: 4%{?dist}
+Summary: A math parser
+Group: Development/Languages
+License: MIT
+URL: http://lukaszwrobel.pl/blog/math-parser-part-3-implementation
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# License is in upstream Git master, but not yet shipped in a released gem.
+# https://raw.github.com/nricciar/expression_parser/master/MIT-LICENSE
+Source1: rubygem-expression_parser-MIT-LICENSE
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+A math parser
+
+
+%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
+
+rm Rakefile
+sed -i "s|\"Rakefile\",||g" %{gem_name}.gemspec
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+install -m 0644 -p %{SOURCE1} %{buildroot}%{gem_instdir}/MIT-LICENSE
+
+%check
+pushd .%{gem_instdir}
+  rspec parser_spec.rb
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/MIT-LICENSE
+%doc %{gem_instdir}/README
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%exclude %{gem_instdir}/parser_spec.rb
+
+%changelog
+* Thu Nov 21 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.9.0-4
+- Correct MIT-LICENSE file permissions
+
+* Tue Nov 19 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.9.0-3
+- Remove macro in comment
+- Remove email transcripts
+- Add MIT-LICENSE file from upstream
+
+* Mon Nov 18 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.9.0-2
+- Include email transcripts describing MIT license.
+
+* Wed Nov 06 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.9.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9dc2a3e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5ca6313c73f48a6337437ea096f2fa97  expression_parser-0.9.0.gem


More information about the scm-commits mailing list