From 22df78f4db3690e533814ae4ff5b7179a07742fb Mon Sep 17 00:00:00 2001 From: Mosaab Alzoubi Date: Fri, 17 Jan 2014 07:27:10 +0200 Subject: [PATCH] Using Macros. --- goldendict.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/goldendict.spec b/goldendict.spec index 27773bc..ed7198e 100644 --- a/goldendict.spec +++ b/goldendict.spec @@ -3,7 +3,7 @@ Name: goldendict Version: 1.5 -Release: 0.1.RC1%{?dist} +Release: 0.2.RC1%{?dist} Summary: A feature-rich dictionary lookup program Group: Applications/System License: GPLv3+ @@ -33,27 +33,27 @@ Scan popup functionality. %setup -q -n %{name}-%{commit} %build -PREFIX=%{_prefix} qmake-qt4 "DISABLE_INTERNAL_PLAYER=1" +%qmake_qt4 "DISABLE_INTERNAL_PLAYER=1" make %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot} INSTALL="install -p" rm -rf %{buildroot}/%{_datadir}/app-install desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop -install -d %{buildroot}/%{_datadir}/goldendict/locale -install -pm 644 locale/*.qm %{buildroot}/%{_datadir}/goldendict/locale +%find_lang %{name} - -%files +%files -f %{name}.lang %doc LICENSE.txt %dir %{_datadir}/goldendict/ -%dir %{_datadir}/goldendict/locale/ %{_bindir}/goldendict %{_datadir}/applications/goldendict.desktop %{_datadir}/pixmaps/goldendict.png -%{_datadir}/goldendict/locale/*.qm %changelog +* Fri Jan 17 2014 Mosaab Alzoubi - 1.5-0.2.RC1 +- Use %%qmake_qt4 and %%find_lang as suggestion +- by Christophe​r Meng‎ (‏cickumqt/gmail.com‏) + * Tue Jan 14 2014 Mosaab Alzoubi - 1.5-0.1.RC1 - Update to 1.5RC. - General clean of spec.