%define srcname src-al-anvar Name: al-anvar Version: 0.5.0 Release: %mkrel 2 Summary: Holy Quran Study Software Group: Editors URL: http://sourceforge.net/projects/al-anvar/ Source0: http://sourceforge.net/projects/al-anvar/files/%{version}/%{srcname}-%{version}.tar.gz Source1: Turkish.xml Patch0: al-anvar-0.5.0-mga-turkish_locale.patch Patch1: al-anvar-0.5.0-mga-fix_ui_Z_order_assignment.patch License: GPLv3 BuildRequires: %{_lib}qt4-devel Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Requires: %{_lib}qtcore4 Requires: fonts-ttf-al-anvar-scheherazade Requires: fonts-ttf-al-anvar-irsans Requires: fonts-ttf-al-anvar-noorehira %description Al-Anvar is a cross-platform Quran Study Software. It uses "Tanzil.net" and "Zekr.org" database as its database, It has lots of features: - Text of the Quran - Adding different translations of the Quran - Adding interpretation of the Quran - Direct download and install for translations and interpretations and so on through program - Comparison between translations - Comparison between interpretations - Putting note in the following of each verse - Classifying the subject for verses of the Quran (with classifying the subject possibility by user) - Repeated verses - Related verses in terms of subject - Reading online Quran (with storing downloaded files) and offline by different readers of the Quran from website http://everyayah.com - Repeat adjustment of reading of verses - reading verses in the range a chapter (sura) or a division or a component. - Advanced search - Presenting chapters or chapters on different tabs - Saving with Html, PDF and ODF formats - Changing the font and color and size of the text and translations of the Quran and also font, style and themes of software separately %package -n fonts-ttf-al-anvar-scheherazade Group: System/Fonts/True type Summary: Scheherazade TrueType fonts BuildArch: noarch Conflicts: al-anvar < 0.5.0-2 %description -n fonts-ttf-al-anvar-scheherazade This package provides scheherazade TrueType fonts. %package -n fonts-ttf-al-anvar-irsans Group: System/Fonts/True type Summary: Irsans TrueType fonts BuildArch: noarch Conflicts: al-anvar < 0.5.0-2 %description -n fonts-ttf-al-anvar-irsans This package provides irsans TrueType fonts. %package -n fonts-ttf-al-anvar-noorehira Group: System/Fonts/True type Summary: Noorehira TrueType fonts BuildArch: noarch Conflicts: al-anvar < 0.5.0-2 %description -n fonts-ttf-al-anvar-noorehira This package provides noorehira TrueType fonts. %prep %setup -q -n %{srcname}-%{version} %patch0 -p1 %patch1 -p1 %build install -m 644 %{_sourcedir}/Turkish.xml %{_builddir}/%{srcname}-%{version}/language/Turkish.xml %qmake_qt4 %install %make INSTALL_ROOT=%{buildroot} install mkdir -p %{buildroot}%{_datadir}/{applications,icons} mv %{buildroot}%{_datadir}/app-install/desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/ mv %{buildroot}%{_datadir}/app-install/icons/alanvar.png %{buildroot}%{_iconsdir}/alanvar.png rm -r %{buildroot}%{_datadir}/app-install #---------------------------------------------------------------------------- %files %doc README COPYING INSTALL %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/alanvar*.png %{_iconsdir}/*.png %files -n fonts-ttf-al-anvar-scheherazade %dir %{_xfontdir}/truetype/font-al-anvar %{_xfontdir}/truetype/font-al-anvar/ScheherazadeRegOT.ttf %files -n fonts-ttf-al-anvar-irsans %dir %{_xfontdir}/truetype/font-al-anvar %{_xfontdir}/truetype/font-al-anvar/irsans.ttf %files -n fonts-ttf-al-anvar-noorehira %dir %{_xfontdir}/truetype/font-al-anvar %{_xfontdir}/truetype/font-al-anvar/noorehira.ttf %changelog * Wed Apr 24 2013 lmenut <lmenut> 0.5.0-2.mga3 + Revision: 411106 - split fonts in noarch sub-packages (mga #9225, #8820) * Sat Mar 30 2013 zezinho <zezinho> 0.5.0-1.mga3 + Revision: 406740 - imported package al-anvar