LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File unrtf-0.21.2-fix_dirs.patch of Package unrtf (Project KDE:KDE3)

Description: Fix hardcoded paths.
Author: Kyrill Detinov <lazy.kent@opensuse.org>

Index: doc/unrtf.1
===================================================================
--- doc/unrtf.1.orig
+++ doc/unrtf.1
@@ -87,20 +87,20 @@ specifies the tags output configuration
 configuration files are a simple format.  To change the behaviour of
 unrtf, a local copy of a system configuration file can be be made and
 edited.  The most complete configuration file and hence the best starting
-point is /usr/local/lib/unrtf/html.conf.
+point is /usr/share/unrtf/html.conf.
 .TP
 \-P config_search_path
 specifies the directories in which the configuration file for the specified
 format will be sought.  The path can be provided as a single directory
 or a list of colon separated directories. 
-The default is /usr/local/lib/unrtf/ where distributed output
+The default is /usr/share/unrtf/ where distributed output
 configuration files are installed.
 .SH FILES
 .TP
-/usr/local/lib/unrtf/*.conf
+/usr/share/unrtf/*.conf
 - run time output configuration files.
 .TP
-/usr/local/lib/unrtf/SYMBOL.charmap
+/usr/share/unrtf/SYMBOL.charmap
 - UTF encoding of the SYMBOL font
 used in many RTF files.  Unfortunately the iconv package does not include
 font encodings.  The format is identical to iconv code page files.
Index: src/main.h
===================================================================
--- src/main.h.orig
+++ src/main.h
@@ -47,7 +47,7 @@ extern int no_remap_mode;
 #include "output.h"
 #endif
 
-#define CONFIG_DIR "/usr/local/lib/unrtf/"
+#define CONFIG_DIR "/usr/share/unrtf/"
 #define DEFAULT_OUTPUT "html"
 
 extern OutputPersonality *op;
Index: src/my_iconv.h
===================================================================
--- src/my_iconv.h.orig
+++ src/my_iconv.h
@@ -10,7 +10,7 @@
 #define HAVE_ICONV_H
 #endif
 
-#define CHARMAP_DIR "/usr/local/lib/unrtf/charmaps/"
+#define CHARMAP_DIR "/usr/share/unrtf/"
 #define char_table_size 256
 
 typedef struct
Index: src/path.h
===================================================================
--- src/path.h.orig
+++ src/path.h
@@ -1,4 +1,4 @@
-#define DEFAULT_UNRTF_SEARCH_PATH	"/usr/local/lib/unrtf/"
+#define DEFAULT_UNRTF_SEARCH_PATH	"/usr/share/unrtf/"
 
 char	*search_path;
 int	n_path_dirs;
Index: charmaps/Makefile.in
===================================================================
--- charmaps/Makefile.in.orig
+++ charmaps/Makefile.in
@@ -165,7 +165,7 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-outputsdir = ${libdir}/${PACKAGE}
+outputsdir = ${datadir}/${PACKAGE}
 dist_outputs_DATA = SYMBOL.charmap
 all: all-am
 
Index: outputs/Makefile.in
===================================================================
--- outputs/Makefile.in.orig
+++ outputs/Makefile.in
@@ -165,7 +165,7 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-outputsdir = ${libdir}/${PACKAGE}
+outputsdir = ${datadir}/${PACKAGE}
 dist_outputs_DATA = html.conf latex.conf rtf.conf text.conf vt.conf
 all: all-am