4 Summary: Packager Manager client library package
7 Group: Application Framework/Package Management
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: %{name}.manifest
11 Source1002: %{name}-client.manifest
12 Source1003: %{name}-client-devel.manifest
13 Source1004: %{name}-installer.manifest
14 Source1005: %{name}-installer-devel.manifest
15 Source1006: %{name}-types-devel.manifest
16 Source1007: %{name}.conf
21 BuildRequires: gettext-tools
22 BuildRequires: pkgconfig(dbus-glib-1)
23 BuildRequires: pkgconfig(glib-2.0)
24 BuildRequires: pkgconfig(gio-2.0)
25 BuildRequires: pkgconfig(dlog)
26 BuildRequires: pkgconfig(bundle)
27 BuildRequires: pkgconfig(pkgmgr-info)
28 BuildRequires: pkgconfig(iniparser)
29 BuildRequires: pkgconfig(libtzplatform-config)
30 BuildRequires: pkgconfig(security-manager)
31 BuildRequires: pkgconfig(xdgmime)
32 BuildRequires: pkgconfig(db-util)
33 BuildRequires: pkgconfig(libsmack)
34 BuildRequires: pkgmgr-info-parser-devel
35 BuildRequires: pkgmgr-info-parser
39 Packager Manager client library package for packaging
43 Summary: Package Manager client library develpoment package
44 Requires: %{name} = %{version}-%{release}
45 Requires: shared-mime-info
46 Requires(post): pkgmgr
49 Package Manager client library develpoment package for packaging
53 Summary: Package Manager client library develpoment package
54 Requires: %{name} = %{version}-%{release}
55 Requires: pkgmgr-client
57 %description client-devel
58 Package Manager client library develpoment package for packaging
62 Summary: Library for installer frontend/backend
63 Requires: %{name} = %{version}-%{release}
65 %description installer
66 Library for installer frontend/backend for packaging.
69 %package installer-devel
70 Summary: Dev package for libpkgmgr-installer
71 Requires: %{name} = %{version}-%{release}
73 %description installer-devel
74 Dev package for libpkgmgr-installer for packaging.
78 Summary: Package Manager manifest parser develpoment package
79 Requires: %{name} = %{version}-%{release}
81 %description types-devel
82 Package Manager client types develpoment package for packaging
86 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} %{SOURCE1004} %{SOURCE1005} %{SOURCE1006} .
91 %__make %{?_smp_mflags}
95 rm -f %{buildroot}%{_bindir}/pkgmgr_backend_sample
96 rm -f %{buildroot}%{_libdir}/libpkgmgr_backend_lib_sample.so
97 rm -f %{buildroot}%{_libdir}/libpkgmgr_parser_lib_sample.so
99 mkdir -p %{buildroot}%{_tmpfilesdir}/
100 install -m 0644 %{SOURCE1007} %{buildroot}%{_tmpfilesdir}/pkgmgr.conf
102 mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backend
103 mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backendlib
104 mkdir -p %{buildroot}%{_sysconfdir}/opt/upgrade
106 touch %{buildroot}%{_sysconfdir}/package-manager/backend/pkg
107 chmod 755 %{buildroot}%{_sysconfdir}/package-manager/backend/pkg
108 touch %{buildroot}%{_sysconfdir}/package-manager/backend/getsize
109 chmod 755 %{buildroot}%{_sysconfdir}/package-manager/backend/getsize
110 touch %{buildroot}%{_sysconfdir}/package-manager/backend/clearcache
111 chmod 755 %{buildroot}%{_sysconfdir}/package-manager/backend/clearcache
112 touch %{buildroot}%{_sysconfdir}/package-manager/backend/app
113 chmod 755 %{buildroot}%{_sysconfdir}/package-manager/backend/app
120 # Create tizenglobalapp user needed for global installation
121 useradd %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root
123 %post -n pkgmgr-client -p /sbin/ldconfig
125 %postun -n pkgmgr-client -p /sbin/ldconfig
127 %post -n pkgmgr-installer -p /sbin/ldconfig
129 %postun -n pkgmgr-installer -p /sbin/ldconfig
133 %manifest %{name}.manifest
134 %defattr(-,root,root,-)
135 %dir %{_sysconfdir}/package-manager/backend
136 %dir %{_sysconfdir}/package-manager/backendlib
137 %{_sysconfdir}/package-manager/backend/*
138 %{_tmpfilesdir}/pkgmgr.conf
141 %manifest %{name}-client.manifest
142 %defattr(-,root,root,-)
143 %dir %{_sysconfdir}/package-manager
144 %config %{_sysconfdir}/package-manager/pkg_path.conf
145 %{_libdir}/libpkgmgr-client.so.*
148 %manifest %{name}-client-devel.manifest
149 %defattr(-,root,root,-)
150 %{_includedir}/package-manager.h
151 %{_libdir}/pkgconfig/pkgmgr.pc
152 %{_libdir}/libpkgmgr-client.so
155 %manifest %{name}-installer.manifest
156 %defattr(-,root,root,-)
157 %{_libdir}/libpkgmgr_installer.so.*
158 %{_libdir}/libpkgmgr_installer_client.so.*
160 %files installer-devel
161 %manifest %{name}-installer-devel.manifest
162 %defattr(-,root,root,-)
163 %dir %{_includedir}/pkgmgr
164 %{_includedir}/pkgmgr/pkgmgr_installer.h
165 %{_libdir}/pkgconfig/pkgmgr-installer.pc
166 %{_libdir}/pkgconfig/pkgmgr-installer-client.pc
167 %{_libdir}/libpkgmgr_installer.so
168 %{_libdir}/libpkgmgr_installer_client.so
171 %manifest %{name}-types-devel.manifest
172 %defattr(-,root,root,-)
173 %{_includedir}/package-manager-types.h
174 %{_includedir}/package-manager-plugin.h
175 %{_includedir}/package-manager-debug.h
176 %{_includedir}/pkgmgr/comm_config.h
177 %{_libdir}/pkgconfig/pkgmgr-types.pc