summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorwchang kim <wchang.kim@samsung.com>2016-07-28 11:19:09 +0900
committerwchang kim <wchang.kim@samsung.com>2016-07-29 16:32:41 +0900
commit9c46953a0ed423efff156557e93448736d75ea8d (patch)
treee1da82ea87bf8948f14da85f1d666b67ed45f4a0 /packaging
parent146ddab6213428a7b2865d10311525a1f549957c (diff)
downloadsystem-plugin-9c46953a0ed423efff156557e93448736d75ea8d.tar.gz
system-plugin-9c46953a0ed423efff156557e93448736d75ea8d.tar.bz2
system-plugin-9c46953a0ed423efff156557e93448736d75ea8d.zip
Description : Adding new package of liblazymount and build enviroment for autotools
Adding new pacakge for lazy mount feature. It has the library and path activator service for mounting user patition(/opt/usr). Adding the build environment for autotools. This change need the change of BuildArch for system-plugin. system-plugin-<version>.noarch.rpm --> system-plugin-<version>.<arch>.rpm Change-Id: I107e7610659fcbbcda7b8b27abb645251c069296 Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/liblazymount.manifest5
-rw-r--r--packaging/system-plugin.spec73
2 files changed, 75 insertions, 3 deletions
diff --git a/packaging/liblazymount.manifest b/packaging/liblazymount.manifest
new file mode 100644
index 0000000..2a0cec5
--- /dev/null
+++ b/packaging/liblazymount.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index a25d544..819c023 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -1,16 +1,19 @@
-%define debug_package %{nil}
+#%define _unpackaged_files_terminate_build 0
+#%define debug_package %{nil}
Name: system-plugin
Summary: Target specific system configuration files
Version: 0.1
Release: 1
-Group: System/Configuration
-BuildArch: noarch
+Group: Base/Startup
License: Apache-2.0
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.manifest
+Source2: liblazymount.manifest
Requires(post): /usr/bin/systemctl
+Requires(post): /usr/bin/vconftool
+BuildRequires: pkgconfig(vconf)
%description
This package provides target specific system configuration files.
@@ -19,6 +22,7 @@ This package provides target specific system configuration files.
Summary: U3/XU3 specific system configuration files
Requires: %{name} = %{version}-%{release}
Requires: %{name}-exynos = %{version}-%{release}
+BuildArch: noarch
%description u3
This package provides U3/XU3 specific system configuration files.
@@ -27,6 +31,7 @@ This package provides U3/XU3 specific system configuration files.
Summary: Note4 specific system configuration files
Requires: %{name} = %{version}-%{release}
Requires: %{name}-exynos = %{version}-%{release}
+BuildArch: noarch
%description n4
This package provides Note4 specific system configuration files.
@@ -34,6 +39,7 @@ This package provides Note4 specific system configuration files.
%package exynos
Summary: Exynos specific system configuration files
Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
%description exynos
This package provides Exynos specific system configuration files.
@@ -41,6 +47,7 @@ This package provides Exynos specific system configuration files.
%package spreadtrum
Summary: Spreadtrum specific system configuration files
Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
%description spreadtrum
This package provides Spreadtrum specific system configuration files.
@@ -48,17 +55,50 @@ This package provides Spreadtrum specific system configuration files.
%package circle
Summary: Circle specific system configuration files
Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
%description circle
This package provides Circle specific system configuration files.
+%package -n liblazymount
+Summary: Library for lazy mount feature
+License: Apache-2.0
+Requires: vconf
+Requires: liblazymount = %{version}
+
+
+%description -n liblazymount
+Library for lazy mount feature. It supports some interface functions.
+
+%package -n liblazymount-devel
+Summary: Development library for lazy mount feature
+License: Apache-2.0
+Requires: vconf
+Requires: liblazymount = %{version}
+
+%description -n liblazymount-devel
+Development library for lazy mount feature.It supports some interface functions.
+
%prep
%setup -q
%build
cp %{SOURCE1} .
+cp %{SOURCE2} .
+
+./autogen.sh
+%reconfigure \
+ --disable-static \
+ --prefix=%{_prefix} \
+ --disable-debug-mode \
+ --disable-eng-mode
+
+%__make %{?jobs:-j%jobs}
%install
+rm -rf %{buildroot}
+%make_install
+
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}/csa
mkdir -p %{buildroot}/initrd
@@ -103,9 +143,19 @@ install -m 644 units/tizen-fstrim-user.service %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_bindir}
install -m 755 scripts/tizen-fstrim-on-charge.sh %{buildroot}%{_bindir}
+%clean
+rm -rf %{buildroot}
+
%post
systemctl daemon-reload
+%post -n liblazymount
+/sbin/ldconfig
+/usr/bin/vconftool set -f -t int db/system/lazy_mount_show_ui 1
+systemctl daemon-reload
+
+%postun -n liblazymount -p /sbin/ldconfig
+
%files
%manifest %{name}.manifest
%license LICENSE.Apache-2.0
@@ -173,3 +223,20 @@ mv %{_sysconfdir}/fstab_initrd %{_sysconfdir}/fstab
%{_unitdir}/tizen-fstrim-user.timer
%{_unitdir}/tizen-fstrim-user.service
%{_bindir}/tizen-fstrim-on-charge.sh
+
+%files -n liblazymount
+%defattr(-,root,root,-)
+%{_libdir}/liblazymount.so.*
+%manifest liblazymount.manifest
+%{_unitdir}/basic.target.wants/lazy_mount.path
+%{_unitdir}/lazy_mount.path
+%{_unitdir}/lazy_mount.service
+
+%files -n liblazymount-devel
+%defattr(-,root,root,-)
+%manifest liblazymount.manifest
+%{_libdir}/liblazymount.so
+%{_includedir}/lazymount/lazy_mount.h
+%{_libdir}/pkgconfig/liblazymount.pc
+%{_bindir}/test_lazymount
+