%define name hal-rootstrap %define devel_name hal-rootstrap-devel Name: hal-rootstrap Summary: Package for rootstrap of hal Version: 0.1.0 Release: 1 #Group: License: Apache-2.0 Source0: %{name}-%{version}.tar.gz AutoReqProv: no BuildRequires: cmake BuildRequires: xmlstarlet BuildRequires: python3 #BuildRequires: hal-rootstrap-data-common ### hal-rootstrap %description Package for rootstrap of hal ### hal-rootstrap-devel %package -n %{devel_name} Summary: %{name} interface Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description -n %{devel_name} %{name} Interface for product vendor developer %prep %setup -q %cmake . -DCMAKE_LIBDIR_PREFIX=%{_libdir} %build make %{?jobs:-j%jobs} %install rm -rf %{buildroot} mkdir %{buildroot} mkdir -p %{buildroot}%{_libdir}/pkgconfig/ cp packaging/hal-rootstrap.pc %{buildroot}%{_libdir}/pkgconfig/ %files -n %{devel_name} %defattr(-,root,root,-) %{_libdir}/pkgconfig/hal-rootstrap.pc