diff options
Diffstat (limited to 'packaging/system-plugin-slp.spec')
-rwxr-xr-x | packaging/system-plugin-slp.spec | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/packaging/system-plugin-slp.spec b/packaging/system-plugin-slp.spec new file mode 100755 index 0000000..f9f03dd --- /dev/null +++ b/packaging/system-plugin-slp.spec @@ -0,0 +1,62 @@ +Name: system-plugin-slp +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: perl +BuildRequires: pkgconfig(libudev) +Requires: udev +Requires: sysvinit + +%description +Startup files + +%prep +%setup -q + +%build +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DSYSCONFDIR=%{_sysconfdir} +make %{?_smp_mflags} +./mount-generator.pl etc/fstab usr/lib/systemd/system + +%install +%make_install + +cp -a etc usr bin %{buildroot} + +mkdir -p %{buildroot}/usr/lib/systemd/system/local-fs.target.wants +for mount in usr/lib/systemd/system/*.mount; do + if grep -q '^Options[[:space:]]*=.*noauto' $mount; then continue; fi + m=$(basename $mount) + ln -s ../$m %{buildroot}/usr/lib/systemd/system/local-fs.target.wants/$m +done +mkdir -p %{buildroot}/%{_libdir}/systemd/system/local-fs.target.wants +ln -s ../resize2fs-root.service %{buildroot}/%{_libdir}/systemd/system/local-fs.target.wants + +mkdir -p %{buildroot}/lib/modules + +mkdir -p %{buildroot}/usr/share/license +cp -f LICENSE %{buildroot}/usr/share/license/%{name} + +%files +/bin/with-dev-root-do +/etc/fstab +/etc/fta_version.txt +/etc/inittab +/etc/mtools.conf +/etc/rc.d/rc.firstboot +/etc/rc.d/rc.shutdown +/etc/rc.d/rc.sysinit +/usr/bin/save_blenv +/bin/check-booting-mode.sh +/usr/lib/systemd/system/resize2fs-root.service +/usr/lib/systemd/system/resize2fs@.service +/usr/lib/systemd/system/*.mount +/usr/lib/systemd/system/local-fs.target.wants/*.mount +/usr/lib/systemd/system/local-fs.target.wants/resize2fs-root.service +/lib/modules +/usr/share/license/%{name} |