Skip to content

Commit

Permalink
[commhistory-daemon] Fix translation source installation and packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
John Brooks committed Apr 9, 2013
1 parent bf6c741 commit 803845c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
14 changes: 11 additions & 3 deletions rpm/commhistory-daemon.spec
Expand Up @@ -28,6 +28,13 @@ 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.

Expand All @@ -41,8 +48,6 @@ make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%qmake_install
rm %{buildroot}/usr/bin/commhistoryd.qm


%files
%defattr(-,root,root,-)
Expand All @@ -51,11 +56,14 @@ rm %{buildroot}/usr/bin/commhistoryd.qm
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.CommHistory.service
%{_datadir}/dbus-1/services/org.nemomobile.AccountPresence.service
%{_datadir}/translations/commhistoryd.qm
%{_datadir}/doc/commhistory-daemon-l10n-engineering-english/commhistoryd.ts
%{_datadir}/lipstick/notificationcategories/*
%{_datadir}/telepathy/clients/CommHistory.client

%files tests
%defattr(-,root,root,-)
/opt/tests/commhistory-daemon/*

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

10 changes: 2 additions & 8 deletions translations/translations.pro
Expand Up @@ -32,13 +32,13 @@ SOURCEPATHS = $${_PRO_FILE_PWD_}/../src

# Installation paths:
QM_INSTALL_PATH = $${INSTALL_PREFIX}/share/translations/
TS_INSTALL_PATH = $${INSTALL_PREFIX}/share/doc/commhistory-daemon-l10n-engineering-english/
TS_INSTALL_PATH = $${INSTALL_PREFIX}/share/translations/source/

#-----------------------------------------------------------------------------
# DO NOT EDIT THIS PART ------------------------------------------------------
#-----------------------------------------------------------------------------

TEMPLATE =
TEMPLATE = aux
SUBDIRS =
CONFIG = warn_on

Expand All @@ -49,18 +49,12 @@ QMAKE_LFLAGS = --version
TS_FILENAME = $${_PRO_FILE_PWD_}/$${CATALOGNAME}.ts
QM_FILENAME = $${_PRO_FILE_PWD_}/$${CATALOGNAME}.qm

# target name
TARGET = $${CATALOGNAME}.qm
QMAKE_TARGET = $${TARGET}

# LUPDATE and LRELEASE --------------------------------------------------------
LUPDATE_CMD = lupdate \
-no-obsolete \
$${SOURCEPATHS} \
-ts $${TS_FILENAME} && \
lrelease \
-idbased \
-markuntranslated \"!! \" \
$${TS_FILENAME} \
-qm $${QM_FILENAME}

Expand Down

0 comments on commit 803845c

Please sign in to comment.