[packages/cantata] install translations
glen
glen at pld-linux.org
Sun Jan 3 22:38:08 CET 2016
commit 224efb2a28ef1d82064aae10d1cfff8e2016eeb3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 3 23:37:38 2016 +0200
install translations
cantata.spec | 29 +++++++++++++----------------
1 file changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/cantata.spec b/cantata.spec
index da5dfaa..91af014 100644
--- a/cantata.spec
+++ b/cantata.spec
@@ -37,6 +37,7 @@ BuildRequires: phonon-devel
BuildRequires: pkgconfig
BuildRequires: qt5-build
BuildRequires: qt5-qmake
+BuildRequires: rpmbuild(find_lang) >= 1.37
BuildRequires: rpmbuild(macros) >= 1.596
BuildRequires: systemd-devel
BuildRequires: taglib-devel
@@ -107,7 +108,7 @@ sed -i.system-qtiocompressor-headers -e 's|^#include "qtiocompressor/qtiocompres
%patch102 -p1
rm -rfv 3rdparty/{qtsingleapplication,qxt}
sed -i.system-qxt-headers -e 's|^#include "qxt/qxtglobalshortcut.h"|#include <QxtGlobalShortcut>|g' \
- gui/qxtmediakeys.cpp
+ gui/qxtmediakeys.cpp
%patch103 -p1
%patch104 -p1
@@ -119,6 +120,8 @@ cd build
CXXFLAGS="%{rpmcxxflags} -I/usr/include/qt5/QtSolutions"
%cmake \
-DCANTATA_HELPERS_LIB_DIR=%{_libdir} \
+ -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5 \
+ -DLCONVERT_EXECUTABLE=/usr/bin/lconvert-qt5 \
-DENABLE_KDE:BOOL=%{?with_kde:ON}%{!?with_kde:OFF} \
-DENABLE_QT5:BOOL=ON \
-DENABLE_FFMPEG:BOOL=OFF \
@@ -134,7 +137,7 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install/fast -C build \
DESTDIR=$RPM_BUILD_ROOT
-#%find_lang %{name} --with-qt --with-kde --all-name
+%find_lang %{name} --with-qm
desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/cantata.desktop
@@ -149,7 +152,7 @@ rm -rf $RPM_BUILD_ROOT
%update_desktop_database
%update_icon_cache hicolor
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog LICENSE README TODO
%attr(755,root,root) %{_bindir}/cantata
@@ -158,16 +161,10 @@ rm -rf $RPM_BUILD_ROOT
%{_desktopdir}/cantata.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/*/*/*.svg
-%dir %{_datadir}/cantata
-%{_datadir}/cantata/config
-%{_datadir}/cantata/icons
-%{_datadir}/cantata/mpd
-%{_datadir}/cantata/scripts
-%{_datadir}/cantata/themes
-%if %{with kde}
-#%dir %{_kde4_appsdir}/solid/
-#%dir %{_kde4_appsdir}/solid/actions/
-#%{_kde4_appsdir}/solid/actions/cantata-play-audiocd.desktop
-%else
-#%dir %{_datadir}/cantata/translations/
-%endif
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/translations
+%{_datadir}/%{name}/config
+%{_datadir}/%{name}/icons
+%{_datadir}/%{name}/mpd
+%{_datadir}/%{name}/scripts
+%{_datadir}/%{name}/themes
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cantata.git/commitdiff/224efb2a28ef1d82064aae10d1cfff8e2016eeb3
More information about the pld-cvs-commit
mailing list