From f9a8a0baa3c1cf04164587050f07ffcff0c89635 Mon Sep 17 00:00:00 2001 From: Ilya Gradina Date: Sep 27 2015 16:00:59 +0000 Subject: Initial import rubygem-diffy --- diff --git a/.gitignore b/.gitignore index e69de29..59c4155 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/diffy-3.0.7.gem diff --git a/rubygem-diffy.spec b/rubygem-diffy.spec new file mode 100644 index 0000000..cf5dabf --- /dev/null +++ b/rubygem-diffy.spec @@ -0,0 +1,88 @@ +%global gem_name diffy + +Name: rubygem-%{gem_name} +Version: 3.0.7 +Release: 4%{?dist} +Summary: A convenient way to diff string in ruby +License: MIT +URL: http://github.com/samg/diffy +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: rubygem(rspec) +BuildArch: noarch + +%description +It provides a convenient way to generate a diff from two strings or files. +Instead of reimplementing the LCS diff algorithm Diffy uses battle tested Unix +diff to generate diffs, and focuses on providing a convenient interface, +and getting out of your way. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +# Create the gem as gem install only works on a gem file +gem build %{gem_name}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +#cleanup +rm -f %{buildroot}%{gem_instdir}/diffy.gemspec + +%check +pushd .%{gem_instdir} + rspec -Ilib spec +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG +%doc %{gem_instdir}/CONTRIBUTORS +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/spec + + +%changelog +* Wed Jul 22 2015 Ilya Gradina - 3.0.7-4 +- changed description + +* Tue Jul 21 2015 Ilya Gradina - 3.0.7-3 +- execute the test suite in .%%{gem_instdir} +- exclude %%{gem_instdir} + +* Mon Jul 20 2015 Ilya Gradina - 3.0.7-2 +- add execution test suite +- exclude hidden files + +* Sun Jul 19 2015 Ilya Gradina - 3.0.7-1 +- Initial package diff --git a/sources b/sources index e69de29..8069e35 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5a795681f17bac958483b75c26e9d406 diffy-3.0.7.gem