Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from matthewvogt/qt5
[commhistory-daemon] Build with either Qt4 or Qt5
- Loading branch information
Showing
34 changed files
with
643 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# We need different macros depending on which Contacts we're using | ||
equals(QT_MAJOR_VERSION, 4) { | ||
DEFINES *= BEGIN_CONTACTS_NAMESPACE=QTM_BEGIN_NAMESPACE | ||
DEFINES *= END_CONTACTS_NAMESPACE=QTM_END_NAMESPACE | ||
DEFINES *= USE_CONTACTS_NAMESPACE=QTM_USE_NAMESPACE | ||
DEFINES *= BEGIN_VERSIT_NAMESPACE= | ||
DEFINES *= END_VERSIT_NAMESPACE= | ||
DEFINES *= USE_VERSIT_NAMESPACE= | ||
} | ||
equals(QT_MAJOR_VERSION, 5) { | ||
DEFINES *= USING_QTPIM | ||
DEFINES *= BEGIN_CONTACTS_NAMESPACE=QT_BEGIN_NAMESPACE_CONTACTS | ||
DEFINES *= END_CONTACTS_NAMESPACE=QT_END_NAMESPACE_CONTACTS | ||
DEFINES *= USE_CONTACTS_NAMESPACE=QTCONTACTS_USE_NAMESPACE | ||
DEFINES *= BEGIN_VERSIT_NAMESPACE=QT_BEGIN_NAMESPACE_VERSIT | ||
DEFINES *= END_VERSIT_NAMESPACE=QT_END_NAMESPACE_VERSIT | ||
DEFINES *= USE_VERSIT_NAMESPACE=QTVERSIT_USE_NAMESPACE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Name: commhistory-daemon-qt5 | ||
Summary: Communications event history database daemon | ||
Version: 0.4.11 | ||
Release: 2 | ||
Group: Communications/Telephony and IM | ||
License: LGPL | ||
URL: https://github.com/nemomobile/commhistory-daemon | ||
Source0: %{name}-%{version}.tar.bz2 | ||
BuildRequires: pkgconfig(Qt5Core) | ||
BuildRequires: pkgconfig(Qt5Contacts) | ||
BuildRequires: pkgconfig(commhistory-qt5) | ||
BuildRequires: pkgconfig(contextkit-statefs) | ||
BuildRequires: pkgconfig(TelepathyQt5) | ||
BuildRequires: pkgconfig(mlite5) | ||
BuildRequires: pkgconfig(mlocale5) | ||
BuildRequires: pkgconfig(qmsystem2-qt5) | ||
BuildRequires: python | ||
|
||
Obsoletes: smshistory <= 0.1.8 | ||
Provides: smshistory > 0.1.8 | ||
Obsoletes: voicecallhistory <= 0.1.5 | ||
Provides: voicecallhistory > 0.1.5 | ||
Obsoletes: commhistory-daemon | ||
Provides: commhistory-daemon | ||
|
||
%package tests | ||
Summary: Unit tests for commhistory-daemon | ||
Group: Development/Libraries | ||
|
||
%description tests | ||
Unit tests for commhistory-daemon | ||
|
||
%package ts-devel | ||
Summary: Translation source for commhistory-daemon | ||
Group: System/Applications | ||
|
||
%description ts-devel | ||
Translation source for commhistory-daemon | ||
|
||
%description | ||
Daemon for logging communications (IM, SMS and call) in history database. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
unset LD_AS_NEEDED | ||
%qmake5 | ||
make %{?jobs:-j%jobs} | ||
%install | ||
rm -rf %{buildroot} | ||
%qmake5_install | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/commhistoryd-qt5 | ||
%{_datadir}/dbus-1/services/com.nokia.CommHistory.service | ||
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.CommHistory.service | ||
%{_datadir}/dbus-1/services/org.nemomobile.AccountPresence.service | ||
%{_datadir}/translations/commhistoryd-qt5.qm | ||
%{_datadir}/lipstick/notificationcategories/* | ||
%{_datadir}/telepathy/clients/CommHistory.client | ||
|
||
%files tests | ||
%defattr(-,root,root,-) | ||
/opt/tests/commhistory-daemon-qt5/* | ||
|
||
%files ts-devel | ||
%defattr(-,root,root,-) | ||
%{_datadir}/translations/source/commhistoryd-qt5.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.