[packages/xorg-driver-video-nvidia-legacy-304xx] proper naming for kernel packages

glen glen at pld-linux.org
Wed Sep 11 18:34:55 CEST 2013


commit a4b73fc506be3ac8b76b48652428f38dc47d882d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Sep 11 19:22:23 2013 +0300

    proper naming for kernel packages

 conftest.sh                                |  0
 xinitrc.sh                                 |  0
 xorg-driver-video-nvidia-legacy-304xx.spec | 21 +++++++++++----------
 3 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/xorg-driver-video-nvidia-legacy-304xx.spec b/xorg-driver-video-nvidia-legacy-304xx.spec
index bffa954..80970ae 100644
--- a/xorg-driver-video-nvidia-legacy-304xx.spec
+++ b/xorg-driver-video-nvidia-legacy-304xx.spec
@@ -24,7 +24,8 @@
 %define		no_install_post_check_so 1
 
 %define		rel 3
-%define		pname	xorg-driver-video-nvidia-legacy-304xx
+%define		mname	nvidia-legacy-304xx
+%define		pname	xorg-driver-video-%{mname}
 Summary:	Linux Drivers for nVidia GeForce/Quadro Chips
 Summary(hu.UTF-8):	Linux meghajtók nVidia GeForce/Quadro chipekhez
 Summary(pl.UTF-8):	Sterowniki do kart graficznych nVidia GeForce/Quadro
@@ -179,7 +180,7 @@ Eszközök az nVidia grafikus kártyák beállításához.
 %description progs -l pl.UTF-8
 Narzędzia do zarządzania kartami graficznymi nVidia.
 
-%package -n kernel%{_alt_kernel}-video-nvidia
+%package -n kernel%{_alt_kernel}-%{mname}
 Summary:	nVidia kernel module for nVidia Architecture support
 Summary(de.UTF-8):	Das nVidia-Kern-Modul für die nVidia-Architektur-Unterstützung
 Summary(hu.UTF-8):	nVidia Architektúra támogatás Linux kernelhez.
@@ -198,16 +199,16 @@ Requires:	%{pname} = %{epoch}:%{version}
 Provides:	X11-driver-nvidia(kernel)
 Obsoletes:	XFree86-nvidia-kernel
 
-%description -n kernel%{_alt_kernel}-video-nvidia
+%description -n kernel%{_alt_kernel}-%{mname}
 nVidia Architecture support for Linux kernel.
 
-%description -n kernel%{_alt_kernel}-video-nvidia -l de.UTF-8
+%description -n kernel%{_alt_kernel}-%{mname} -l de.UTF-8
 Die nVidia-Architektur-Unterstützung für den Linux-Kern.
 
-%description -n kernel%{_alt_kernel}-video-nvidia -l hu.UTF-8
+%description -n kernel%{_alt_kernel}-%{mname} -l hu.UTF-8
 nVidia Architektúra támogatás Linux kernelhez.
 
-%description -n kernel%{_alt_kernel}-video-nvidia -l pl.UTF-8
+%description -n kernel%{_alt_kernel}-%{mname} -l pl.UTF-8
 Obsługa architektury nVidia dla jądra Linuksa. Pakiet wymagany przez
 sterownik nVidii dla Xorg/XFree86.
 
@@ -336,17 +337,17 @@ rm -rf $RPM_BUILD_ROOT
 %post
 cat << 'EOF'
 NOTE: You must also install kernel module for this driver to work
-  kernel-video-nvidia-%{version}
+  kernel-%{mname}-%{version}
 
 EOF
 
 %post libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
-%post	-n kernel%{_alt_kernel}-video-nvidia
+%post	-n kernel%{_alt_kernel}-%{mname}
 %depmod %{_kernel_ver}
 
-%postun	-n kernel%{_alt_kernel}-video-nvidia
+%postun	-n kernel%{_alt_kernel}-%{mname}
 %depmod %{_kernel_ver}
 
 %if %{with userspace}
@@ -425,7 +426,7 @@ EOF
 %endif
 
 %if %{with kernel}
-%files -n kernel%{_alt_kernel}-video-nvidia
+%files -n kernel%{_alt_kernel}-%{mname}
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/*.ko*
 %endif
diff --git a/conftest.sh b/conftest.sh
old mode 100644
new mode 100755
diff --git a/xinitrc.sh b/xinitrc.sh
old mode 100644
new mode 100755
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-304xx.git/commitdiff/a4b73fc506be3ac8b76b48652428f38dc47d882d



More information about the pld-cvs-commit mailing list