Name: contacts-service Summary: Contacts Service Version: 0.9.114.8 Release: 1 Group: TO_BE/FILLED_IN License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1: contacts-service.service Source2: contacts-service.socket BuildRequires: cmake BuildRequires: vconf-keys-devel BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(capi-media-image-util) BuildRequires: pkgconfig(pims-ipc) BuildRequires: pkgconfig(accounts-svc) BuildRequires: pkgconfig(badge) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(security-server) Requires(post): /usr/bin/sqlite3, /bin/chmod, /bin/chown Requires(post): /usr/bin/vconftool Requires(post): /sbin/ldconfig Requires(post): telephony-daemon Requires(postun): /sbin/ldconfig Requires: sys-assert %description Contacts Service Library %package -n contacts-service2 Summary: New Contacts service library Group: Development/Libraries Requires: sys-assert Requires(post): telephony-daemon Requires(post): libprivilege-control-conf %description -n contacts-service2 New Contact Serivce Library %package -n contacts-service2-devel Summary: New Contacts Service (devel) Group: Development/Libraries Requires: %{name}2 = %{version}-%{release} %description -n contacts-service2-devel New Contacts Service Library (devel) %prep %setup -q %build %cmake . make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants install -m 0644 %SOURCE1 %{buildroot}/usr/lib/systemd/user/contacts-service.service ln -s ../contacts-service.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service mkdir -p %{buildroot}/usr/lib/systemd/user/sockets.target.wants install -m 0644 %SOURCE2 %{buildroot}/usr/lib/systemd/user/contacts-service.socket ln -s ../contacts-service.socket %{buildroot}/usr/lib/systemd/user/sockets.target.wants/contacts-service.socket mkdir -p %{buildroot}/usr/share/license cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} %post -n contacts-service2 /sbin/ldconfig chown :6005 /opt/usr/data/contacts-svc chown :6005 /opt/usr/dbspace/.contacts-svc.db chown :6005 /opt/usr/dbspace/.contacts-svc.db-journal chown :6005 -R /opt/usr/data/contacts-svc/img chown :6005 /opt/usr/data/contacts-svc/.CONTACTS_SVC_*_CHANGED chmod 660 /opt/usr/dbspace/.contacts-svc.db chmod 660 /opt/usr/dbspace/.contacts-svc.db-journal chmod 775 /opt/usr/data/contacts-svc chmod 770 -R /opt/usr/data/contacts-svc/img/ chmod 660 /opt/usr/data/contacts-svc/.CONTACTS_SVC_* vconftool set -t int file/private/contacts-service/default_lang 0 -g 6005 -s contacts-service::vconf-private vconftool set -t int db/contacts-svc/name_sorting_order 0 -g 6005 -s contacts-service::vconf vconftool set -t int db/contacts-svc/name_display_order 0 -g 6005 -s contacts-service::vconf vconftool set -t int db/contacts-svc/phonenumber_min_match_digit 8 -g 6005 -s contacts-service::vconf %postun -p /sbin/ldconfig %files -n contacts-service2 %manifest contacts-service2.manifest %defattr(-,root,root,-) %{_libdir}/libcontacts-service2.so.* %{_bindir}/contacts-service-ipcd* /opt/usr/data/contacts-svc/.CONTACTS_SVC_* /opt/usr/data/contacts-svc/img/* /usr/lib/systemd/user/contacts-service.service /usr/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service /usr/lib/systemd/user/sockets.target.wants/contacts-service.socket /usr/lib/systemd/user/contacts-service.socket %config(noreplace) /opt/usr/dbspace/.contacts-svc.db* /usr/share/packages/%{name}2.xml /opt/etc/smack/accesses.d/%{name}2.rule /usr/share/license/%{name} %files -n contacts-service2-devel %defattr(-,root,root,-) %{_libdir}/libcontacts-service2.so %{_libdir}/pkgconfig/contacts-service2.pc %{_includedir}/contacts-svc/contacts.h %{_includedir}/contacts-svc/contacts_*.h