Переглянути джерело

modifying package: kwiki-0.37 20050121 -> 20050127

Thorsten Hohmeier 21 роки тому
батько
коміт
73804b95dc
2 змінених файлів з 6 додано та 44 видалено
  1. 3 41
      kwiki/kwiki.patch
  2. 3 3
      kwiki/kwiki.spec

+ 3 - 41
kwiki/kwiki.patch

@@ -174,47 +174,9 @@ Index: Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm
 +iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAADaAn0LAAAABlBMVEX/////AADrWueTAAAAAXRS
 +TlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfVAQ4RAjhU
 +SGrkAAAAFElEQVQI12OwYZBhsGEoYUhgSAAACQQByefTiF8AAAAASUVORK5CYII=
-Index: Kwiki-Notify-Mail-0.02/lib/Kwiki/Notify/Mail.pm
---- Kwiki-Notify-Mail-0.02/lib/Kwiki/Notify/Mail.pm.orig	2004-09-01 02:11:53 +0200
-+++ Kwiki-Notify-Mail-0.02/lib/Kwiki/Notify/Mail.pm	2005-01-14 18:08:08 +0100
-@@ -14,30 +14,30 @@
- const config_file => 'notify_mail.yaml';
- 
- sub debug {
--    my $debug = $self->config->notify_mail_debug || 0;
-+    my $debug = $self->hub->config->notify_mail_debug || 0;
-     return $debug;
- }
- 
- sub register {
-     my $registry = shift;
--    $registry->add(page_hook_store => 'notify');
-+    $registry->add(hook => 'page:store', post => 'notify');
- }
- 
- sub notify {
-     my $meta_data = $self->hub->edit->pages->current->metadata;
--    my $site_title = $self->config->site_title;
-+    my $site_title = $self->hub->config->site_title;
- 
-     my $edited_by   = $meta_data->{edit_by}                || 'unknown name';
-     my $page_name   = $meta_data->{id}                     || 'unknown page';
--    my $to          = $self->config->notify_mail_to        || 'unknown@unknown';
--    my $from        = $self->config->notify_mail_from      || 'unknown';
--    my $subject     = sprintf($self->config->notify_mail_subject,
-+    my $to          = $self->hub->config->notify_mail_to        || 'unknown@unknown';
-+    my $from        = $self->hub->config->notify_mail_from      || 'unknown';
-+    my $subject     = sprintf($self->hub->config->notify_mail_subject,
- 			      $site_title,
- 			      $page_name,
- 			      $edited_by)   || 'unknown';
-     my $body        = "$site_title page $page_name edited by $edited_by\n";
- 
--    $self->mail_it($to,$from,$subject,$body);
-+    $self->hub->load_class('notify')->mail_it($to,$from,$subject,$body);
-     return $self;
- }
- 
+Index: Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm
+--- Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm.orig	2004-09-01 02:11:53 +0200
++++ Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm	2005-01-14 18:08:08 +0100
 @@ -58,7 +58,7 @@
  	$msg->print(\*TEMPFILE);
  	close TEMPFILE;

+ 3 - 3
kwiki/kwiki.spec

@@ -44,7 +44,7 @@
 %define       V_kwiki_image                 0.01
 %define       V_kwiki_mindmap               0.08
 %define       V_kwiki_newpage               0.12
-%define       V_kwiki_notify_mail           0.02
+%define       V_kwiki_notify_mail           0.03
 %define       V_kwiki_pageinclude           0.01
 %define       V_kwiki_paragraphblocks       0.12
 %define       V_kwiki_preformattedblocks    0.11
@@ -73,7 +73,7 @@
 %define       V_kwiki_pageprivacy           0.10
 %define       V_kwiki_navigationtoolbar     0.02
 %define       V_kwiki_configblocks          0.01
-%define       V_kwiki_infobox               0.01
+%define       V_kwiki_infobox               0.02
 %define       V_kwiki_theme_columnlayout    0.08
 %define       V_kwiki_theme_hlb             0.01
 %define       V_kwiki_theme_tabnav          0.01
@@ -90,7 +90,7 @@ Class:        EVAL
 Group:        Web
 License:      GPL/Artistic
 Version:      %{V_kwiki}
-Release:      20050121
+Release:      20050127
 
 #   list of sources
 Source0:      http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%{V_spoon}.tar.gz