[libdmtx] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Vít Ondruch
vondruch at fedoraproject.org
Tue Mar 19 13:30:18 UTC 2013
commit 7e1884462d0b4bbb66ecf827fc76da1516ddf265
Author: Vít Ondruch <vondruch at redhat.com>
Date: Tue Mar 19 13:34:11 2013 +0100
Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
libdmtx.spec | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/libdmtx.spec b/libdmtx.spec
index 21dccbf..5d09f45 100644
--- a/libdmtx.spec
+++ b/libdmtx.spec
@@ -1,10 +1,9 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
Name: libdmtx
Version: 0.7.2
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Library for working with Data Matrix 2D bar-codes
Group: System Environment/Libraries
@@ -125,7 +124,7 @@ chmod 0755 build/lib.*/*.so
popd
pushd ruby
-ruby extconf.rb
+ruby extconf.rb --vendor
make CPPFLAGS="-I/tmp%{_includedir}" LIBPATH="-L/tmp%{_libdir} -ldmtx"
popd
@@ -150,7 +149,9 @@ python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
pushd ruby
-make install DESTDIR=$RPM_BUILD_ROOT
+# ruby_headers= used as a workaround:
+# https://bugzilla.redhat.com/show_bug.cgi?id=921650
+make install DESTDIR=$RPM_BUILD_ROOT ruby_headers=
popd
#pushd java
@@ -208,10 +209,13 @@ rm -rf $RPM_BUILD_ROOT
%files -n ruby-libdmtx
%defattr(-,root,root,-)
%doc wrapper/ruby/README
-%{ruby_sitearch}/*.so
+%{ruby_vendorarchdir}/*.so
%changelog
+* Tue Mar 19 2013 Vít Ondruch <vondruch at redhat.com> - 0.7.2-10
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list