From ee7e5fbbd401373ec639f7db2254729db0e2f30a Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Apr 07 2015 20:57:34 +0000 Subject: Update to new upstream version 2.0.32 (BZ 1205471) - Move icon to %{_datadir}/icons/hicolor/scalable/apps - Modify svg icon to use only the subset of the SVG specification which is implemented by Qt's SVG library - Add keywords to desktop file --- diff --git a/.gitignore b/.gitignore index ff4421c..1eed3d6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ anki-1.0.1.tgz /anki-2.0.26.tgz /anki-2.0.28.tgz /anki-2.0.31.tgz +/anki-2.0.32.tgz diff --git a/anki.spec b/anki.spec index bc1028b..8b1d872 100644 --- a/anki.spec +++ b/anki.spec @@ -1,7 +1,7 @@ %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: anki -Version: 2.0.31 +Version: 2.0.32 Release: 1%{?dist} Summary: Flashcard program for using space repetition learning @@ -16,6 +16,7 @@ Source2: anki.appdata.xml Patch0: anki-2.0.3-noupdate.patch BuildRequires: python2-devel, python-setuptools, python-sqlalchemy BuildRequires: desktop-file-utils, PyQt4, python-simplejson +Requires: hicolor-icon-theme Requires: qt4, PyQt4 Requires: python-sqlalchemy, python-simplejson Requires: python-matplotlib @@ -57,8 +58,8 @@ install -m 644 README* %{buildroot}%{_pkgdocdir}/ install -d %{buildroot}%{_datadir}/mime/packages install -m 644 anki.xml %{buildroot}%{_datadir}/mime/packages -install -d %{buildroot}%{_datadir}/pixmaps -install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/ +install -d %{buildroot}%{_datadir}/icons/hicolor/scalable/apps +install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ install -d %{buildroot}%{_mandir}/man1 install -m 644 anki.1 %{buildroot}%{_mandir}/man1/ @@ -68,6 +69,7 @@ install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/ desktop-file-install \ --remove-category=KDE \ + --set-key=Keywords --set-value="learn;education;memorizing;language;flashcard;spaced repetition;" \ --dir %{buildroot}%{_datadir}/applications \ %{name}.desktop @@ -86,10 +88,18 @@ s:\(.*\):%dir \1:' >>anki.lang %post /usr/bin/update-desktop-database &> /dev/null || : /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /usr/bin/update-desktop-database &> /dev/null || : /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %doc LICENSE.* README* @@ -100,12 +110,19 @@ s:\(.*\):%dir \1:' >>anki.lang %{_datadir}/%{name}/anki/ %{_datadir}/%{name}/thirdparty/ %{_datadir}/applications/%{name}.desktop -%{_datadir}/pixmaps/%{name}.* +%{_datadir}/icons/hicolor/scalable/apps/%{name}.* %{_datadir}/mime/packages/anki.xml %{_mandir}/man1/%{name}.* %{_datadir}/appdata/anki.appdata.xml %changelog +* Sun Apr 05 2015 Christian Krause - 2.0.32-1 +- Update to new upstream version 2.0.32 (BZ 1205471) +- Move icon to %%{_datadir}/icons/hicolor/scalable/apps +- Modify svg icon to use only the subset of the SVG specification + which is implemented by Qt's SVG library +- Add keywords to desktop file + * Mon Nov 03 2014 Christian Krause - 2.0.31-1 - Update to new upstream version 2.0.31 (BZ 1144973) diff --git a/anki.svg b/anki.svg index ecd7797..7a24e83 100644 --- a/anki.svg +++ b/anki.svg @@ -14,23 +14,10 @@ height="33" id="svg3652" version="1.1" - inkscape:version="0.48.1 r9760" - sodipodi:docname="New document 10"> + inkscape:version="0.48.5 r10040" + sodipodi:docname="anki.svg"> - - - + + + + + + + inkscape:window-width="1920" + inkscape:window-height="1145" + inkscape:window-x="-2" + inkscape:window-y="-3" + inkscape:window-maximized="1" + inkscape:snap-global="false" /> @@ -160,83 +206,72 @@ inkscape:groupmode="layer" id="layer1" transform="translate(0,-1019.3622)"> - - - - - - - - + + + + + + diff --git a/sources b/sources index 014dbba..7be6088 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7e75a9c44897ba608c0dda2c0e1a096f anki-2.0.31.tgz +2186925ffa068017a30734e75b8a8ad7 anki-2.0.32.tgz