%global git_rev 4099.ee50794 Name: qtjambi Version: 4.8.6 Release: 0.1.%{git_rev}%{?dist} Summary: Java bindings for the Qt C++ toolkit License: GPLv3+ and LGPLv2+ URL: http://qtjambi.org/ # see http://qtjambi.org/posts/qt-jambi-%%{version}-for-linux # git clone git://git.smar.fi/qtjambi-community.git qtjambi # git revert ee507948f4d792dcfec202d62d179e141f80f79c # rm -rf qtjambi/jogl/jogl.jar # rm -rf qtjambi/dist/mac/binpatch # find qtjambi/ -name '*.dll' -delete # find qtjambi/ -name '*.exe' -delete # (cd qtjambi && $(git rev-list --count master).$(git rev-parse --short master)) # tar cJf qtjambi-4.8.6.4099.ee50794.tar.xz qtjambi # https://qt.gitorious.org/qt-jambi/qtjambi5 Source0: %{name}-%{version}.%{git_rev}.tar.xz Patch0: qtjambi-antcontrib_properties.patch Patch1: qtjambi-build_properties.patch Patch2: qtjambi-webkit.patch BuildRequires: ant BuildRequires: ant-contrib BuildRequires: java-devel BuildRequires: javapackages-tools BuildRequires: jogl2 BuildRequires: phonon-devel # TODO ???? # Usable "only" for x86 and x86_64 arch ExcludeArch: %{arm} %description Qt Jambi is a Java binding of the cross-platform application framework Qt. It enables Java developers to use Qt within Java programming language. In addition, Qt Jambi generator can be used to create Java bindings for other Qt libraries and next versions of Qt. # TODO #%%package javadoc #Summary: Javadoc for %%{name} #%%description javadoc #This package contains javadoc for %%{name}. %prep %setup -q -n %{name} %patch0 -p0 %patch1 -p0 %patch2 -p0 # default use jogl 1.x ln -sf %{_libdir}/jogl2/jogl2.jar jogl/jogl.jar sed -i "s|#java.home.target|java.home.target|" build.properties %build # TODO ???? export MAKEOPTS='-j8' ant -Dqtjambi.version.bundle=%{version}.%{git_rev} all qtjambi.source # TODO ???? %install mkdir -p %{buildroot}%{_jnidir}/%{name} install -m 644 qtjambi*.jar %{buildroot}%{_jnidir}/%{name} #install -m 644 qtjambi-%%{version}-src.zip %%{buildroot}%%{_javadir}/ # TODO # maven/pom.xml.in # maven/qtjambi/pom.xml.in # ... # Install qtjambi-jni mkdir -p %{buildroot}%{_libdir}/%{name} install -pm 755 build/platform-output/lib/libcom_trolltech_qt_* \ build/platform-output/lib/libqtjambi.so* \ %{buildroot}%{_libdir}/qtjambi/ # Install qtjambi-designer mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/ install -pm 755 build/platform-output/plugins-designer/designer/*.so %{buildroot}%{_libdir}/qt4/plugins/designer/ %files # -f .mfiles %{_jnidir}/%{name} %{_libdir}/%{name} %{_libdir}/qt4/plugins/designer/*.so %doc ChangeLog %license dist/LICENSE.GPL3 dist/LICENSE.LGPL dist/eclipse/LICENSE.QT_JAMBI_ECLIPSE_INTEGRATION # TODO # see scripts/build_javadoc.sh #%%files javadoc -f .mfiles-javadoc #%%license dist/LICENSE.GPL3 dist/LICENSE.LGPL dist/eclipse/LICENSE.QT_JAMBI_ECLIPSE_INTEGRATION %changelog * Sat Feb 21 2015 gil cattaneo 4.8.6-0.1.4099.ee50794 - initial rpm