From: Yurkovsky Andrey <anyr@tut.by> To: community@lists.altlinux.org Subject: [Comm] Ассоциации mime в spec Date: Wed, 31 Jan 2007 16:38:02 +0200 Message-ID: <epq9ld$m3r$1@sea.gmane.org> (raw) Пытаюсь собрать rpm khaalireader. Хотелось бы, чтобы после установки книги в формате fb2 открывались в ней. Описания mime программа сама по-себе не имеет. Привожу часть спека, где пытался решить поставленную задачу (пока безрезультатно): ,----[ khaalireader-0.2.6.spec ] | %install | %makeinstall | %make DESTDIR=%buildroot install | mkdir -p %buildroot/usr/share/ | mkdir -p %buildroot/usr/share/mimelnk/ | mkdir -p %buildroot/usr/share/mimelnk/text/ | cat << EOF > %buildroot/usr/share/mimelnk/text/fb2.desktop | [Desktop Entry] | Encoding=UTF-8 | MimeType=text/fb2 | Comment=Ficrion Book 2 file | Comment[ru]=Документ RTF | Icon=khaalireader.png | Type=MimeType | Patterns=*.fb2;*.FB2;*.Fb2;*.fB2 | EOF | mkdir -p %buildroot/usr/share/mime-info/ | cat << EOF > %buildroot/usr/share/mime-info/khaalireader.keys | text/fb2 | short_list_application_ids_for_novice_user_level=khaalireader | short_list_application_ids_for_intermediate_user_level=khaalireader | short_list_application_ids_for_advanced_user_level=khaalireader | EOF | cat << EOF > %buildroot/usr/share/mime-info/fb2.keys | text/fb2 | open=khaalireader %f | view=khaalireader %f | default_action_type=application | default_application_id=khaalireader | EOF | | %find_lang %name | | %post | %update_menus | %update_mimedb | | %postun | %clean_menus | %clean_mimedb | | %files | %_bindir/* | %_datadir/applnk/Utilities/khaalireader.desktop | %_datadir/mimelnk/text/fb2.desktop | %_datadir/mime-info/khaalireader.keys | %_datadir/mime-info/fb2.keys | %_datadir/apps/khaalireader/khaalireaderui.rc | %_datadir/apps/khaalireader/tips | %_datadir/locale/*/*/*.mo | %_iconsdir/*/*/apps/%name.png | %_menudir/* | %doc AUTHORS COPYING ChangeLog NEWS README TODO | %_docdir `---- Чего не хватает для ассоциации типа файла с программой? -- Yurkovsky Andrey
next reply other threads:[~2007-01-31 14:38 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-01-31 14:38 Yurkovsky Andrey [this message] 2007-02-01 4:49 ` Хихин Руслан 2007-02-02 10:00 ` Yurkovsky Andrey 2007-02-02 22:15 ` Хихин Руслан
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='epq9ld$m3r$1@sea.gmane.org' \ --to=anyr@tut.by \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git