summaryrefslogtreecommitdiff
path: root/packaging/capi-system-haptic.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/capi-system-haptic.spec')
-rw-r--r--packaging/capi-system-haptic.spec12
1 files changed, 8 insertions, 4 deletions
diff --git a/packaging/capi-system-haptic.spec b/packaging/capi-system-haptic.spec
index 0ebc99f..8ae3721 100644
--- a/packaging/capi-system-haptic.spec
+++ b/packaging/capi-system-haptic.spec
@@ -1,16 +1,18 @@
Name: capi-system-haptic
Summary: A Haptic library in Tizen Native API
Version: 0.1.0
-Release: 1
+Release: 11
Group: TO_BE/FILLED_IN
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(devman)
-BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(devman_haptic)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(capi-base-common)
+BuildRequires: pkgconfig(devman)
+BuildRequires: pkgconfig(dlog)
+
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -31,7 +33,8 @@ Requires: %{name} = %{version}-%{release}
%build
-cmake . -DCMAKE_INSTALL_PREFIX=/usr
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
@@ -46,10 +49,11 @@ rm -rf %{buildroot}
%files
-%{_libdir}/libcapi-system-haptic.so
+%{_libdir}/libcapi-system-haptic.so.*
%files devel
%{_includedir}/system/*.h
%{_libdir}/pkgconfig/*.pc
+%{_libdir}/libcapi-system-haptic.so