blob: 7c7c3207ed3742ff8409b56b00792702b43173ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
Name: device-manager-plugin-sc7730
Summary: Device manager plugin sc7730
Version: 0.0.1
Release: 0
Group: System/Hardware Adaptation
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(hwcommon)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libudev)
%description
Device manager plugin sc7730
%prep
%setup -q
cp %{SOURCE1} .
%build
%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
install -m 644 rules/61-video.rules %{buildroot}%{_prefix}/lib/udev/rules.d
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/hw/*.so
%manifest %{name}.manifest
%license LICENSE.Apache-2.0
%{_prefix}/lib/udev/rules.d/61-video.rules
|