File getmail-fix_paths.patch of Package getmail
Index: getmail-4.43.0/setup.py
===================================================================
--- getmail-4.43.0.orig/setup.py
+++ getmail-4.43.0/setup.py
@@ -35,19 +35,8 @@ for (pos, arg) in enumerate(args):
# hack hack hack hack hack hack hack
datadir = args[pos + 1]
-GETMAILDOCDIR = os.path.join(
- datadir or prefix,
- 'share',
- 'doc',
- 'getmail-%s' % __version__
-)
-
-GETMAILMANDIR = os.path.join(
- datadir or prefix,
- 'share',
- 'man',
- 'man1'
-)
+GETMAILDOCDIR = '@@DOCDIR@@'
+GETMAILMANDIR = os.path.join('@@MANDIR@@', 'man1')
if '--show-default-install-dirs' in args:
print 'Default installation directories:'
@@ -100,7 +89,6 @@ setup(
data_files=[
(GETMAILDOCDIR, [
'./README',
- './getmail.spec',
'docs/BUGS',
'docs/COPYING',
'docs/CHANGELOG',