Name: pkgmgr-info Summary: Packager Manager infomation api for package Version: 0.12.4 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: pkgmgr-info.manifest BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(minizip) %description Packager Manager infomation api for packaging %package devel Summary: Packager Manager infomation api (devel) Requires: %{name} = %{version}-%{release} %description devel Packager Manager infomation api (devel) %package parser Summary: Library for manifest parser Requires: %{name} = %{version}-%{release} %description parser Library for manifest parser %package parser-devel Summary: Dev package for libpkgmgr-parser Requires: %{name}-parser = %{version}-%{release} Requires: pkgconfig(libtzplatform-config) %description parser-devel Dev package for libpkgmgr-parser %prep %setup -q cp %{SOURCE1001} . %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DUNITDIR=%{_unitdir} %__make %{?jobs:-j%jobs} %install %make_install mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants ln -sf ../pkg-db-recovery.service %{buildroot}%{_unitdir}/multi-user.target.wants/pkg-db-recovery.service %post /sbin/ldconfig %postun -p /sbin/ldconfig %post -n pkgmgr-info-parser -p /sbin/ldconfig %postun -n pkgmgr-info-parser -p /sbin/ldconfig %files %manifest %{name}.manifest %license LICENSE %defattr(-,root,root,-) %{_libdir}/libpkgmgr-info.so.* %{_bindir}/pkg-db-recovery %{_unitdir}/pkg-db-recovery.service %{_unitdir}/multi-user.target.wants/pkg-db-recovery.service %files devel %manifest %{name}.manifest %defattr(-,root,root,-) %{_includedir}/*.h %{_libdir}/pkgconfig/pkgmgr-info.pc %{_libdir}/libpkgmgr-info.so %files parser %manifest %{name}.manifest %license LICENSE %defattr(-,root,root,-) %{_libdir}/libpkgmgr_parser.so.* %config %{_sysconfdir}/package-manager/preload/manifest.xsd %config %{_sysconfdir}/package-manager/preload/xml.xsd %config %{_sysconfdir}/package-manager/parser_path.conf %config %{_sysconfdir}/package-manager/parserlib/metadata/mdparser_list.txt %config %{_sysconfdir}/package-manager/parserlib/category/category_parser_list.txt %config %{_sysconfdir}/package-manager/parserlib/tag_parser_list.txt %config %{_sysconfdir}/package-manager/pkg_db_version.txt %files parser-devel %manifest %{name}.manifest %defattr(-,root,root,-) %{_includedir}/pkgmgr/*.h %{_libdir}/pkgconfig/pkgmgr-parser.pc %{_libdir}/libpkgmgr_parser.so