[rubygem-gem2rpm] Minor updates. Moving doc into separate package.
Michael Stahnke
stahnma at fedoraproject.org
Tue Sep 28 18:41:12 UTC 2010
commit 2d778fded567f0ffed2ce004f4589bd09a875142
Author: stahnma <stahnma at websages.com>
Date: Tue Sep 28 14:41:14 2010 -0400
Minor updates. Moving doc into separate package.
rubygem-gem2rpm.spec | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/rubygem-gem2rpm.spec b/rubygem-gem2rpm.spec
index 9ca5bca..cfe7267 100644
--- a/rubygem-gem2rpm.spec
+++ b/rubygem-gem2rpm.spec
@@ -1,5 +1,4 @@
# Generated from gem2rpm-0.5.2.gem by gem2rpm -*- rpm-spec -*-
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname gem2rpm
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -8,7 +7,7 @@
Summary: Generate rpm specfiles from gems
Name: rubygem-%{gemname}
Version: 0.6.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://rubyforge.org/projects/gem2rpm/
@@ -25,6 +24,14 @@ tries to follow the gem as closely as possible, and be compliant with the
Fedora rubygem packaging guidelines
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}.
+
%prep
%build
@@ -38,6 +45,7 @@ mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+rm -f %{buildroot}%{geminstdir}/*.spec
%clean
rm -rf %{buildroot}
@@ -51,13 +59,17 @@ rm -rf %{buildroot}
%{geminstdir}/lib
%doc %{geminstdir}/README
%doc %{geminstdir}/LICENSE
-%{geminstdir}/rubygem-gem2rpm.spec
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
%doc %{gemdocdir}/rdoc
%doc %{gemdocdir}/ri
%changelog
+* Tue Sep 28 2010 Michael Stahnke <stahnma at fedoraproject.org> - 0.6.0-5
+- Breaking into a main and doc package
+
* Tue Nov 24 2009 David Lutterkort <lutter at redhat.com> - 0.6.0-4
- Add gemdocdir contents as doc
More information about the scm-commits
mailing list