[rubygem-climate_control/f20: 3/3] misc %files adjustments

Ken Dreyer ktdreyer at fedoraproject.org
Wed Dec 11 21:09:14 UTC 2013


commit 79c571f0d7990816d3c893e7d54a0da113e25638
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Wed Dec 11 14:05:20 2013 -0700

    misc %files adjustments
    
    - Move README to main package
    - Remove Gemfile, Rakefile and dot files during %prep
    - Exclude rspec tests from binary packages

 rubygem-climate_control.spec |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/rubygem-climate_control.spec b/rubygem-climate_control.spec
index b23eba6..5740534 100644
--- a/rubygem-climate_control.spec
+++ b/rubygem-climate_control.spec
@@ -2,7 +2,7 @@
 
 Name: rubygem-%{gem_name}
 Version: 0.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: Modify your ENV easily
 Group: Development/Languages
 License: MIT
@@ -40,6 +40,12 @@ gem unpack %{SOURCE0}
 
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
+# Remove developer-only files.
+for f in .gitignore .travisci.yml Gemfile Rakefile; do
+  rm $f
+  sed -i "s|\"$f\",||g" %{gem_name}.gemspec
+done
+
 %build
 # Create the gem as gem install only works on a gem file
 gem build %{gem_name}.gemspec
@@ -64,7 +70,7 @@ popd
 %files
 %dir %{gem_instdir}
 %doc %{gem_instdir}/LICENSE.txt
-%exclude %{gem_instdir}/.*
+%doc %{gem_instdir}/README.md
 %{gem_libdir}
 %exclude %{gem_cache}
 %{gem_spec}
@@ -72,12 +78,14 @@ popd
 %files doc
 %doc %{gem_docdir}
 %doc %{gem_instdir}/NEWS
-%doc %{gem_instdir}/README.md
-%{gem_instdir}/Gemfile
-%{gem_instdir}/Rakefile
-%{gem_instdir}/spec
+%exclude %{gem_instdir}/spec
 
 %changelog
+* Wed Dec 11 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.0.3-3
+- Move README to main package
+- Remove Gemfile, Rakefile and dot files during %%prep
+- Exclude rspec tests from binary packages
+
 * Wed Dec 11 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.0.3-2
 - Wrap %%description at 80 characters (RHBZ #1017994)
 


More information about the scm-commits mailing list