From 07f301f25e196c9d68bc86ceb835be282b6664ee Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Jan 24 2009 15:33:50 +0000 Subject: - initial rawhide import --- diff --git a/.cvsignore b/.cvsignore index e69de29..d0532ba 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mnemosyne-1.1.1-r1.tgz diff --git a/mnemosyne-desktop.patch b/mnemosyne-desktop.patch new file mode 100644 index 0000000..6f6c427 --- /dev/null +++ b/mnemosyne-desktop.patch @@ -0,0 +1,14 @@ +diff -up mnemosyne-1.1.1/mnemosyne.desktop.d mnemosyne-1.1.1/mnemosyne.desktop +--- mnemosyne-1.1.1/mnemosyne.desktop.d 2008-09-15 20:20:01.000000000 +0200 ++++ mnemosyne-1.1.1/mnemosyne.desktop 2008-11-11 18:08:16.000000000 +0100 +@@ -1,8 +1,8 @@ + [Desktop Entry] + Name=Mnemosyne +-Comment=A flash card program to make your review process more efficient ++Comment=Make your review process more efficient + Exec=mnemosyne %f + Icon=mnemosyne +-Categories=Education ++Categories=Education;Languages; + Terminal=false + Type=Application diff --git a/mnemosyne.spec b/mnemosyne.spec new file mode 100644 index 0000000..e883fba --- /dev/null +++ b/mnemosyne.spec @@ -0,0 +1,87 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: mnemosyne +Summary: Flash-card learning tool +Version: 1.1.1 +Release: 3.r1%{?dist} +URL: http://www.mnemosyne-proj.org/ +Source0: http://downloads.sourceforge.net/sourceforge/mnemosyne-proj/%{name}-%{version}-r1.tgz +Patch0: %{name}-desktop.patch +License: GPLv2+ +Group: Amusements/Games +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) +BuildRequires: desktop-file-utils +BuildRequires: python-setuptools-devel +BuildArch: noarch +Requires: hicolor-icon-theme +Requires: pygame +Requires: PyQt + +%description +Mnemosyne resembles a traditional flash-card program but with an +important twist: it uses a sophisticated algorithm to schedule the best +time for a card to come up for review. + +Optional dependencies: +* latex: enables entering formulas using latex syntax. + +%prep +%setup -q +%patch0 -p1 -b .d + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%install +rm -rf %{buildroot} + +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +install -d %{buildroot}%{_datadir}/applications +desktop-file-install --vendor="" \ + --dir=%{buildroot}%{_datadir}/applications \ + %{name}.desktop + +install -d %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps +pushd %{buildroot}/%{_datadir}/icons +mv %{name}.png hicolor/128x128/apps/%{name}.png +popd + +%clean +rm -rf %{buildroot} + +%post +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog LICENSE README +%{_bindir}/%{name} +%{python_sitelib}/%{name} +%{python_sitelib}/Mnemosyne-%{version}-*.egg-info +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png + +%changelog +* Tue Nov 11 2008 Dominik Mierzejewski 1.1.1-3.r1 +- fixed .desktop file comment to conform to GNOME HIG +- removed a redundant python setup.py install call +- moved the .desktop file category addition to the patch +- added missing hicolor-icon-theme-requires + +* Fri Oct 03 2008 Dominik Mierzejewski 1.1.1-2.r1 +- updated to 1.1.1-r1 +- dropped separate icon (fixed upstream) + +* Thu Sep 11 2008 Dominik Mierzejewski 1.1.1-1 +- initial package +- include fixed icon from 1.1 diff --git a/sources b/sources index e69de29..5dca617 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2c08f6b0465f3280fcd2b17960b797bc mnemosyne-1.1.1-r1.tgz