diff options
Diffstat (limited to 'packaging/sensor.spec')
-rw-r--r-- | packaging/sensor.spec | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/packaging/sensor.spec b/packaging/sensor.spec new file mode 100644 index 0000000..b2d8916 --- /dev/null +++ b/packaging/sensor.spec @@ -0,0 +1,68 @@ + +Name: sensor +Summary: Sensor framework client library +Version: 0.5.26 +Release: 1 +Group: TO_BE/FILLED_IN +License: Apache 2.0 +Source0: sensor-%{version}.tar.gz +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: cmake +BuildRequires: vconf-keys-devel +BuildRequires: pkgconfig(sf_common) +BuildRequires: pkgconfig(vconf) +BuildRequires: pkgconfig(glib-2.0) + +%description +Sensor framework client library + + + +%package devel +Summary: Sensor framework library (devel) +Group: System/Sensor Framework +Requires: %{name} = %{version}-%{release} + +%description devel +Sensor framework client library (devel) + + +%prep +%setup -q -n %{name}-%{version} + + +%build +cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} + + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +mkdir -p %{buildroot}/usr/share/license +cp LICENSE %{buildroot}/usr/share/license/%{name} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + + + + +%files +%manifest libslp-sensor.manifest +%defattr(-,root,root,-) +%{_libdir}/libsensor.so.* +/usr/share/license/%{name} + +%files devel +%defattr(-,root,root,-) +%{_includedir}/sensor/*.h +%{_libdir}/libsensor.so +%{_libdir}/pkgconfig/sensor.pc + |