Simplify hal-rootstrap for testing sandbox/sykwak/simple_rootstrap
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 16 Oct 2024 05:54:05 +0000 (14:54 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Wed, 16 Oct 2024 06:11:22 +0000 (15:11 +0900)
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/hal-rootstrap.spec

index 4becef8bedd20cb0260c6572fcaab6be6a83a365..dc3ddc8ff40ae7fbfbb32256310409ce4d0e6939 100644 (file)
@@ -1,10 +1,5 @@
 %define name                           hal-rootstrap
 %define devel_name                     hal-rootstrap-devel
-%define hal_rootstrap_install_path     /opt/data/hal-rootstrap/common
-
-%define headed_name                            hal-rootstrap-headed
-%define headed_devel_name                      hal-rootstrap-headed-devel
-%define hal_rootstrap_headed_install_path      /opt/data/hal-rootstrap/headed
 
 Name:          hal-rootstrap
 Summary:       Package for rootstrap of hal
@@ -19,7 +14,7 @@ BuildRequires:        cmake
 BuildRequires: xmlstarlet
 BuildRequires: python3
 
-BuildRequires: hal-rootstrap-data-common
+#BuildRequires:        hal-rootstrap-data-common
 
 ### hal-rootstrap
 %description
@@ -34,23 +29,6 @@ Requires:    %{name} = %{version}-%{release}
 %description -n        %{devel_name}
 %{name} Interface for product vendor developer
 
-### hal-rootstrap-headed
-%package -n    %{headed_name}
-Summary:       Package for rootstrap of hal, for headed image
-AutoReqProv:   no
-
-%description -n        %{headed_name}
-Package for rootstrap of hal, for headed image
-
-### hal-rootstrap-headed-devel
-%package -n    %{headed_devel_name}
-Summary:       %{headed_name} interface
-Group:         Development/Libraries
-Requires:      %{headed_name} = %{version}-%{release}
-
-%description -n        %{headed_devel_name}
-${headed_name} Interface for product vendor developer
-
 %prep
 %setup -q
 %cmake . -DCMAKE_LIBDIR_PREFIX=%{_libdir}
@@ -62,33 +40,8 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 mkdir %{buildroot}
 mkdir -p %{buildroot}%{_libdir}/pkgconfig/
-
-# hal-rootstrap
-./generate_rootstrap.sh "%{_arch}" "common" "%{buildroot}%{hal_rootstrap_install_path}"
 cp packaging/hal-rootstrap.pc %{buildroot}%{_libdir}/pkgconfig/
-./modify_pc.py "%{buildroot}%{_libdir}/pkgconfig/hal-rootstrap.pc" "%{buildroot}%{hal_rootstrap_install_path}/%{_libdir}/pkgconfig"
-rm -f "%{buildroot}%{hal_rootstrap_install_path}/%{_libdir}/pkgconfig/*.pc"
-
-# hal-rootstrap-headed
-./generate_rootstrap.sh "%{_arch}" "headed" "%{buildroot}%{hal_rootstrap_headed_install_path}"
-cp packaging/hal-rootstrap-headed.pc %{buildroot}%{_libdir}/pkgconfig/
-./modify_pc.py "%{buildroot}%{_libdir}/pkgconfig/hal-rootstrap-headed.pc" "%{buildroot}%{hal_rootstrap_headed_install_path}/%{_libdir}/pkgconfig"
-rm -f "%{buildroot}%{hal_rootstrap_headed_install_path}/%{_libdir}/pkgconfig/*.pc"
-
-%files
-%{hal_rootstrap_install_path}
-%exclude %dir %{hal_rootstrap_install_path}/%{_includedir}
 
 %files -n %{devel_name}
 %defattr(-,root,root,-)
-%{hal_rootstrap_install_path}/%{_includedir}
 %{_libdir}/pkgconfig/hal-rootstrap.pc
-
-%files -n %{headed_name}
-%{hal_rootstrap_headed_install_path}
-%exclude %dir %{hal_rootstrap_headed_install_path}/%{_includedir}
-
-%files -n %{headed_devel_name}
-%defattr(-,root,root,-)
-%{hal_rootstrap_headed_install_path}/%{_includedir}
-%{_libdir}/pkgconfig/hal-rootstrap-headed.pc