summaryrefslogtreecommitdiff
path: root/packaging/device-manager-plugin-pinetrail.spec
blob: c1b867fd427cbc428466476fc0178edc7a68d91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name:       device-manager-plugin-pinetrail
Summary:    Device manager library for pinetrail
Version:    0.2.4
Release:    1
Group:      TO_BE/FILLED_IN
License:    LGPL 2.1
Source0:    %{name}-%{version}.tar.bz2
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  cmake
BuildRequires:  pkgconfig(vconf)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(heynoti)
BuildRequires:  pkgconfig(devman)
BuildRequires:  pkgconfig(devman_plugin)

%description
Device manager library for pinetrail device control


%package  devel
Summary:    Device manager library for pinetrail (devel)
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
Device manager library for pinetrail device control (devel)

%prep
%setup -q -n %{name}-%{version}

%build
cmake . -DCMAKE_INSTALL_PREFIX=/usr

make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

ln -s /usr/lib/libdevice-manager-plugin-pinetrail.so.%{version} %{buildroot}/usr/lib/libslp_devman_plugin.so.%{version}
ln -s /usr/lib/libdevice-manager-plugin-pinetrail.so %{buildroot}/usr/lib/libslp_devman_plugin.so

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%{_libdir}/*.so*

%files devel
%{_includedir}/device-manager-plugin-pinetrail/*.h
%{_libdir}/pkgconfig/*.pc