orion pushed to rubygem-pathspec (master). "Initial import"
notifications at fedoraproject.org
notifications at fedoraproject.org
Sun Apr 19 23:37:25 UTC 2015
>From 40afb749d0825119f5948fffdcd8c5663ad6c390 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Sun, 19 Apr 2015 17:37:16 -0600
Subject: Initial import
diff --git a/.gitignore b/.gitignore
index e69de29..138ff6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/pathspec-0.0.2.gem
+/spec-0.0.2.tar.xz
diff --git a/rubygem-pathspec.spec b/rubygem-pathspec.spec
new file mode 100644
index 0000000..439facb
--- /dev/null
+++ b/rubygem-pathspec.spec
@@ -0,0 +1,81 @@
+%global gem_name pathspec
+
+Name: rubygem-%{gem_name}
+Version: 0.0.2
+Release: 2%{?dist}
+Summary: Use to match path patterns such as gitignore
+
+License: ASL 2.0
+URL: https://rubygems.org/gems/%{gem_name}
+Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
+# svn export https://github.com/highb/pathspec-ruby/tags/0.0.2/spec spec
+# tar caf spec-0.0.2.tar.xz spec
+Source1: spec-%{version}.tar.xz
+BuildArch: noarch
+
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(fakefs)
+
+%description
+Use to match path patterns such as gitignore.
+
+
+%package doc
+Summary: Documentation for %{name}
+Requires: rubygems
+
+%description doc
+Documentaion for %{name}
+
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version} -a 1
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%if 0%{fedora} < 22
+ # Fedora 21 has Rspec 2.x, and Fedora 22 has Rspec 3.x.
+ # Switch to the older Rspec functions.
+ for f in $(find spec -type f); do
+ sed -i $f \
+ -e "s/is_expected\.to/should/g" \
+ -e "s/is_expected\.not_to/should_not/g"
+ done
+%endif
+
+
+%build
+gem build %{gem_name}.gemspec
+%gem_install
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+
+%check
+rspec -Ilib spec
+
+
+%files
+%dir %{gem_instdir}
+%license %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/CHANGELOG.md
+%doc %{gem_instdir}/README.md
+%{gem_libdir}
+%{gem_spec}
+%exclude %{gem_cache}
+
+%files doc
+%{doc} %{gem_docdir}
+
+%changelog
+* Fri Apr 10 2015 Orion Poplawski <orion at cora.nwra.com> - 0.0.2-2
+- Fix files
+- Doc subpackage
+- Run tests
+
+* Fri Apr 10 2015 Orion Poplawski <orion at cora.nwra.com> - 0.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..82f725c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+1ee6858ce390195ae44b3ee4751a731d pathspec-0.0.2.gem
+a7fae82887bf0d9cd0be41a951757881 spec-0.0.2.tar.xz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/rubygem-pathspec.git/commit/?h=master&id=40afb749d0825119f5948fffdcd8c5663ad6c390
More information about the scm-commits
mailing list