]> git.pld-linux.org Git - packages/nvidiabl.git/commitdiff
new, version 0.81 auto/th/nvidiabl-0.81-1
authorElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 18:41:40 +0000 (20:41 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 17 Feb 2013 18:41:40 +0000 (20:41 +0200)
nvidiabl.spec [new file with mode: 0644]

diff --git a/nvidiabl.spec b/nvidiabl.spec
new file mode 100644 (file)
index 0000000..e161e69
--- /dev/null
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_without dist_kernel     # allow non-distribution kernel
+%bcond_with    verbose         # verbose build (V=1)
+
+# nothing to be placed to debuginfo package
+%define                _enable_debug_packages  0
+
+%define                rel     1
+Summary:       Linux driver for nVidia display back-lights
+Name:          nvidiabl
+Version:       0.81
+Release:       %{rel}
+License:       GPL v2+
+URL:           https://github.com/guillaumezin/nvidiabl
+Source0:       https://github.com/guillaumezin/nvidiabl/archive/v%{version}.tar.gz?/%{name}-%{version}.tgz
+# Source0-md5: f72d90c0fe34b36a0ff3b6d7034e99c4
+Group:         Base/Kernel
+%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires: rpmbuild(macros) >= 1.379
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This driver drives the smartdimmer register found on modern mobile
+nVidia graphics adapters such as NV40, NV41, NV43, NV44, NV46, NV47,
+NV49, NV4B, C51, G84, G86, G92, G94, G96, GT200 architectures to
+adjust the display backlight.
+
+On Apple machines this driver allows more fine-grained brightness
+adjustment than the (mbp_nvidia_bl) driver and is generally preferred.
+
+%package -n kernel%{_alt_kernel}-video-nvidiabl
+Summary:       Linux driver for nVidia display back-lights
+Summary(pl.UTF-8):     Sterownik dla Linuksa do nvidiabl
+Release:       %{rel}@%{_kernel_ver_str}
+Group:         Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):      %releq_kernel
+%endif
+
+%description -n kernel%{_alt_kernel}-video-nvidiabl
+This driver drives the smartdimmer register found on modern mobile
+nVidia graphics adapters such as NV40, NV41, NV43, NV44, NV46, NV47,
+NV49, NV4B, C51, G84, G86, G92, G94, G96, GT200 architectures to
+adjust the display backlight.
+
+On Apple machines this driver allows more fine-grained brightness
+adjustment than the (mbp_nvidia_bl) driver and is generally preferred.
+
+%description -n kernel%{_alt_kernel}-video-nvidiabl -l pl.UTF-8
+Sterownik dla Linuksa do nvidiabl.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%prep
+%setup -qn %{name}-%{version}
+
+%build
+%build_kernel_modules -m nvidiabl
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%install_kernel_modules -m nvidiabl -d misc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -n kernel%{_alt_kernel}-video-nvidiabl
+%depmod %{_kernel_ver}
+
+%postun        -n kernel%{_alt_kernel}-video-nvidiabl
+%depmod %{_kernel_ver}
+
+%files -n kernel%{_alt_kernel}-video-nvidiabl
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
This page took 0.123067 seconds and 4 git commands to generate.