Fix spec file according to RPMLINT Rules
[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.110
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
53 /sbin/ldconfig
54
55 mkdir -p /opt/usr/apps/tmp
56 chown 5100:5100 /opt/usr/apps/tmp
57 chmod 771 /opt/usr/apps/tmp
58 chsmack -a '*' /opt/usr/apps/tmp
59 chsmack -t /opt/usr/apps/tmp
60
61 touch /opt/usr/apps/tmp/pkgmgr_tmp.txt
62
63 chsmack -a 'pkgmgr::db' /opt/usr/apps/tmp/pkgmgr_tmp.txt
64
65 %postun -p /sbin/ldconfig
66
67 %post -n pkgmgr-info-parser -p /sbin/ldconfig
68
69 %postun  -n pkgmgr-info-parser -p /sbin/ldconfig
70 %files
71 %manifest pkgmgr-info.manifest
72 %defattr(-,root,root,-)
73 %{_libdir}/libpkgmgr-info.so.*
74
75 %files devel
76 %defattr(-,root,root,-)
77 %{_includedir}/pkgmgr-info.h
78 %{_libdir}/pkgconfig/pkgmgr-info.pc
79 %{_libdir}/libpkgmgr-info.so
80
81 %files parser
82 %manifest pkgmgr-parser.manifest
83 %defattr(-,root,root,-)
84 %{_libdir}/libpkgmgr_parser.so.*
85 %{_prefix}/etc/package-manager/preload/preload_list.txt
86 %{_prefix}/etc/package-manager/preload/manifest.xsd
87 %{_prefix}/etc/package-manager/preload/xml.xsd
88 %{_prefix}/etc/package-manager/parser_path.conf
89
90 %files parser-devel
91 %defattr(-,root,root,-)
92 %{_includedir}/pkgmgr/pkgmgr_parser.h
93 %{_includedir}/pkgmgr/pkgmgr_parser_db.h
94 %{_libdir}/pkgconfig/pkgmgr-parser.pc
95 %{_libdir}/libpkgmgr_parser.so