]> git.pld-linux.org Git - packages/acpi_call.git/commitdiff
package sample scripts
authorJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 23:17:38 +0000 (00:17 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 28 Dec 2019 23:18:02 +0000 (00:18 +0100)
acpi_call.spec

index 454aa35b5399e58fb90ec7500eb51e13e6a544fa..1e3986aefd2a488f01a8c581866e694921abf28c 100644 (file)
@@ -28,6 +28,16 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 A linux kernel module that enables calls to ACPI methods through
 /proc/acpi/call.
 
+%package -n %{pname}-scripts
+Summary:       This package contains sample scripts for acpi_call kernel module
+Group:         Applications/System
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description -n %{pname}-scripts
+This package contains sample scripts for acpi_call kernel module.
+
 %define        kernel_pkg()\
 %package -n kernel%{_alt_kernel}-misc-acpi_call\
 Summary:       A linux kernel module that enables calls to ACPI methods through /proc/acpi/call\
@@ -69,10 +79,20 @@ A linux kernel module that enables calls to ACPI methods through\
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with kernel}
 install -d $RPM_BUILD_ROOT
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_datadir}/acpi_call
+cp -a examples/* $RPM_BUILD_ROOT%{_datadir}/acpi_call
+%endif
+
+%if %{with kernel}
 cp -a installed/* $RPM_BUILD_ROOT
 %endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
+
+%files -n %{pname}-scripts
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_datadir}/acpi_call/*.sh
This page took 0.069395 seconds and 4 git commands to generate.