[rubygem-mini_portile] initial commit
Mamoru Tasaka
mtasaka at fedoraproject.org
Mon Sep 9 08:16:30 UTC 2013
commit 1ea1a0dcef2d861e3f60a4cfc5301b62f8d1fa30
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Mon Sep 9 17:16:16 2013 +0900
initial commit
.gitignore | 1 +
rubygem-mini_portile.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f24e489 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mini_portile-0.5.1.gem
diff --git a/rubygem-mini_portile.spec b/rubygem-mini_portile.spec
new file mode 100644
index 0000000..19c310a
--- /dev/null
+++ b/rubygem-mini_portile.spec
@@ -0,0 +1,80 @@
+%global gem_name mini_portile
+
+Name: rubygem-%{gem_name}
+Version: 0.5.1
+Release: 1%{?dist}
+Summary: Simplistic port-like solution for developers
+Group: Development/Languages
+License: MIT
+
+URL: http://github.com/luislavena/mini_portile
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildArch: noarch
+
+Provides: rubygem(%{gem_name}) = %{version}-%{release}
+
+%description
+Simplistic port-like solution for developers. It provides a standard and
+simplified way to compile against dependency libraries without messing up
+your system.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+
+TOPDIR=$(pwd)
+mkdir tmpunpackdir
+pushd tmpunpackdir
+
+gem unpack %{SOURCE0}
+cd %{gem_name}-%{version}
+
+# Permission
+find . -name \*.rb -print0 | xargs --null chmod 0644
+
+gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
+gem build %{gem_name}.gemspec
+mv %{gem_name}-%{version}.gem $TOPDIR
+
+popd
+rm -rf tmpunpackdir
+
+%build
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/[A-Z]*
+%exclude %{gem_instdir}/Rakefile
+%{gem_libdir}/
+
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}/
+# Currently no useful
+%exclude %{gem_instdir}/examples/
+
+%changelog
+* Sun Jul 28 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.5.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..aaab525 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cb8c0f8e9f3777289613198d0abef699 mini_portile-0.5.1.gem
More information about the scm-commits
mailing list