diff options
Diffstat (limited to 'packaging/hal-api-radio.spec')
-rw-r--r-- | packaging/hal-api-radio.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/packaging/hal-api-radio.spec b/packaging/hal-api-radio.spec new file mode 100644 index 0000000..240bafe --- /dev/null +++ b/packaging/hal-api-radio.spec @@ -0,0 +1,70 @@ +%define module_name radio +%define name hal-api-radio +%define devel_name hal-api-radio-devel + +### main package ######### +Name: %{name} +Summary: %{name} interface +Version: 0.0.1 +Release: 1 +Group: Development/Libraries +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest +Source2: %{devel_name}.manifest + +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: cmake +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(hal-api-common) + +%description +%{name} interface + +### devel package ######### +%package -n %{devel_name} +Summary: %{name} interface +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description -n %{devel_name} +%{name} Interface for product vendor developer + +### build and install ######### +%prep +%setup -q + +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_LIBDIR_PREFIX=%{_libdir} + +%build +cp %{SOURCE1} . +cp %{SOURCE2} . +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%clean +rm -rf %{buildroot} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +### contain files to package ######### +%files -n %{name} +%manifest %{name}.manifest +%license LICENSE +%defattr(-,root,root,-) +%{_libdir}/hal/*.so.* + +%files -n %{devel_name} +%defattr(-,root,root,-) +%manifest %{devel_name}.manifest +%{_includedir}/hal/*.h +%{_libdir}/hal/*.so +%{_libdir}/pkgconfig/%{name}.pc |