Vít Ondruch 12 years ago
parent 474971a689
commit 7e1884462d

@ -1,10 +1,9 @@
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?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 Name: libdmtx
Version: 0.7.2 Version: 0.7.2
Release: 9%{?dist} Release: 10%{?dist}
Summary: Library for working with Data Matrix 2D bar-codes Summary: Library for working with Data Matrix 2D bar-codes
Group: System Environment/Libraries Group: System Environment/Libraries
@ -125,7 +124,7 @@ chmod 0755 build/lib.*/*.so
popd popd
pushd ruby pushd ruby
ruby extconf.rb ruby extconf.rb --vendor
make CPPFLAGS="-I/tmp%{_includedir}" LIBPATH="-L/tmp%{_libdir} -ldmtx" make CPPFLAGS="-I/tmp%{_includedir}" LIBPATH="-L/tmp%{_libdir} -ldmtx"
popd popd
@ -150,7 +149,9 @@ python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd popd
pushd ruby 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 popd
#pushd java #pushd java
@ -208,10 +209,13 @@ rm -rf $RPM_BUILD_ROOT
%files -n ruby-libdmtx %files -n ruby-libdmtx
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc wrapper/ruby/README %doc wrapper/ruby/README
%{ruby_sitearch}/*.so %{ruby_vendorarchdir}/*.so
%changelog %changelog
* Tue Mar 19 2013 Vít Ondruch <vondruch@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@lists.fedoraproject.org> - 0.7.2-9 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save