Update to 1.2.5 (bz#902240)

This commit is contained in:
Vít Ondruch 2014-07-01 10:36:30 +02:00
parent 2dc27197ba
commit 6082e09aac
3 changed files with 13 additions and 23 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
diff-lcs-1.1.2.gem
/diff-lcs-1.1.3.gem
/diff-lcs-1.2.5.gem

View File

@ -2,28 +2,25 @@
# %%check section needs rspec-expectations, however rspec-expectations depends
# on diff-lcs.
%{!?need_bootstrap: %global need_bootstrap 1}
%{!?need_bootstrap: %global need_bootstrap 0}
Summary: Provide a list of changes between two sequenced collections
Name: rubygem-%{gem_name}
Version: 1.1.3
Release: 5%{?dist}
Version: 1.2.5
Release: 1%{?dist}
Group: Development/Languages
#lib/diff/lcs.rb is Artistic or Ruby or BSD
#lib/diff/lcs/*.rb is GPLv2+ or Artistic or Ruby or BSD
#License.rdoc states GPLv2+ or Artistic or MIT
License: (GPLv2+ or Artistic or MIT) and (GPLv2+ or Artistic or Ruby or BSD) and (Artistic or Ruby or BSD)
URL: http://rubyforge.org/projects/ruwiki/
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(release)
Requires: rubygems
URL: https://github.com/halostatue/diff-lcs
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
%if 0%{?need_bootstrap} < 1
BuildRequires: rubygem(rspec)
%endif
BuildRequires: ruby(release)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
Diff::LCS is a port of Algorithm::Diff that uses the McIlroy-Hunt longest
@ -58,19 +55,6 @@ cp -a .%{_bindir}/* %{buildroot}/%{_bindir}
find %{buildroot}%{gem_instdir}/bin -type f |xargs chmod a+x
# Remove the bad shebangs.
# https://github.com/halostatue/diff-lcs/pull/9
# We strip bad shebangs (/usr/bin/env) instead of fixing them
# since these files are not executable anyways
find %{buildroot}%{gem_dir} \( -name '*.rb' -o -name 'Rakefile' \) \
-exec grep -q '^#!' '{}' \; -print |while read F
do
awk '/^#!/ {if (FNR == 1) next;} {print}' $F >chopped
touch -r $F chopped
mv chopped $F
done
# Fix shebangs.
sed -i 's|^#!.*|#!/usr/bin/ruby|' %{buildroot}%{gem_instdir}/bin/{htmldiff,ldiff}
@ -95,15 +79,20 @@ popd
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/Contributing.rdoc
%doc %{gem_instdir}/History.rdoc
%doc %{gem_instdir}/Manifest.txt
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/diff-lcs.gemspec
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/autotest
%{gem_instdir}/spec
%changelog
* Tue Jul 01 2014 Julian Dunn <jdunn@aquezada.com> - 1.2.5-1
- Update to 1.2.5 (bz#902240)
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

View File

@ -1 +1 @@
86595b4618756d1dceac28e6104e285f diff-lcs-1.1.3.gem
7172cb271324fa944d9fbea5fe1f7344 diff-lcs-1.2.5.gem