[rubygem-ghost] Initial import (#838239)
Matt Spaulding
madsa at fedoraproject.org
Mon Aug 13 19:43:22 UTC 2012
commit 3383d4df923df1d9d3b629defcc36af171d6c6fa
Author: Matt Spaulding <mspaulding06 at gmail.com>
Date: Mon Aug 13 12:43:12 2012 -0700
Initial import (#838239)
.gitignore | 1 +
rubygem-ghost.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..936af98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ghost-0.3.0.gem
diff --git a/rubygem-ghost.spec b/rubygem-ghost.spec
new file mode 100644
index 0000000..d55059e
--- /dev/null
+++ b/rubygem-ghost.spec
@@ -0,0 +1,88 @@
+%global gem_name ghost
+
+Summary: Allows you to create, list, and modify local hostnames
+Name: rubygem-%{gem_name}
+Version: 0.3.0
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/bjeanes/ghost
+Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby(abi) = 1.9.1
+Requires: ruby(rubygems)
+BuildRequires: rubygems-devel
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+This gem is designed primarily for web developers who need to add
+and modify hostnames to their system for virtual hosts on their
+local/remote web server. However, it could be of use to other people
+who would otherwise modify their `/etc/hosts` file manually and
+flush the cache.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T -n %{gem_name}-%{version}
+mkdir -p .%{gem_dir}
+
+%build
+
+
+%install
+gem install --local --install-dir .%{gem_dir} \
+ -V \
+ --force \
+ --rdoc \
+ %{SOURCE0}
+
+install -d -m0755 $RPM_BUILD_ROOT/%{_bindir}
+install -d -m0755 $RPM_BUILD_ROOT/%{gem_dir}
+
+cp -a .%{gem_dir}/* $RPM_BUILD_ROOT%{gem_dir}/
+
+mv $RPM_BUILD_ROOT%{gem_dir}/bin/* $RPM_BUILD_ROOT/%{_bindir}
+rmdir $RPM_BUILD_ROOT%{gem_dir}/bin
+find $RPM_BUILD_ROOT%{gem_instdir}/bin -type f | xargs chmod a+x
+
+# Remove zero-length documentation files
+find $RPM_BUILD_ROOT%{gem_docdir} -empty -delete
+find $RPM_BUILD_ROOT%{gem_instdir} -maxdepth 1 -empty -delete
+
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/ghost
+%{_bindir}/ghost-ssh
+%{gem_instdir}/bin
+%{gem_libdir}
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+%exclude %{gem_cache}
+
+%files doc
+%{gem_instdir}/spec
+%{gem_instdir}/Rakefile
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+
+
+%changelog
+* Mon Aug 13 2012 Matt Spaulding <mspaulding06 at gmail.com> - 0.3.0-2
+- Updated prep section
+- Excluded gem cache
+- Added -doc package
+- Removed clean section
+
+* Thu Jul 5 2012 Matt Spaulding <mspaulding06 at gmail.com> - 0.3.0-1
+- Initial build
+
diff --git a/sources b/sources
index e69de29..6b7c9c3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7ce509bc448a805efe53c182d27d00ec ghost-0.3.0.gem
More information about the scm-commits
mailing list