Using Macros.

f39
Mosaab Alzoubi 11 years ago
parent d81128d615
commit 22df78f4db

@ -3,7 +3,7 @@
Name: goldendict Name: goldendict
Version: 1.5 Version: 1.5
Release: 0.1.RC1%{?dist} Release: 0.2.RC1%{?dist}
Summary: A feature-rich dictionary lookup program Summary: A feature-rich dictionary lookup program
Group: Applications/System Group: Applications/System
License: GPLv3+ License: GPLv3+
@ -33,27 +33,27 @@ Scan popup functionality.
%setup -q -n %{name}-%{commit} %setup -q -n %{name}-%{commit}
%build %build
PREFIX=%{_prefix} qmake-qt4 "DISABLE_INTERNAL_PLAYER=1" %qmake_qt4 "DISABLE_INTERNAL_PLAYER=1"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install INSTALL_ROOT=%{buildroot} INSTALL="install -p" make install INSTALL_ROOT=%{buildroot} INSTALL="install -p"
rm -rf %{buildroot}/%{_datadir}/app-install rm -rf %{buildroot}/%{_datadir}/app-install
desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop desktop-file-install %{buildroot}%{_datadir}/applications/%{name}.desktop
install -d %{buildroot}/%{_datadir}/goldendict/locale %find_lang %{name}
install -pm 644 locale/*.qm %{buildroot}/%{_datadir}/goldendict/locale
%files -f %{name}.lang
%files
%doc LICENSE.txt %doc LICENSE.txt
%dir %{_datadir}/goldendict/ %dir %{_datadir}/goldendict/
%dir %{_datadir}/goldendict/locale/
%{_bindir}/goldendict %{_bindir}/goldendict
%{_datadir}/applications/goldendict.desktop %{_datadir}/applications/goldendict.desktop
%{_datadir}/pixmaps/goldendict.png %{_datadir}/pixmaps/goldendict.png
%{_datadir}/goldendict/locale/*.qm
%changelog %changelog
* Fri Jan 17 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.2.RC1
- Use %%qmake_qt4 and %%find_lang as suggestion
- by Christopher Meng (cickumqt/gmail.com)
* Tue Jan 14 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.1.RC1 * Tue Jan 14 2014 Mosaab Alzoubi <moceap@hotmail.com> - 1.5-0.1.RC1
- Update to 1.5RC. - Update to 1.5RC.
- General clean of spec. - General clean of spec.

Loading…
Cancel
Save