add new package sylpheed mail client

This commit is contained in:
groni
2017-01-28 14:53:14 +01:00
parent 28b365a3a3
commit 6901d1ec6e
9 changed files with 399 additions and 2 deletions
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
docdir = '/%s/%s' % (get.docDIR(), get.srcNAME())
def setup():
pisitools.dosed("sylpheed.desktop", "Icon=sylpheed", "Icon=sylpheed-128x128")
autotools.configure("--enable-ldap \
--enable-compface \
--disable-updatecheck \
--disable-updatecheckplugin \
--disable-static \
--with-manualdir=%s \
--with-faqdir=%s" % (docdir, docdir))
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodir("/usr/share/pixmaps")
pisitools.insinto("/usr/share/pixmaps", "*.png")
pisitools.insinto("/usr/share/applications", "sylpheed.desktop")
pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS*", "README*", "TODO*", "PLUGIN.txt", "ABOUT-NLS")
pisitools.dodir("/usr/lib/sylpheed/plugins")
pisitools.insinto("/usr/lib/sylpheed/plugins", "plugin/attachment_tool/.libs/attachment_tool.so")
for lang in ["en", "de", "es", "fr", "it", "ja"]:
pisitools.domove("/usr/share/doc/sylpheed/%s" % lang, "/usr/share/doc/sylpheed/html/")
@@ -0,0 +1,81 @@
Index: sylpheed-3.1.1/libsylph/procmime.c
===================================================================
--- sylpheed-3.1.1.orig/libsylph/procmime.c
+++ sylpheed-3.1.1/libsylph/procmime.c
@@ -1685,74 +1685,13 @@ static GList *procmime_parse_mailcap(con
gint procmime_execute_open_file(const gchar *file, const gchar *mime_type)
{
- gchar *mime_type_ = NULL;
- GList *cur;
- MailCap *mailcap;
gchar *cmdline;
gint ret = -1;
- static gboolean mailcap_list_init = FALSE;
g_return_val_if_fail(file != NULL, -1);
- if (!mime_type ||
- g_ascii_strcasecmp(mime_type, "application/octet-stream") == 0) {
- gchar *tmp;
- tmp = procmime_get_mime_type(file);
- if (!tmp)
- return -1;
- mime_type_ = g_ascii_strdown(tmp, -1);
- g_free(tmp);
- } else
- mime_type_ = g_ascii_strdown(mime_type, -1);
-
- if (!mailcap_list_init && !mailcap_list) {
- GList *list;
- gchar *path;
-
- path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "mailcap",
- NULL);
- mailcap_list = procmime_parse_mailcap(path);
- g_free(path);
-#ifdef G_OS_WIN32
- path = g_strconcat(get_startup_dir(), G_DIR_SEPARATOR_S "etc"
- G_DIR_SEPARATOR_S "mailcap", NULL);
- list = procmime_parse_mailcap(path);
- g_free(path);
-#else
- if (!mailcap_list) {
- path = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
- ".mailcap", NULL);
- mailcap_list = procmime_parse_mailcap(path);
- g_free(path);
- }
- list = procmime_parse_mailcap(SYSCONFDIR "/mailcap");
- if (!list)
- list = procmime_parse_mailcap("/etc/mailcap");
-#endif
- mailcap_list = g_list_concat(mailcap_list, list);
-
- mailcap_list_init = TRUE;
- }
-
- for (cur = mailcap_list; cur != NULL; cur = cur->next) {
- mailcap = (MailCap *)cur->data;
-
- if (!g_pattern_match_simple(mailcap->mime_type, mime_type_))
- continue;
- if (mailcap->needs_terminal)
- continue;
-
- if (str_find_format_times(mailcap->cmdline_fmt, 's') == 1)
- cmdline = g_strdup_printf(mailcap->cmdline_fmt, file);
- else
- cmdline = g_strconcat(mailcap->cmdline_fmt, " \"", file,
- "\"", NULL);
- ret = execute_command_line(cmdline, TRUE);
- g_free(cmdline);
- break;
- }
-
- g_free(mime_type_);
+ cmdline = g_strdup_printf("/usr/bin/xdg-open '%s'", file);
+ ret = execute_command_line(cmdline, TRUE);
return ret;
}
@@ -0,0 +1,11 @@
--- sylpheed-3.1.1/src/compose.c 2011-03-16 06:04:50.000000000 +0200
+++ sylpheed-3.1.0/src/compose.c 2011-01-07 08:35:22.000000000 +0200
@@ -576,7 +576,7 @@
static GtkItemFactoryEntry compose_entries[] =
{
{N_("/_File"), NULL, NULL, 0, "<Branch>"},
- {N_("/_File/_Send"), "<shift><control>E",
+ {N_("/_File/_Send"), "<control>Return",
compose_send_cb, 0, NULL},
{N_("/_File/Send _later"), "<shift><control>S",
compose_send_later_cb, 0, NULL},
+122
View File
@@ -0,0 +1,122 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>sylpheed</Name>
<Homepage>http://sylpheed.sraoss.jp/en/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Icon>sylpheed-128x128</Icon>
<IsA>app:gui</IsA>
<Summary>A lightweight email client and newsreader</Summary>
<Description>Sylpheed is a simple and lightweight but featureful and easy-to-use e-mail client.</Description>
<Archive sha1sum="67a81b6bb855f349cda3ef203ae5ba272e64d7ce" type="tarbz2">http://sylpheed.sraoss.jp/sylpheed/v3.5/sylpheed-3.5.1.tar.bz2</Archive>
<BuildDependencies>
<Dependency>shared-mime-info</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>gpgme-devel</Dependency>
<Dependency>openldap-client</Dependency>
<Dependency>compface-devel</Dependency>
<Dependency>gtkspell-devel</Dependency>
<Dependency>enchant-devel</Dependency>
<Dependency>pango-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>atk-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>libgpg-error-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">sendmail_accelerator.patch</Patch>
<!-- Use xdg-open for every mime type instead of parsing them and using mailcap file (pb#17534) -->
<Patch level="1">add-xdg-support.patch</Patch>
</Patches>
</Source>
<Package>
<Name>sylpheed-docs</Name>
<IsA>data:doc</IsA>
<Summary>Documentation files for sylpheed</Summary>
<RuntimeDependencies>
<Dependency release="current">sylpheed</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc/sylpheed/html</Path>
</Files>
</Package>
<Package>
<Name>sylpheed</Name>
<RuntimeDependencies>
<Dependency>shared-mime-info</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>gpgme</Dependency>
<Dependency>openldap-client</Dependency>
<Dependency>compface</Dependency>
<Dependency>gtkspell</Dependency>
<Dependency>enchant</Dependency>
<Dependency>pango</Dependency>
<Dependency>cairo</Dependency>
<Dependency>atk</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>dbus</Dependency>
<Dependency>glib2</Dependency>
<Dependency>openssl</Dependency>
<Dependency>freetype</Dependency>
<Dependency>dbus-glib</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc/sylpheed</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/usr/share/applications</Path>
</Files>
</Package>
<Package>
<Name>sylpheed-devel</Name>
<IsA>library</IsA>
<Summary>Development files for sylpheed</Summary>
<Files>
<Path fileType="header">/usr/include/sylpheed</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2017-01-28</Date>
<Version>3.5.1</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2015-02-13</Date>
<Version>3.4.2</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-13</Date>
<Version>3.3.0</Version>
<Comment>Version Bump</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-09-03</Date>
<Version>3.2.0</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>sylpheed</Name>
<Summary xml:lang="tr">Hafif ve hızlı bir e-posta ve haber okuyucu</Summary>
<Summary xml:lang="pl">Szybki klient poczty bazujący na GTK+</Summary>
<Description xml:lang="tr">GTK+ tabanlı, X-Window Sistemi üzerinde çalışan bir e-posta ve haber istemcisi.</Description>
<Description xml:lang="pl">Szybki klient poczty z przyjaznym, intuicyjnym interfejsem użytkownika.</Description>
</Source>
<Package>
<Name>sylpheed-devel</Name>
<Summary xml:lang="tr">sylpheed için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki nagłówkowe sylpheed</Summary>
</Package>
<Package>
<Name>sylpheed-docs</Name>
<Summary xml:lang="tr">sylpheed için belgelendirme dosyaları</Summary>
</Package>
</PISI>
+123
View File
@@ -115134,6 +115134,129 @@ complete albums that you have purchased from Amazon.</Description>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>sylpheed</Name>
<Homepage>http://sylpheed.sraoss.jp/en/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<PartOf>network.mail</PartOf>
<Summary xml:lang="en">A lightweight email client and newsreader</Summary>
<Summary xml:lang="tr">Hafif ve hızlı bir e-posta ve haber okuyucu</Summary>
<Summary xml:lang="pl">Szybki klient poczty bazujący na GTK+</Summary>
<Description xml:lang="en">Sylpheed is a simple and lightweight but featureful and easy-to-use e-mail client.</Description>
<Description xml:lang="tr">GTK+ tabanlı, X-Window Sistemi üzerinde çalışan bir e-posta ve haber istemcisi.</Description>
<Description xml:lang="pl">Szybki klient poczty z przyjaznym, intuicyjnym interfejsem użytkownika.</Description>
<Icon>sylpheed-128x128</Icon>
<Archive type="tarbz2" sha1sum="67a81b6bb855f349cda3ef203ae5ba272e64d7ce">http://sylpheed.sraoss.jp/sylpheed/v3.5/sylpheed-3.5.1.tar.bz2</Archive>
<BuildDependencies>
<Dependency>shared-mime-info</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>gpgme-devel</Dependency>
<Dependency>openldap-client</Dependency>
<Dependency>compface-devel</Dependency>
<Dependency>gtkspell-devel</Dependency>
<Dependency>enchant-devel</Dependency>
<Dependency>pango-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>atk-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>libgpg-error-devel</Dependency>
<Dependency>gdk-pixbuf-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">sendmail_accelerator.patch</Patch>
<Patch level="1">add-xdg-support.patch</Patch>
</Patches>
<SourceURI>network/mail/sylpheed/pspec.xml</SourceURI>
</Source>
<Package>
<Name>sylpheed-docs</Name>
<Summary xml:lang="en">Documentation files for sylpheed</Summary>
<Summary xml:lang="tr">sylpheed için belgelendirme dosyaları</Summary>
<IsA>data:doc</IsA>
<RuntimeDependencies>
<Dependency release="5">sylpheed</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc/sylpheed/html</Path>
</Files>
</Package>
<Package>
<Name>sylpheed</Name>
<RuntimeDependencies>
<Dependency>shared-mime-info</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>gpgme</Dependency>
<Dependency>openldap-client</Dependency>
<Dependency>compface</Dependency>
<Dependency>gtkspell</Dependency>
<Dependency>enchant</Dependency>
<Dependency>pango</Dependency>
<Dependency>cairo</Dependency>
<Dependency>atk</Dependency>
<Dependency>fontconfig</Dependency>
<Dependency>gdk-pixbuf</Dependency>
<Dependency>dbus</Dependency>
<Dependency>glib2</Dependency>
<Dependency>openssl</Dependency>
<Dependency>freetype</Dependency>
<Dependency>dbus-glib</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc/sylpheed</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/usr/share/applications</Path>
</Files>
</Package>
<Package>
<Name>sylpheed-devel</Name>
<Summary xml:lang="en">Development files for sylpheed</Summary>
<Summary xml:lang="tr">sylpheed için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki nagłówkowe sylpheed</Summary>
<IsA>library</IsA>
<Files>
<Path fileType="header">/usr/include/sylpheed</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2017-01-28</Date>
<Version>3.5.1</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2015-02-13</Date>
<Version>3.4.2</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-13</Date>
<Version>3.3.0</Version>
<Comment>Version Bump</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-09-03</Date>
<Version>3.2.0</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>libpcap</Name>
+1 -1
View File
@@ -1 +1 @@
36b22d9787a0ed39c09f36965f61c22ec1131c37
84c2efb5fac8b519bb8a4498c8d6adc16baaee88
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
2d261216f9d809f64243311da052951898f9ceff
7a01c21978f1f59c78cd30766f8265beda66a0f0