diff --git a/alexandria-0.6.5-crash-in-turkish.patch b/alexandria-0.6.5-crash-in-turkish.patch new file mode 100644 index 0000000..6ed09ca --- /dev/null +++ b/alexandria-0.6.5-crash-in-turkish.patch @@ -0,0 +1,15 @@ +Index: lib/alexandria/ui/icons.rb +=================================================================== +--- lib/alexandria/ui/icons.rb (revision 1087) ++++ lib/alexandria/ui/icons.rb (working copy) +@@ -63,7 +63,9 @@ + def self.load_icon_images + Dir.entries(ICONS_DIR).each do |file| + next unless file =~ /\.png$/ # skip non '.png' files +- name = File.basename(file, ".png").upcase ++ # Don't use upcase and use tr instead ++ # For example in Turkish the upper case of 'i' is still 'i'. ++ name = File.basename(file, ".png").tr('a-z', 'A-Z') + const_set(name, Gdk::Pixbuf.new(File.join(ICONS_DIR, file))) + end + end diff --git a/alexandria.spec b/alexandria.spec index 5d2325d..1f8289f 100644 --- a/alexandria.spec +++ b/alexandria.spec @@ -5,7 +5,7 @@ %define majorver 0.6.5 %undefine minorver -%define fedorarel 5 +%define fedorarel 6 %define rel %{?minorver:0.}%{fedorarel}%{?minorver:.%minorver} @@ -32,6 +32,10 @@ Patch4: alexandria-0.6.5-search-result-sanity-check.patch # contain Author item # ref: alexandria-Bugs-27000 Patch5: alexandria-0.6.5-deastore-author-missing.patch +# Alexandria crashes in tr_TR.UTF-8 on startup +# RH bug 520170 +# Must report upstream +Patch6: alexandria-0.6.5-crash-in-turkish.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -85,6 +89,7 @@ Alexandria is a GNOME application to help you manage your book collection. %patch3 -p0 -b .glib %patch4 -p0 -b .sanity %patch5 -p0 -b .deastore +%patch6 -p0 -b .tr_TR # Embed Fedora EVR %{__sed} -i.evr \ @@ -211,6 +216,9 @@ exit 0 %{_datadir}/icons/hicolor/*/apps/%{name}.* %changelog +* Sat Aug 28 2009 Mamoru Tasaka - 0.6.5-6 +- Fix crash on startup in tr_TR.UTF-8 (bug 520170) + * Thu Aug 27 2009 Mamoru Tasaka - 0.6.5-5 - Add sanity check for invalid search result, now using upstream patch - Fix DeaStore provider where search result contains no Author