rpms/anki/F-11 anki-0.9.9.8.6-noupdate.patch, NONE, 1.1 generate-anki-tarball.sh, 1.2, 1.3 .cvsignore, 1.8, 1.9 anki.spec, 1.10, 1.11 sources, 1.8, 1.9 anki-0.9.9.7.8-noupdate.patch, 1.1, NONE

chkr chkr at fedoraproject.org
Sun Feb 21 23:54:15 UTC 2010


Author: chkr

Update of /cvs/pkgs/rpms/anki/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13153

Modified Files:
	.cvsignore anki.spec sources 
Added Files:
	anki-0.9.9.8.6-noupdate.patch generate-anki-tarball.sh 
Removed Files:
	anki-0.9.9.7.8-noupdate.patch 
Log Message:
* Mon Feb 22 2010 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.6-1
- Update to new upstream version
- Remove example files from upstream tarball due to unknown license
- Updated noupdate patch


anki-0.9.9.8.6-noupdate.patch:
 config.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE anki-0.9.9.8.6-noupdate.patch ---
diff -uNr anki-0.9.9.8.6.old/ankiqt/config.py anki-0.9.9.8.6/ankiqt/config.py
--- anki-0.9.9.8.6.old/ankiqt/config.py	2010-02-12 10:01:03.000000000 +0100
+++ anki-0.9.9.8.6/ankiqt/config.py	2010-02-19 22:46:05.000000000 +0100
@@ -43,7 +43,7 @@
         fields = {
             'addZeroSpace': False,
             'alternativeTheme': False,
-            'checkForUpdates': True,
+            'checkForUpdates': False,
             'created': time.time(),
             'deckBrowserNameLength': 30,
             'deckBrowserOrder': 0,


Index: generate-anki-tarball.sh
===================================================================
RCS file: generate-anki-tarball.sh
diff -N generate-anki-tarball.sh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ generate-anki-tarball.sh	21 Feb 2010 23:54:12 -0000	1.3
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+VERSION=$1
+
+tar -xzvf anki-$VERSION.tgz
+rm -rf anki-$VERSION/libanki/tests/importing/*.xml
+
+tar -czvf anki-$VERSION-nosamples.tgz anki-$VERSION
+


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-11/.cvsignore,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- .cvsignore	11 Jul 2009 22:51:12 -0000	1.8
+++ .cvsignore	21 Feb 2010 23:54:12 -0000	1.9
@@ -1 +1 @@
-anki-0.9.9.8.5.tgz
+anki-0.9.9.8.6-nosamples.tgz


Index: anki.spec
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-11/anki.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- anki.spec	11 Jul 2009 22:51:12 -0000	1.10
+++ anki.spec	21 Feb 2010 23:54:12 -0000	1.11
@@ -1,7 +1,7 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:		anki
-Version:	0.9.9.8.5
+Version:	0.9.9.8.6
 Release:	1%{?dist}
 Summary:	Flashcard program for using space repetition learning
 
@@ -10,18 +10,24 @@ Group:		Amusements/Games
 # was created out of  Unihan.txt from www.unicode.org (MIT license)
 License:	GPLv3+ and MIT
 URL:		http://www.ichi2.net/anki
-Source0:	http://ichi2.net/anki/download/files/%{name}-%{version}.tgz
+Source0:       %{name}-%{version}-nosamples.tgz
+# anki contains samples 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:
+# sh generate-anki-tarball.sh 0.9.9.8.6
+# upstream tarball: http://anki.googlecode.com/files/%{name}-%{version}.tgz
+Source1:       generate-anki-tarball.sh
 
 # Config change: don't check for new updates.
-Patch0:		anki-0.9.9.7.8-noupdate.patch
+Patch0:		anki-0.9.9.8.6-noupdate.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	python-devel, python-setuptools, python-sqlalchemy
-BuildRequires:	PyQt4-devel
-BuildRequires:	desktop-file-utils
+BuildRequires:	desktop-file-utils, PyQt4
 Requires:	qt4, PyQt4
 Requires:	python-sqlalchemy, python-simplejson, python-sqlite2
 Requires:	python-matplotlib
-Requires:	pygame
+Requires:	pygame, python-BeautifulSoup
 BuildArch:	noarch
 
 %description
@@ -58,11 +64,19 @@ desktop-file-install \
 install -d %{buildroot}%{_datadir}/pixmaps
 install -m 644 icons/anki.png %{buildroot}%{_datadir}/pixmaps/
 
+find %{buildroot} -type f -o -type l|sed '
+s:'"%{buildroot}"'::
+s:\(.*/lib/python2.6/site-packages/ankiqt/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
+s:\(.*/lib/python2.6/site-packages/anki/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
+s:^\([^%].*\)::
+s:%lang(C) ::
+/^$/d' > anki.lang
+
 %clean
 rm -rf %{buildroot}
 
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc COPYING ChangeLog CREDITS README*
 # libankiqt
@@ -78,29 +92,11 @@ rm -rf %{buildroot}
 
 # locale
 %dir %{python_sitelib}/ankiqt/locale/
+%dir %{python_sitelib}/ankiqt/locale/*
+%dir %{python_sitelib}/ankiqt/locale/*/LC_MESSAGES
 %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}/*/locale/zh*/
-%lang(sv) %{python_sitelib}/*/locale/sv*/
-%lang(pt) %{python_sitelib}/*/locale/pt*/
-%lang(eo) %{python_sitelib}/*/locale/eo*/
-%lang(et) %{python_sitelib}/*/locale/et*/
-%lang(nl) %{python_sitelib}/*/locale/nl*/
-%lang(ro) %{python_sitelib}/*/locale/ro*/
-%lang(ru) %{python_sitelib}/*/locale/ru*/
-%lang(mn) %{python_sitelib}/*/locale/mn*/
-%lang(nb) %{python_sitelib}/*/locale/nb*/
-%lang(he) %{python_sitelib}/*/locale/he*/
-%lang(ar) %{python_sitelib}/*/locale/ar*/
-%lang(hu) %{python_sitelib}/*/locale/hu*/
+%dir %{python_sitelib}/anki/locale/*
+%dir %{python_sitelib}/anki/locale/*/LC_MESSAGES
 
 %{python_sitelib}/*egg-info
 %{_bindir}/anki
@@ -108,6 +104,11 @@ rm -rf %{buildroot}
 %{_datadir}/pixmaps/%{name}.png
 
 %changelog
+* Mon Feb 22 2010 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.6-1
+- Update to new upstream version
+- Remove example files from upstream tarball due to unknown license
+- Updated noupdate patch
+
 * Sun Jul 12 2009 Christian Krause <chkr at fedoraproject.org> - 0.9.9.8.5-1
 - Update to new upstream version 0.9.9.8.5
 - fix %%lang tags


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-11/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- sources	11 Jul 2009 22:51:12 -0000	1.8
+++ sources	21 Feb 2010 23:54:12 -0000	1.9
@@ -1 +1 @@
-42c8f6ba29e5052b8e3323a89b76b20b  anki-0.9.9.8.5.tgz
+919c9c2cfb55507a7406e829e85ff71a  anki-0.9.9.8.6-nosamples.tgz


--- anki-0.9.9.7.8-noupdate.patch DELETED ---



More information about the scm-commits mailing list