From 2d778fded567f0ffed2ce004f4589bd09a875142 Mon Sep 17 00:00:00 2001 From: stahnma Date: Sep 28 2010 18:41:14 +0000 Subject: Minor updates. Moving doc into separate package. --- 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 - 0.6.0-5 +- Breaking into a main and doc package + * Tue Nov 24 2009 David Lutterkort - 0.6.0-4 - Add gemdocdir contents as doc