Policies/Java/JPackage/Macros

From Mandriva Community Wiki

Jump to: navigation, search

Contents

[edit] %remove_java_binaries

find -name \*.jar|xargs rm -f

[edit] %create_jar_links

%create_jar_links() pushd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done popd

[edit] %aot_compile_rpm_bin

%aot_compile_rpm_bin %{_bindir}/aot-compile-rpm

[edit] %gcj_compile

%if %{gcj_support} /usr/bin/aot-compile-rpm %endif


[edit] %update_gcjdb

if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi

[edit] %clean_gcjdb

if [ -x /usr/bin/rebuild-gcj-db ]; then /usr/bin/rebuild-gcj-db || true ; fi

[edit] %gcj_files

%if %{gcj_support} %defattr(755,root,root,755) %dir %{_libdir}/gcj/%{name} %attr(-,root,root) %{_libdir}/gcj/%{name}/* %endif

Personal tools