summaryrefslogtreecommitdiff
path: root/packaging/system-plugin-mount.spec
blob: 55c9056a8e76e88db5a0730a1d3fa9105b8adb33 (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
Name:       system-plugin-mount
Summary:    system-plugin for Clean SDK
Version:    0.0.1
License:    Apache-2.0
Group: System/Base
Release: 62
ExclusiveArch: %arm
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(libudev)
Requires: udev

%description
Startup files

%prep
%setup -q

%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DSYSCONFDIR=%{_sysconfdir}
make %{?_smp_mflags}

%install
%make_install

cp -a etc usr bin %{buildroot}

mkdir -p %{buildroot}/usr/share/license
cp -f LICENSE %{buildroot}/usr/share/license/%{name}

#resize2fs service file for systemd
install -m0755 -d %{buildroot}%{_unitdir}/local-fs.target.wants
ln -s ../resize2fs-root.service %{buildroot}%{_unitdir}/local-fs.target.wants/resize2fs-root.service

%files
/bin/with-dev-root-do
/etc/fta_version.txt
/etc/mtools.conf
/usr/bin/save_blenv
/bin/check-booting-mode.sh
/usr/share/license/%{name}
%{_unitdir}/resize2fs-root.service
%{_unitdir}/local-fs.target.wants/resize2fs-root.service