|
|
|
@ -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@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
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|