%define major 0
%define minor 1
-%define patchlevel 18
+%define patchlevel 27
Name: tel-plugin-vmodem
Version: %{major}.%{minor}.%{patchlevel}
Release: 1
-License: Apache
+License: Apache-2.0
Summary: Telephony AT Virtual Modem library
Group: System/Libraries
Source0: tel-plugin-vmodem-%{version}.tar.gz
+
+%if "%{profile}" == "tv"
+ExcludeArch: %{arm} %ix86 x86_64
+%endif
+
+%if "%{_with_emulator}" != "1"
+ExcludeArch: %{arm} aarch64
+%endif
+
BuildRequires: cmake
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
%build
versionint=$[%{major} * 1000000 + %{minor} * 1000 + %{patchlevel}]
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DVERSION=$versionint
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DLIB_INSTALL_DIR=%{_libdir} \
+ -DVERSION=$versionint
make %{?_smp_mflags}
%post
%install
%make_install
-mkdir -p %{buildroot}/usr/share/license
%files
%manifest tel-plugin-vmodem.manifest
-%defattr(-,root,root,-)
+%defattr(644,root,root,-)
#%doc COPYING
%{_libdir}/telephony/plugins/vmodem-plugin*
-/usr/share/license/tel-plugin-vmodem
+%license LICENSE