On 29.06.2013 22:17, Lukasz Glebicki wrote:
kernel-video-nvidia package requires kernel-drm to load nvidia module.
In the other hand this driver on kernel-longterm works without drm. How to fix
it a SPEC or in macros?
you can't fix it in macros, because that drm dependency is package
dependant!
so, how i see it:
first you need macros, that have fixed -n option for the %kernel_releq
macros [1]:
BuildRequires: rpmbuild(macros) >= 1.664
second, you need to put to subpackage appropriate "-drm" dependency [2]:
512
<http://git.pld-linux.org/?p=packages/VirtualBox.git;a=blob;f=VirtualBox.spec;h=ab8f58becdfaa010b1dc7784bfe08867083f3758;hb=0ccbe8d9c4e6f64debb5f80e79db89c2fc422791#l512>%requires_releq_kernel -n drm
and third, you can add versioned check:
%if %{ kernel_version}" > "3.4"
%requires_releq_kernel -n drm
%endif
i hope rpm can compare two vs three dot versions, if not, we need new
macro which consists only MAJOR.MINOR of kernel version
[1]
http://git.pld-linux.org/?p=packages/rpm-build-macros.git;a=commitdiff;h=c1cc636b19315a8c8244051990167c215cb684eb
[2]
http://git.pld-linux.org/?p=packages/VirtualBox.git;a=blob;f=VirtualBox.spec;h=ab8f58becdfaa010b1dc7784bfe08867083f3758;hb=0ccbe8d9c4e6f64debb5f80e79db89c2fc422791#l512
--
glen
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en