summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn <mtasaka@fedoraproject.org>2014-12-26 13:01:39 +0900
committerJohn <mtasaka@fedoraproject.org>2014-12-26 13:01:39 +0900
commitee6389189246a521f4aec72591bf5b117a2360c4 (patch)
tree2d2332eec469a218aec80ce189c4bc491d7135cb
parent06cb5b7d2abddbcd6228b6f1cdab8bed33ece652 (diff)
downloadrubygem-rugged-ee6389189246a521f4aec72591bf5b117a2360c4.zip
rubygem-rugged-ee6389189246a521f4aec72591bf5b117a2360c4.tar.gz
rubygem-rugged-ee6389189246a521f4aec72591bf5b117a2360c4.tar.xz
Install gem.build_complete on F-21 and move extension file to the
correct location (bug 1176450)
-rw-r--r--rubygem-rugged.spec9
1 files changed, 9 insertions, 0 deletions
diff --git a/rubygem-rugged.spec b/rubygem-rugged.spec
index dc95a34..a17dfc8 100644
--- a/rubygem-rugged.spec
+++ b/rubygem-rugged.spec
@@ -66,8 +66,13 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
# move C extensions to the extdir.
+%if 0%{?fedora} >= 21
+mkdir -p %{buildroot}%{gem_extdir_mri}/
+cp -a .%{gem_extdir_mri}/{gem.build_complete,%{gem_name}/} %{buildroot}%{gem_extdir_mri}/
+%else
mkdir -p %{buildroot}%{gem_extdir_mri}/ext/%{gem_name}/
mv %{buildroot}%{gem_instdir}/ext/%{gem_name}/rugged.so %{buildroot}%{gem_extdir_mri}/ext/%{gem_name}/
+%endif
# We don't need those files anymore.
rm -rf %{buildroot}%{gem_instdir}/ext/
@@ -94,6 +99,10 @@ popd
%doc %{gem_docdir}
%changelog
+* Fri Dec 26 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.21.0-2
+- Install gem.build_complete on F-21 and move extension file to the
+ correct location (bug 1176450)
+
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild