Update to 1.2.5 (bz#902240)
This commit is contained in:
parent
2dc27197ba
commit
6082e09aac
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
diff-lcs-1.1.2.gem
|
||||
/diff-lcs-1.1.3.gem
|
||||
/diff-lcs-1.2.5.gem
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user