[rubygem-parse-cron] Initial import #1001865

Shawn Starr spstarr at fedoraproject.org
Sun Sep 1 19:22:52 UTC 2013


commit 2126211809b611895752cc07b17a969980a3c28f
Author: Shawn Starr <spstarr at segfault.sh0n.net>
Date:   Sun Sep 1 15:21:39 2013 -0400

    Initial import #1001865

 .gitignore              |    1 +
 rubygem-parse-cron.spec |   76 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9c5865b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/parse-cron-0.1.3.gem
diff --git a/rubygem-parse-cron.spec b/rubygem-parse-cron.spec
new file mode 100644
index 0000000..b45558a
--- /dev/null
+++ b/rubygem-parse-cron.spec
@@ -0,0 +1,76 @@
+%global gem_name parse-cron
+
+Name: rubygem-%{gem_name}
+Version: 0.1.3
+Release: 1%{?dist}
+Summary: Parses cron expressions and calculates the next occurrence
+Group: Development/Languages
+License: MIT
+URL: https://github.com/siebertm/parse-cron
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems) 
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel 
+BuildRequires: rubygem(rspec)
+BuildRequires: ruby 
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+parses cron expressions and calculates the next occurrence 
+after a given date
+
+%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
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+rspec spec/
+popd
+
+%files
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_instdir}/License
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/.*
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/Gemfile
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/spec
+
+%changelog
+* Tue Aug 27 2013 Shawn Starr <shawn.starr at rogers.com> - 0.1.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..3a7388c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+06236a1bb9b975a7e454e20646e53447  parse-cron-0.1.3.gem


More information about the scm-commits mailing list