libcontacts-qt5.spec 1.38 KB
Newer Older
mvogt's avatar
mvogt committed
1 2
Name:       libcontacts-qt5
Summary:    Nemo contact cache library
mvogt's avatar
mvogt committed
3
Version:    0.1.3
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
mvogt's avatar
mvogt committed
18 19 20 21 22 23 24

%description
%{summary}.

%package tests
Summary:    Nemo contact cache library tests
Group:      System/Libraries
25
Requires:   blts-tools
mvogt's avatar
mvogt committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
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}.

%prep
%setup -q -n %{name}-%{version}

%build

mvogt's avatar
mvogt committed
44
%qmake5 VERSION=%{version}
mvogt's avatar
mvogt committed
45

John Brooks's avatar
John Brooks committed
46
make %{?_smp_mflags}
mvogt's avatar
mvogt committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

%install
rm -rf %{buildroot}
%qmake_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libcontactcache-qt5.so*

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

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