valtri pushed to rubygem-nenv (master). "Initial import (#1200157)."

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 18:34:28 UTC 2015


>From 8bdb5af17b48fd27965ad31b78bde9c3bbcf4909 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri at civ.zcu.cz>
Date: Tue, 7 Apr 2015 20:23:31 +0200
Subject: Initial import (#1200157).


diff --git a/.gitignore b/.gitignore
index e69de29..e3e6199 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/nenv-0.2.0.gem
+/rubygem-nenv-0.2.0-specs.tgz
diff --git a/rubygem-nenv.spec b/rubygem-nenv.spec
new file mode 100644
index 0000000..0a6b6e6
--- /dev/null
+++ b/rubygem-nenv.spec
@@ -0,0 +1,93 @@
+%global gem_name nenv
+
+# tests require rspec >= 3.1
+%if 0%{?fedora} && 0%{?fedora} <= 21 || 0%{?rhel} && 0%{?rhel} <= 7
+%global with_tests 0
+%else
+%global with_tests 1
+%endif
+
+Name:           rubygem-%{gem_name}
+Version:        0.2.0
+Release:        1%{?dist}
+Summary:        Convenience wrapper for Ruby's ENV
+
+Group:          Development/Languages
+License:        MIT
+URL:            https://github.com/e2/nenv
+Source0:        https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# git clone https://github.com/e2/nenv && cd nenv
+# git checkout v0.2.0
+# tar -czf rubygem-nenv-0.2.0-specs.tgz spec/
+Source1:        %{name}-%{version}-specs.tgz
+
+BuildArch:      noarch
+BuildRequires:  rubygems-devel
+%if 0%{?with_tests}
+BuildRequires:  rubygem(coveralls)
+BuildRequires:  rubygem(rspec) => 3.1
+BuildRequires:  rubygem(rspec) < 4
+%endif
+
+%description
+Using ENV is like using raw SQL statements in your code. We all know how that
+ends...
+
+
+%package doc
+Summary:        Documentation for %{name}
+Group:          Documentation
+BuildArch:      noarch
+Requires:       %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}.
+
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version} -a1
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+
+%build
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+
+%check
+%if 0%{?with_tests}
+cp -pr spec/ .%{gem_instdir}
+pushd .%{gem_instdir}
+rspec -r spec_helper
+rm -rf spec
+popd
+%endif
+
+
+%files
+%dir %{gem_instdir}/
+%license %{gem_instdir}/LICENSE.txt
+%{gem_libdir}/
+%{gem_spec}
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+%exclude %{gem_cache}
+
+%files doc
+%doc %{gem_docdir}/
+%doc %{gem_instdir}/README.md
+
+
+%changelog
+* Mon Mar 09 2015 František Dvořák <valtri at civ.zcu.cz> - 0.2.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..e9d83c5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+0ae3fa7f45ce2c35f1b8c15392286771  nenv-0.2.0.gem
+73758905e3328d3f07831c061b8f8c8c  rubygem-nenv-0.2.0-specs.tgz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rubygem-nenv.git/commit/?h=master&id=8bdb5af17b48fd27965ad31b78bde9c3bbcf4909


More information about the scm-commits mailing list