From 7e1884462d0b4bbb66ecf827fc76da1516ddf265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 19 Mar 2013 13:34:11 +0100 Subject: [PATCH] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 --- libdmtx.spec | 14 +++++++++----- 1 file 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 - 0.7.2-10 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + * Thu Feb 14 2013 Fedora Release Engineering - 0.7.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild