%define build_with_qt5 1 Name: fet Summary: Free Timetabling Software Version: 5.23.3 Release: %mkrel 3 Group: Education License: GPLv2+ URL: http://lalescu.ro/liviu/fet Source0: http://lalescu.ro/liviu/fet/download/%{name}-%{version}.tar.bz2 # http://lalescu.ro/liviu/fet/forum/index.php?topic=1813.0 Patch0: %{name}-%{version}-upstream-desktop-file.patch %if %{build_with_qt5} BuildRequires: qt5-devel BuildRequires: qttools5 %else BuildRequires: qt4-devel %endif %description FET is free timetabling software. This program aims to automatically generate the timetable of a school, high-school or university. It may be used for other timetabling purposes. FET can mean "Free Educational Timetabling" (the "E" in the middle may also stand for other words, based on your personal preference). %prep %setup -q rm -rf translations/*.qm %patch0 -p1 %build # build translation files %if %{build_with_qt5} %{_qt5_bindir}/lupdate %{name}.pro pushd translations %{_qt5_bindir}/lrelease *.ts popd %else %{_qt4_bindir}/lupdate %{name}.pro pushd translations %{_qt4_bindir}/lrelease *.ts popd %endif %if %{build_with_qt5} %qmake_qt5 DEFINES+=USE_SYSTEM_LOCALE %else %qmake_qt4 DEFINES+=USE_SYSTEM_LOCALE %endif %make %install %makeinstall INSTALL_ROOT=%{buildroot} %files %{_docdir}/%{name} %{_bindir}/%{name}* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.* %{_iconsdir}/hicolor/scalable/apps/%{name}.* %dir %{_datadir}/%{name} %{_datadir}/%{name}/examples %dir %{_datadir}/%{name}/translations %{_datadir}/%{name}/translations/*.qm %{_mandir}/man1/%{name}*.1.xz %changelog * Fri Nov 28 2014 alexl <alexl> 5.23.3-3.mga5 + Revision: 799760 - used different Name and GenericName for ru (patch from new version) * Wed Oct 15 2014 umeabot <umeabot> 5.23.3-2.mga5 + Revision: 746501 - Second Mageia 5 Mass Rebuild * Wed Oct 01 2014 alexl <alexl> 5.23.3-1.mga5 + Revision: 733880 - new version 5.23.3 - deleted fet.xpm, because fet provides own icons now - rewrote spec, because all things were included into upstream * Fri Sep 19 2014 alexl <alexl> 5.23.0-4.mga5 + Revision: 697388 - rebuilt with qt5 * Tue Sep 16 2014 umeabot <umeabot> 5.23.0-3.mga5 + Revision: 679162 - Mageia 5 Mass Rebuild * Fri Aug 01 2014 alexl <alexl> 5.23.0-2.mga5 + Revision: 659130 - translated desktop file * Sun Jul 20 2014 alexl <alexl> 5.23.0-1.mga5 + Revision: 654845 - version 5.23.0 * Tue Apr 08 2014 alexl <alexl> 5.21.0-1.mga5 + Revision: 612874 - imported package fet