Provide internal APIs for converting compat path
[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(capi-system-system-settings)
17 BuildRequires:  pkgconfig(mount)
18
19 %description
20 development package of library to get storage
21
22 %package devel
23 Summary:        Get storage information (devel)
24 Group:          Development/Libraries
25 Requires:       %{name} = %{version}-%{release}
26
27 %description devel
28 Library to get storage information (devel)
29
30
31 %prep
32 %setup -q
33 cp %{SOURCE1} .
34
35 %build
36 %cmake .
37 make %{?jobs:-j%jobs}
38
39 %install
40 %make_install
41
42 %post -p /sbin/ldconfig
43
44 %postun -p /sbin/ldconfig
45
46 %files
47 %{_libdir}/*.so.*
48 %{_sysconfdir}/storage/libstorage.conf
49 %license LICENSE
50 %manifest %{name}.manifest
51
52 %files devel
53 %{_includedir}/storage/*.h
54 %{_libdir}/*.so
55 %{_libdir}/pkgconfig/*.pc