diff --git a/rubygem-rugged.spec b/rubygem-rugged.spec index bc8efac..98f80de 100644 --- a/rubygem-rugged.spec +++ b/rubygem-rugged.spec @@ -1,16 +1,13 @@ %global gem_name rugged -%global commit 233da19f48217082a018c9b89c1ade02a2d0cd51 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) Summary: Rugged is a Ruby binding to the libgit2 library Name: rubygem-%{gem_name} -Version: 0.23.0 -Release: 0.20150733git%{shortcommit}%{?dist} +Version: 0.23.3 +Release: 1%{?dist} Group: Development/Languages License: MIT URL: https://github.com/libgit2/rugged -#Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem -Source0: https://github.com/libgit2/rugged/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # The test directory for this version is incomplete due to gemspec bug. # Upstream has removed test and Rakefile from gem in future versions. # https://github.com/libgit2/rugged/issues/262 @@ -18,9 +15,9 @@ Source0: https://github.com/libgit2/rugged/archive/%{commit}.tar.gz#/%{nam # This is how we are getting the tests (Source1) # git clone git://github.com/libgit2/rugged.git # cd rugged/ -# git checkout v0.22.2 -# tar cfz rugged-0.22.2-test.tgz test/ Rakefile -#Source1: %{gem_name}-%{version}-test.tgz +# git checkout v0.23.3 +# tar cfz rugged-0.23.3-test.tgz test/ Rakefile +Source1: %{gem_name}-%{version}-test.tgz Requires: ruby(rubygems) Requires: ruby BuildRequires: ruby @@ -48,10 +45,11 @@ BuildArch: noarch Documentation for %{name} %prep -#gem unpack %{SOURCE0} -%autosetup -n rugged-%{commit} +gem unpack %{SOURCE0} -#gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec rm -rf vendor # Remove the bundled libraries from gemspec @@ -86,7 +84,7 @@ rm -rf %{buildroot}%{gem_instdir}/ext/ %check pushd .%{gem_instdir} -# tar xfz %{SOURCE1} +tar xfz %{SOURCE1} export LANG="en_US.UTF-8" git config --global user.name John Doe # Comment out the test until we get the minitest/autorun figured out @@ -106,6 +104,9 @@ popd %doc %{gem_docdir} %changelog +* Thu Feb 18 2016 Jiri Popelka - 0.23.3-1 +- Update to version 0.23.3 + * Thu Feb 04 2016 Fedora Release Engineering - 0.23.0-0.20150733git233da19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild