Merge branch private
[platform/core/appfw/pkgmgr-info.git] / packaging / pkgmgr-info.spec
1 Name:       pkgmgr-info
2 Summary:    Packager Manager infomation api for package
3 Version:    0.0.95
4 Release:    1
5 Group:      Application Framework/Package Management
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires:  cmake
9 BuildRequires:  pkgconfig(dlog)
10 BuildRequires:  pkgconfig(vconf)
11 BuildRequires:  pkgconfig(sqlite3)
12 BuildRequires:  pkgconfig(db-util)
13 BuildRequires:  pkgconfig(libxml-2.0)
14
15 %description
16 Packager Manager infomation api for packaging
17
18 %package devel
19 Summary:    Packager Manager infomation api (devel)
20 Group:          Development/Libraries
21 Requires:   %{name} = %{version}-%{release}
22 %description devel
23 Packager Manager infomation api (devel)
24
25 %package parser
26 Summary:    Library for manifest parser
27 Group:      Application Framework/Package Management
28 Requires:   %{name} = %{version}-%{release}
29
30 %description parser
31 Library for manifest parser
32
33 %package parser-devel
34 Summary:    Dev package for libpkgmgr-parser
35 Group:      Development/Libraries
36 Requires:   %{name} = %{version}-%{release}
37
38 %description parser-devel
39 Dev package for libpkgmgr-parser
40
41
42 %prep
43 %setup -q
44
45 %build
46 %cmake .
47 make %{?jobs:-j%jobs}
48
49 %install
50 %make_install
51
52 %post -p /sbin/ldconfig
53
54 %postun -p /sbin/ldconfig
55
56 %files
57 %manifest pkgmgr-info.manifest
58 %defattr(-,root,root,-)
59 %{_libdir}/libpkgmgr-info.so.*
60
61 %files devel
62 %defattr(-,root,root,-)
63 %{_includedir}/pkgmgr-info.h
64 %{_libdir}/pkgconfig/pkgmgr-info.pc
65 %{_libdir}/libpkgmgr-info.so
66
67 %files parser
68 %manifest pkgmgr-parser.manifest
69 %defattr(-,root,root,-)
70 %{_libdir}/libpkgmgr_parser.so.*
71 %{_prefix}/etc/package-manager/preload/preload_list.txt
72 %{_prefix}/etc/package-manager/preload/manifest.xsd
73 %{_prefix}/etc/package-manager/preload/xml.xsd
74 %{_prefix}/etc/package-manager/parser_path.conf
75
76 %files parser-devel
77 %defattr(-,root,root,-)
78 %{_includedir}/pkgmgr/pkgmgr_parser.h
79 %{_includedir}/pkgmgr/pkgmgr_parser_db.h
80 %{_libdir}/pkgconfig/pkgmgr-parser.pc
81 %{_libdir}/libpkgmgr_parser.so