Summary: A multi-purpose desktop calculator for GNU/Linux Name: qalculate-kde Version: 0.9.7 Release: 10%{?dist} License: GPLv2+ Group: Applications/Engineering URL: http://qalculate.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: qalculate_kde-desktop.patch # fix FTBFS with g++ 4.7 Patch1: qalculate-kde-0.9.7-gcc47.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libqalculate-devel, kdelibs3-devel, gettext BuildRequires: desktop-file-utils, pkgconfig Requires: gnuplot %description Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. It is small and simple to use but with much power and versatility underneath. Features include customizable functions, units, arbitrary precision, plotting. This package provides a QT/KDE graphical interface for Qalculate! %prep %setup -q %patch0 -p0 -b .desktop %patch1 -p1 -b .gcc47 %build unset QTDIR || : ; . %{_sysconfdir}/profile.d/qt.sh export QTLIB=${QTDIR}/lib QTINC=${QTDIR}/include %configure --disable-rpath make %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install desktop-file-install --delete-original \ %if 0%{?fedora} && 0%{?fedora} < 19 --vendor fedora \ %endif --dir %{buildroot}%{_datadir}/applications \ --mode 0644 \ %{buildroot}%{_datadir}/applications/kde/qalculate_kde.desktop %find_lang qalculate_kde || touch qalculate_kde.lang HTML_DIR=$(kde-config --expandvars --install html) if [ -d %{buildroot}$HTML_DIR ]; then for lang_dir in %{buildroot}$HTML_DIR/* ; do lang=$(basename $lang_dir) echo "%lang($lang) %doc $HTML_DIR/$lang/*" >> qalculate_kde.lang done fi rm -rf %{buildroot}/%{_bindir}/qalculate %clean rm -rf %{buildroot} %post touch --no-create %{_datadir}/icons/hicolor || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f qalculate_kde.lang %defattr(-, root, root,-) %doc AUTHORS ChangeLog COPYING %{_bindir}/qalculate-kde %if 0%{?fedora} && 0%{?fedora} < 19 %{_datadir}/applications/fedora-qalculate_kde.desktop %else %{_datadir}/applications/qalculate_kde.desktop %endif %{_datadir}/apps/qalculate_kde/ %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/actions/* %changelog * Sun Jun 08 2014 Fedora Release Engineering - 0.9.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.9.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 22 2013 Toshio Kuratomi - 0.9.7-8 - Remove --vendor from desktop-file-install https://fedorahosted.org/fesco/ticket/1077 * Thu Feb 14 2013 Fedora Release Engineering - 0.9.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jul 31 2012 Kevin Kofler - 0.9.7-6 - Fix FTBFS with g++ 4.7 * Sat Jul 21 2012 Fedora Release Engineering - 0.9.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.9.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.9.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 09 2010 Deji Akingunola - 0.9.7-2 - BR desktop-file-utils to build on F15 * Fri Jan 29 2010 Deji Akingunola - 0.9.7-1 - Update to 0.9.7 * Sun Jul 26 2009 Fedora Release Engineering - 0.9.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Jul 05 2009 Deji Akingunola - 0.9.6-8 - Rebuild for cln-1.3.0 * Thu Feb 26 2009 Deji Akingunola - 0.9.6-7 - Rebuild after the last rebuild failed because of kdelibs4/3 conflicts * Wed Feb 25 2009 Fedora Release Engineering - 0.9.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 27 2008 Deji Akingunola - 0.9.6-5 - Rebuild for cln-1.2 * Sun Feb 10 2008 Deji Akingunola - 0.9.6-4 - Rebuild for gcc43 * Thu Jan 10 2008 Deji Akingunola - 0.9.6-3 - Now BR kdelibs3 instead of kdelibs * Sat Aug 25 2007 Deji Akingunola - 0.9.6-2 - Rebuild * Fri Aug 03 2007 Deji Akingunola - 0.9.6-2 - License tag update * Sun Jul 01 2007 Deji Akingunola - 0.9.6-1 - Update to new release * Sat Jun 09 2007 Deji Akingunola - 0.9.5-2 - Modify the Name field in the desktop file to distinguish it from that of qalculate-gtk (BZ #241024) * Tue Jan 02 2007 Deji Akingunola - 0.9.5-1 - New release * Mon Aug 28 2006 Deji Akingunola - 0.9.4-3 - Rebuild for FC6 * Mon Jul 24 2006 Deji Akingunola - 0.9.4-2 - Add another BR on autoconf and automake16 * Wed Jun 27 2006 Deji Akingunola - 0.9.4-1 - New version 0.9.4 * Thu Mar 30 2006 Deji Akingunola - 0.9.3.1-2 - Update the icons location * Thu Mar 30 2006 Deji Akingunola - 0.9.3.1-1 - Update to newer version * Mon Feb 13 2006 Deji Akingunola - 0.9.2-2 - Rebuild for Fedora Extras 5 * Tue Dec 27 2005 Deji Akingunola - 0.9.2-1 - Upgrade to new version * Sat Nov 05 2005 Deji Akingunola - 0.9.0-1 - Upgrade to new version * Thu Oct 13 2005 Paul Howarth - 0.8.2-2 - Rationalise buildreqs and runtime dependencies - Rationalise desktop entries - Use standard Fedora Extras idioms for QT env setup & file lists - Add %%clean section - Don't generate rpaths - Don't include empty TODO file * Tue Oct 11 2005 Deji Akingunola - 0.8.2-1 - Upgraded to new version - Install the desktop file - Miscellaneous spec file cleanup * Wed Oct 05 2005 Deji Akingunola - 0.8.1.1 - Initial package