libcontacts-qt5.spec 1.72 KB
Newer Older
mvogt's avatar
mvogt committed
1 2
Name:       libcontacts-qt5
Summary:    Nemo contact cache library
chriadam's avatar
chriadam committed
3
Version:    0.1.8
mvogt's avatar
mvogt committed
4 5 6 7 8 9 10 11 12 13 14
Release:    1
Group:      System/Libraries
License:    BSD
URL:        https://github.com/nemomobile/libcontacts
Source0:    %{name}-%{version}.tar.bz2
Requires:   qtcontacts-sqlite-qt5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(Qt5Versit)
BuildRequires:  pkgconfig(mlite5)
15
BuildRequires:  pkgconfig(mlocale5)
16
BuildRequires:  pkgconfig(mce)
mvogt's avatar
mvogt committed
17
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions) >= 0.2.1
18 19
BuildRequires:  qt5-qttools
BuildRequires:  qt5-qttools-linguist
mvogt's avatar
mvogt committed
20 21 22 23 24 25 26

%description
%{summary}.

%package tests
Summary:    Nemo contact cache library tests
Group:      System/Libraries
27
Requires:   blts-tools
mvogt's avatar
mvogt committed
28 29 30 31 32 33 34 35 36 37 38 39 40
Requires:   %{name} = %{version}-%{release}

%description tests
%{summary}.

%package devel
Summary:    Nemo contact cache library headers
Group:      System/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
%{summary}.

41 42 43 44 45 46 47 48 49 50 51 52 53 54

%package ts-devel
Summary: Translation source for libcontacts
Group: System/Applications

%description ts-devel
Translation source for libcontacts

%files ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/libcontacts.ts



mvogt's avatar
mvogt committed
55 56 57 58 59
%prep
%setup -q -n %{name}-%{version}

%build

mvogt's avatar
mvogt committed
60
%qmake5 VERSION=%{version}
mvogt's avatar
mvogt committed
61

John Brooks's avatar
John Brooks committed
62
make %{?_smp_mflags}
mvogt's avatar
mvogt committed
63 64 65

%install
rm -rf %{buildroot}
66
%qmake5_install
mvogt's avatar
mvogt committed
67 68 69 70 71 72 73 74

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libcontactcache-qt5.so*
75
%{_datadir}/translations/libcontacts_eng_en.qm
mvogt's avatar
mvogt committed
76 77 78 79 80 81 82 83 84

%files tests
%defattr(-,root,root,-)
/opt/tests/contactcache-qt5/*

%files devel
%defattr(-,root,root,-)
%{_includedir}/contactcache-qt5/*
%{_libdir}/pkgconfig/contactcache-qt5.pc