[rubygem-lockfile] Rebuilt for Ruby 1.9.3.

Vít Ondruch vondruch at fedoraproject.org
Fri Feb 3 08:52:02 UTC 2012


commit 9f6df3b4aa95327cf935e2b6d9f7d5cdcc1be66b
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Feb 3 09:51:58 2012 +0100

    Rebuilt for Ruby 1.9.3.

 license.txt           |    7 +++++
 rubygem-lockfile.spec |   65 +++++++++++++++++++++++++------------------------
 sources               |    1 -
 3 files changed, 40 insertions(+), 33 deletions(-)
---
diff --git a/license.txt b/license.txt
new file mode 100644
index 0000000..62e7ab3
--- /dev/null
+++ b/license.txt
@@ -0,0 +1,7 @@
+for all code found under http://codeforpeople.com/lib/ or at http://rubyforge.org/projects/codeforpeople.com/
+
+same as Ruby's
+
+  http://www.ruby-lang.org/en/LICENSE.txt
+
+unless otherwise noted
diff --git a/rubygem-lockfile.spec b/rubygem-lockfile.spec
index 51524d0..4d92903 100644
--- a/rubygem-lockfile.spec
+++ b/rubygem-lockfile.spec
@@ -1,24 +1,22 @@
 # Generated from lockfile-1.4.3.gem by gem2rpm -*- rpm-spec -*-
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname lockfile
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gem_name lockfile
 
 Summary: Ruby library for creating NFS safe lockfiles
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Version: 1.4.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 Group: Development/Languages
 License: GPLv2 or Ruby
 URL: http://codeforpeople.com/lib/ruby/lockfile/
-Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
 Source1: http://codeforpeople.com/lib/license.txt
 
-Requires: ruby(abi) = 1.8
-Requires: rubygems
+Requires: ruby(abi) = 1.9.1
+Requires: ruby(rubygems)
 BuildRequires: ruby
-BuildRequires: rubygems
+BuildRequires: rubygems-devel
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %package doc
 Summary: Documentation for %{name}
@@ -38,44 +36,47 @@ rlock creates NFS resistant lockfiles
 
 %install
 
-mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
+mkdir -p %{buildroot}%{gem_dir}
+gem install --local --install-dir %{buildroot}%{gem_dir} \
             --force --rdoc %{SOURCE0}
-cp -p %{SOURCE1} %{buildroot}%{geminstdir}
+cp -p %{SOURCE1} %{buildroot}%{gem_instdir}
 
 mkdir -p %{buildroot}/%{_bindir}
-mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}%{gemdir}/bin
-find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
-chmod 755 %{buildroot}%{geminstdir}/samples/lock.sh
-chmod 755 %{buildroot}%{geminstdir}/samples/a.rb
-chmod 755 %{buildroot}%{geminstdir}/bin/*
+mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
+rmdir %{buildroot}%{gem_dir}/bin
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+chmod 755 %{buildroot}%{gem_instdir}/samples/lock.sh
+chmod 755 %{buildroot}%{gem_instdir}/samples/a.rb
+chmod 755 %{buildroot}%{gem_instdir}/bin/*
 
 # Remove unnecessary files
-rm -f %{buildroot}/%{geminstdir}/install.rb
-rm -f %{buildroot}/%{geminstdir}/gemspec.rb
-rm -f %{buildroot}/%{geminstdir}/rlock
+rm -f %{buildroot}/%{gem_instdir}/install.rb
+rm -f %{buildroot}/%{gem_instdir}/gemspec.rb
+rm -f %{buildroot}/%{gem_instdir}/rlock
 
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
+%dir %{gem_instdir}
 %{_bindir}/rlock
 %{_bindir}/rlock-1.4.3
-%doc %{geminstdir}/README
-%doc %{geminstdir}/license.txt
-%{geminstdir}/lib
-%{geminstdir}/bin
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/license.txt
+%{gem_libdir}
+%{gem_instdir}/bin
+%{gem_cache}
+%{gem_spec}
 
 %files doc
 %defattr(-, root, root, -)
-%{gemdir}/doc/%{gemname}-%{version}
-%{geminstdir}/samples
-%{geminstdir}/doc
+%{gem_docdir}
+%{gem_instdir}/samples
+%{gem_instdir}/doc
 
 %changelog
+* Fri Feb 03 2012 Vít Ondruch <vondruch at redhat.com> - 1.4.3-7
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.3-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index 6d46e4c..13c972d 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
 53a63206bbaefb7106db5a74a5adf148  lockfile-1.4.3.gem
-3ebe20d5c96ee1b06bb068128e4aae60  license.txt


More information about the scm-commits mailing list