rpms/anki/F-10 anki-0.9.9.6-noupdate.patch, NONE, 1.1 anki-0.9.9.6-unihaninstall.patch, NONE, 1.1 anki.spec, NONE, 1.1 generate-anki-tarball.sh, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Christian Krause
chkr at fedoraproject.org
Sun Mar 1 21:22:27 UTC 2009
- Previous message: rpms/kdegraphics/devel .cvsignore,1.56,1.57 sources,1.63,1.64
- Next message: rpms/uml_utilities/devel import.log, NONE, 1.1 uml_utilities.spec, NONE, 1.1 uml_utilities_20070815-install.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: chkr
Update of /cvs/pkgs/rpms/anki/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23694/F-10
Modified Files:
.cvsignore sources
Added Files:
anki-0.9.9.6-noupdate.patch anki-0.9.9.6-unihaninstall.patch
anki.spec generate-anki-tarball.sh import.log
Log Message:
- initial import of anki 0.9.9.6
anki-0.9.9.6-noupdate.patch:
--- NEW FILE anki-0.9.9.6-noupdate.patch ---
diff -uNr anki-0.9.9.6.old/ankiqt/config.py anki-0.9.9.6/ankiqt/config.py
--- anki-0.9.9.6.old/ankiqt/config.py 2009-01-21 14:53:21.000000000 +0100
+++ anki-0.9.9.6/ankiqt/config.py 2009-02-11 23:18:16.000000000 +0100
@@ -44,7 +44,7 @@
'iconSize': 32,
'syncOnLoad': False,
'syncOnClose': False,
- 'checkForUpdates': True,
+ 'checkForUpdates': False,
'interfaceLang': "",
'syncUsername': "",
'syncPassword': "",
anki-0.9.9.6-unihaninstall.patch:
--- NEW FILE anki-0.9.9.6-unihaninstall.patch ---
diff -uNr anki-0.9.9.6.old/libanki/setup.py anki-0.9.9.6/libanki/setup.py
--- anki-0.9.9.6.old/libanki/setup.py 2009-01-21 14:51:33.000000000 +0100
+++ anki-0.9.9.6/libanki/setup.py 2009-02-13 22:14:15.000000000 +0100
@@ -25,8 +25,8 @@
url='http://ichi2.net/anki/index.html',
license='GPLv3',
packages=["anki", "anki.features", "anki.features.chinese", "anki.importing"],
- package_data={'anki':
- ['samples/*','locale/*/*/*']},
+ package_data={'anki': ['samples/*','locale/*/*/*'],
+ 'anki.features.chinese': ['unihan.db']},
include_package_data=True,
zip_safe=False,
install_requires=[
--- NEW FILE anki.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: anki
Version: 0.9.9.6
Release: 3%{?dist}
Summary: Flashcard program for using space repetition learning
Group: Amusements/Games
# the file anki-%{version}/libanki/anki/features/chinese/unihan.db
# was created out of Unihan.txt from www.unicode.org (MIT license)
License: GPLv3+ and MIT
URL: http://www.ichi2.net/anki
Source0: %{name}-%{version}-nosamples.tgz
# anki contains a sample with an unclear license
# this script to remove all samples since they are not installed anyway
# Download the upstream tarball and invoke this script while in the
# tarball's directory:
# ./generate-anki-tarball.sh 0.9.9.6
# upstream tarball: http://ichi2.net/anki/download/%{name}-%{version}.tgz
Source1: generate-anki-tarball.sh
# Config change: don't check for new updates.
Patch0: anki-0.9.9.6-noupdate.patch
# install issue tracked upstream:
# http://code.google.com/p/anki/issues/detail?id=561
Patch1: anki-0.9.9.6-unihaninstall.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel, python-setuptools, python-sqlalchemy
BuildRequires: PyQt4-devel
BuildRequires: desktop-file-utils
Requires: qt4, PyQt4
Requires: python-sqlalchemy, python-simplejson, python-sqlite2
Requires: numpy
Requires: pygame
BuildArch: noarch
%description
Anki is a program designed to help you remember facts (such as words
and phrases in a foreign language) as easily, quickly and efficiently
as possible. Anki is based on a theory called spaced repetition.
%prep
%setup -q
%patch0 -p1 -b .noupdate
%patch1 -p1 -b .unihaninstall
%build
pushd libanki
%{__python} setup.py build
popd
%{__python} setup.py build
%install
rm -rf %{buildroot}
pushd libanki
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
install -d %{buildroot}%{_datadir}/applications
desktop-file-install \
--remove-category=KDE \
--dir %{buildroot}%{_datadir}/applications \
%{name}.desktop
install -d %{buildroot}%{_datadir}/pixmaps
install -m 644 icons/anki.png %{buildroot}%{_datadir}/pixmaps/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog CREDITS README*
# libankiqt
%dir %{python_sitelib}/ankiqt
%{python_sitelib}/ankiqt/*.py*
%{python_sitelib}/ankiqt/ui
%{python_sitelib}/ankiqt/forms
# libanki
%dir %{python_sitelib}/anki
%{python_sitelib}/anki/*.py*
%{python_sitelib}/anki/importing
%{python_sitelib}/anki/features
# locale
%dir %{python_sitelib}/ankiqt/locale/
%dir %{python_sitelib}/anki/locale/
%lang(cs) %{python_sitelib}/*/locale/cs_*/
%lang(de) %{python_sitelib}/*/locale/de_*/
%lang(es) %{python_sitelib}/*/locale/es_*/
%lang(fi) %{python_sitelib}/*/locale/fi_*/
%lang(fr) %{python_sitelib}/*/locale/fr_*/
%lang(it) %{python_sitelib}/*/locale/it_*/
%lang(ja) %{python_sitelib}/*/locale/ja_*/
%lang(ko) %{python_sitelib}/*/locale/ko_*/
%lang(pl) %{python_sitelib}/*/locale/pl_*/
%lang(zh) %{python_sitelib}/anki/locale/zh_*/
%{python_sitelib}/*egg-info
%{_bindir}/anki
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Fri Feb 27 2009 Christian Krause <chkr at plauener.de> - 0.9.9.6-3
- proper packaging of locale files
* Fri Feb 13 2009 Christian Krause <chkr at plauener.de> - 0.9.9.6-2
- Fixed license field
- Install unihan.db
* Wed Feb 11 2009 Christian Krause <chkr at plauener.de> - 0.9.9.6-1
- First spec file for anki.
--- NEW FILE generate-anki-tarball.sh ---
#!/bin/sh
VERSION=$1
tar -xzvf anki-$VERSION.tgz
rm -rf anki-$VERSION/libanki/samples
tar -czvf anki-$VERSION-nosamples.tgz anki-$VERSION
--- NEW FILE import.log ---
anki-0_9_9_6-3_fc10:F-10:anki-0.9.9.6-3.fc10.src.rpm:1235942369
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Mar 2009 00:28:33 -0000 1.1
+++ .cvsignore 1 Mar 2009 21:21:56 -0000 1.2
@@ -0,0 +1 @@
+anki-0.9.9.6-nosamples.tgz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Mar 2009 00:28:33 -0000 1.1
+++ sources 1 Mar 2009 21:21:56 -0000 1.2
@@ -0,0 +1 @@
+0f029c744c849a5e2ca7f95df119c59f anki-0.9.9.6-nosamples.tgz
- Previous message: rpms/kdegraphics/devel .cvsignore,1.56,1.57 sources,1.63,1.64
- Next message: rpms/uml_utilities/devel import.log, NONE, 1.1 uml_utilities.spec, NONE, 1.1 uml_utilities_20070815-install.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list