Remove system-settings dependency
[platform/core/system/libstorage.git] / packaging / libstorage.spec
1 Name:       libstorage
2 Summary:    Library to get storage information
3 Version:    0.1.1
4 Release:    0
5 Group:      System/Libraries
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1:    %{name}.manifest
9 BuildRequires:  cmake
10 BuildRequires:  pkgconfig(dlog)
11 BuildRequires:  pkgconfig(capi-base-common)
12 BuildRequires:  pkgconfig(vconf)
13 BuildRequires:  pkgconfig(glib-2.0)
14 BuildRequires:  pkgconfig(gio-2.0)
15 BuildRequires:  pkgconfig(libtzplatform-config)
16 BuildRequires:  pkgconfig(mount)
17
18 %description
19 development package of library to get storage
20
21 %package devel
22 Summary:        Get storage information (devel)
23 Group:          Development/Libraries
24 Requires:       %{name} = %{version}-%{release}
25
26 %description devel
27 Library to get storage information (devel)
28
29
30 %prep
31 %setup -q
32 cp %{SOURCE1} .
33
34 %build
35 %cmake .
36 make %{?jobs:-j%jobs}
37
38 %install
39 %make_install
40
41 %post -p /sbin/ldconfig
42
43 %postun -p /sbin/ldconfig
44
45 %files
46 %{_libdir}/*.so.*
47 %{_sysconfdir}/storage/libstorage.conf
48 %license LICENSE
49 %manifest %{name}.manifest
50
51 %files devel
52 %{_includedir}/storage/*.h
53 %{_libdir}/*.so
54 %{_libdir}/pkgconfig/*.pc