Package: libwpd-tools Version: 0.10.0-2 Severity: wishlist Tags: patch As an idea for a feature, it could be good if libwpd-tools made an /etc/mailcap entry to display wordperfect files using wpd2text.
I suggest file debian/libwpd-tools.mime below and adding to debian/rules binary-arch dh_installmime -a $(DEBHELPER_OPTIONS) Just after dh_installman works for me. dh_installmime installs the file to /usr/lib/mime/packages/libwpd-tools and in turn the mime-support package, if or when that package is installed, incorporates it into /etc/mailcap. You can see it in action, assuming you have no other mailcap for wordperfect, with see foo.wpd => runs wpd2text and a $PAGER
# wpd2text wants to read from an actual file, not stdin. application/vnd.wordperfect; wpd2text '%s'; copiousoutput; description=WordPerfect document; priority=2 application/vnd.wordperfect5.1; wpd2text '%s'; copiousoutput; description=WordPerfect 5.1 document; priority=2
-- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.14-2-686-pae (SMP w/1 CPU core) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libwpd-tools depends on: ii libc6 2.19-10 ii libgcc1 1:4.9.1-12 ii librevenge-0.0-0 0.0.1-3 ii libstdc++6 4.9.1-12 ii libwpd-0.10-10 0.10.0-2 libwpd-tools recommends no packages. libwpd-tools suggests no packages. -- no debconf information