[rubygem-settingslogic] Initial import (#1076976).
František Dvořák
valtri at fedoraproject.org
Mon Jul 28 20:41:53 UTC 2014
commit dc7d906b37596a4ffdb0861c46e4705bcf905879
Author: František Dvořák <valtri at civ.zcu.cz>
Date: Mon Jul 28 22:45:05 2014 +0200
Initial import (#1076976).
.gitignore | 1 +
rubygem-settingslogic.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e798b8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/settingslogic-2.0.9.gem
diff --git a/rubygem-settingslogic.spec b/rubygem-settingslogic.spec
new file mode 100644
index 0000000..7bdfad9
--- /dev/null
+++ b/rubygem-settingslogic.spec
@@ -0,0 +1,90 @@
+%global gem_name settingslogic
+
+Name: rubygem-%{gem_name}
+Version: 2.0.9
+Release: 3%{?dist}
+Summary: Simple settings solution for Ruby
+
+Group: Development/Languages
+License: MIT
+URL: https://github.com/binarylogic/settingslogic
+Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
+
+BuildArch: noarch
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+
+%description
+Settingslogic is a simple configuration and settings solution that uses an ERB
+enabled YAML file. Settingslogic works with Rails, Sinatra, or any Ruby
+project.
+
+
+%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 developer-only files
+for f in .gitignore Gemfile Gemfile.lock Rakefile; 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
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+
+%check
+pushd .%{gem_instdir}
+rspec -Ilib spec
+popd
+
+
+%files
+%doc %{gem_instdir}/LICENSE
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/spec
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+%{gem_spec}
+
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.rdoc
+
+
+%changelog
+* Mon Jul 28 2014 František Dvořák <valtri at civ.zcu.cz> - 2.0.9-3
+- Added README.rdoc
+- Move EPEL and Fedora <= 20 changes to the according branches
+
+* Sun Jul 27 2014 František Dvořák <valtri at civ.zcu.cz> - 2.0.9-2
+- Update BR/R for EPEL and Fedora <= 20
+- Remove development files before build
+- Run tests inside %%{gem_instdir}
+
+* Sun Mar 16 2014 František Dvořák <valtri at civ.zcu.cz> - 2.0.9-1
+- Initial package
diff --git a/sources b/sources
index e69de29..5b3b2a6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eb70c83fc87104a7898e56dd198b083a settingslogic-2.0.9.gem
More information about the scm-commits
mailing list