b6d043755dfb8de3fc07aaf6f6c5a1c90827dd77
[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.1.0
4 Release:    1
5 Group:      Application Framework/Package Management
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1001: pkgmgr-info.manifest
9 BuildRequires: cmake
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(vconf)
12 BuildRequires: pkgconfig(sqlite3)
13 BuildRequires: pkgconfig(db-util)
14 BuildRequires: pkgconfig(libxml-2.0)
15 BuildRequires: pkgconfig(dbus-1)
16 BuildRequires: pkgconfig(dbus-glib-1)
17 BuildRequires: pkgconfig(libtzplatform-config)
18 BuildRequires: pkgconfig(libsmack)
19 BuildRequires:  pkgconfig(bundle)
20
21 %description
22 Packager Manager infomation api for packaging
23
24 %package devel
25 Summary:    Packager Manager infomation api (devel)
26 Requires:   %{name} = %{version}-%{release}
27 %description devel
28 Packager Manager infomation api (devel)
29
30 %package parser
31 Summary:    Library for manifest parser
32 Requires:   %{name} = %{version}-%{release}
33
34 %description parser
35 Library for manifest parser
36
37 %package parser-devel
38 Summary:    Dev package for libpkgmgr-parser
39 Requires:   %{name} = %{version}-%{release}
40 Requires:       pkgconfig(libtzplatform-config)
41
42 %description parser-devel
43 Dev package for libpkgmgr-parser
44
45
46 %prep
47 %setup -q
48 cp %{SOURCE1001} .
49
50 %build
51 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
52 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
53 %__make %{?jobs:-j%jobs}
54
55 %install
56 %make_install
57
58 %post
59 /sbin/ldconfig
60
61 %postun -p /sbin/ldconfig
62
63 %post -n pkgmgr-info-parser -p /sbin/ldconfig
64
65 %postun  -n pkgmgr-info-parser -p /sbin/ldconfig
66
67 %files
68 %manifest %{name}.manifest
69 %defattr(-,root,root,-)
70 %{_libdir}/libpkgmgr-info.so.*
71
72 %files devel
73 %manifest %{name}.manifest
74 %defattr(-,root,root,-)
75 %{_includedir}/pkgmgr-info.h
76 %{_includedir}/pkgmgrinfo_type.h
77 %{_includedir}/pkgmgrinfo_basic.h
78 %{_includedir}/pkgmgrinfo_resource.h
79 %{_libdir}/pkgconfig/pkgmgr-info.pc
80 %{_libdir}/libpkgmgr-info.so
81
82 %files parser
83 %manifest %{name}.manifest
84 %defattr(-,root,root,-)
85 %{_libdir}/libpkgmgr_parser.so.*
86 %config %{_sysconfdir}/package-manager/preload/preload_list.txt
87 %config %{_sysconfdir}/package-manager/preload/manifest.xsd
88 %config %{_sysconfdir}/package-manager/preload/xml.xsd
89 %config %{_sysconfdir}/package-manager/preload/res.xsd
90 %config %{_sysconfdir}/package-manager/parser_path.conf
91 %config %{_sysconfdir}/package-manager/parserlib/metadata/mdparser_list.txt
92 %config %{_sysconfdir}/package-manager/parserlib/category/category_parser_list.txt
93 %config %{_sysconfdir}/package-manager/parserlib/tag_parser_list.txt
94
95 %files parser-devel
96 %manifest %{name}.manifest
97 %defattr(-,root,root,-)
98 %{_includedir}/pkgmgr/pkgmgr_parser.h
99 %{_includedir}/pkgmgr/pkgmgr_parser_db.h
100 %{_includedir}/pkgmgr/pkgmgr_parser_resource.h
101 %{_libdir}/pkgconfig/pkgmgr-parser.pc
102 %{_libdir}/libpkgmgr_parser.so