[fedora-java] still newbie, #2: rpmbuild & deps madness.

gil puntogil at libero.it
Sun Feb 22 11:09:02 UTC 2015


Il 22/02/2015 11:58, Alec Leamas ha scritto:
> Greetings, gurus!
>
>
> So, I have have successfully built two dependencies (thanks for all 
> help!), and now going for the third which requires the the first two. 
> The build is OK, but rpmbuild crashes with a simple message:
>
> Exception: Following dependencies were not resolved and requires 
> cannot be generated. Either remove the dependency from pom.xml or add 
> proper packages to BuildRequires:
> com.hifiremote:DecodeIrCaller:1314 required by org.harctoolbox:IrpMaster
>
> But, things are not simple (?):
>
> $ rpm -q --whatprovides 'mvn(com.hifiremote:DecodeIrCaller)'
> DecodeIrCaller-0.1.1-1.fc21.noarch
>
> I. e., rpmbuild does not find the installed maven-generated package 
> DecodeIrCaller even though it provides the proper things(?) The 
> package looks OK to my silly eyes:
>
> $ rpm -ql DecodeIrCaller
> /usr/share/java/DecodeIrCaller.jar
> /usr/share/maven-metadata/DecodeIrCaller.xml
> /usr/share/maven-poms/DecodeIrCaller
> /usr/share/maven-poms/DecodeIrCaller/DecodeIrCaller.pom
>
> Spec of built package: http://paste.fedoraproject.org/188869/60250414
> Spec of DecodeIrCaller: http://ur1.ca/js0d7
>
>
> Any hint?
>
remove this in DecodeIrCaller.spec
mv %{buildroot}/usr/lib/java/%{name} %{buildroot}%{_javadir}
jni should live and stay in _jnidir aka /usr/lib/java
read:
http://fedoraproject.org/wiki/Packaging:Java
http://fedoraproject.org/wiki/Packaging:Java#Packaging_JAR_files_that_use_JNI
regards
>
> Thanks,
> --alec
>
>
>
>
>
>
> -- 
> java-devel mailing list
> java-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel



More information about the java-devel mailing list