Added kde service menu, demo and tools plugin, format the spec a little

This commit is contained in:
Denis Silakov 2015-10-18 21:45:48 +03:00
parent af621d6292
commit 395e47463a

View file

@ -1,4 +1,6 @@
%define _disable_ld_no_undefined 1
%define flag_gtk3 0
%define flag_demo 1
# There are perl scripts in docs/tools and we don't want to install perl
# modules required by these scripts
@ -21,6 +23,7 @@ Patch1: claws-mail-3.13.0-ru-i18n.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: docbook-utils
BuildRequires: docbook-utils-pdf
BuildRequires: imagemagick
BuildRequires: intltool
BuildRequires: compface-devel
@ -30,6 +33,9 @@ BuildRequires: libxml2-devel
BuildRequires: openldap-devel
BuildRequires: perl-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(champlain-0.12)
BuildRequires: pkgconfig(champlain-gtk-0.12)
BuildRequires: pkgconfig(clutter-1.0)
BuildRequires: pkgconfig(dbus-1) >= 0.60
BuildRequires: pkgconfig(dbus-glib-1) >= 0.60
BuildRequires: pkgconfig(enchant) >= 1.0.0
@ -40,8 +46,14 @@ BuildRequires: pkgconfig(gnutls) >= 2.2
BuildRequires: pkgconfig(gobject-2.0) >= 2.6
BuildRequires: pkgconfig(gthread-2.0) >= 2.6
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16
BuildRequires: pkgconfig(indicate-0.6)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libcanberra)
%if %{flag_gtk3}
BuildRequires: pkgconfig(libcanberra-gtk3)
%else
BuildRequires: pkgconfig(libcanberra-gtk)
%endif
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(libgdata)
@ -257,6 +269,23 @@ for spam using Clam AntiVirus.
#----------------------------------------------------------------------------
%if %flag_demo
%package demo
Summary: This Claws Mail demo plugin for programming
Group: Networking/Mail
Requires: %{name} = %{EVRD}
%description demo
Demo plugin for Claws Mail
%files demo
%{_libdir}/%{name}/plugins/demo.so
%endif
#----------------------------------------------------------------------------
%package fancy-plugin
Summary: This Claws Mail plugin renders HTML e-mails through WebKit
Group: Networking/Mail
@ -300,6 +329,20 @@ feature is inclusion of Google contacts into the address completion.
#%{_datadir}/appdata/claws-mail-gdata.metainfo.xml
%{_libdir}/%{name}/plugins/gdata.so
#-----------------------------------------------------------------------------
%package kdeservicemenu
Summary: This Claws Mail kde service menu integrated
Group: Networking/Mail
Requires: %{name} = %{EVRD}
%description kdeservicemenu
This Claws Mail kde service menu integrated
%files kdeservicemenu
%{_bindir}/claws-mail-kdeservicemenu.pl
%{_datadir}/kde4/services/ServiceMenus/claws-mail-attach-files.desktop
#----------------------------------------------------------------------------
%package libravatar-plugin
@ -544,6 +587,19 @@ This Claws Mail plugin enables parsing MS-TNEF attachments.
#%{_datadir}/appdata/claws-mail-tnef_parse.metainfo.xml
%{_libdir}/%{name}/plugins/tnef_parse.so
#-----------------------------------------------------------------------------
%package tools
Summary: This Claws Mail tools
Group: Networking/Mail
Requires: %{name} = %{EVRD}
%description tools
This Claws Mail tools.
%files tools
%{_libdir}/%{name}/tools/*
#----------------------------------------------------------------------------
%package vcalendar-plugin
@ -561,7 +617,8 @@ or received.
#%{_datadir}/appdata/claws-mail-vcalendar.metainfo.xml
%{_libdir}/%{name}/plugins/vcalendar.so
#----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
%prep
%setup -q
@ -576,12 +633,20 @@ cp %{SOURCE1} po
--enable-compface \
--enable-crash-dialog \
--enable-enchant \
%if %flag_gtk3
--enable-gtk3 \
%endif
--enable-ipv6 \
--enable-jpilot \
--enable-ldap \
--enable-gnutls \
--enable-networkmanager-support \
--enable-spamassassin-plugin \
%if %flag_demo
--enable-demo-plugin \
%else
--disable-demo-plugin \
%endif
--disable-rpath \
--disable-static
@ -614,8 +679,20 @@ rm -f %{buildroot}%{_docdir}/claws-mail/tools/Makefile*
# We don't build with plugin
rm -f %{buildroot}%{_datadir}/appdata/claws-mail-geolocation.metainfo.xml
# integrated kde menu
mkdir -p %{buildroot}%{_datadir}/kde4/services/ServiceMenus/
sed "s/SCRIPT_PATH/claws-mail-kdeservicemenu.pl/" tools/kdeservicemenu/claws-mail-attach-files.desktop.kde4template > %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/claws-mail-attach-files.desktop
#install -m644 tools/kdeservicemenu/claws-mail-attach-files.desktop.kde4template \
# %{buildroot}%{_datadir}/kde4/services/ServiceMenu/claws-mail-attach-files.desktop
install -m755 tools/kdeservicemenu/claws-mail-kdeservicemenu.pl %{buildroot}%{_bindir}/
cp -a tools %{buildroot}%{_libdir}/%{name}/
rm -f %{buildroot}%{_libdir}/%{name}/tools/Makefile*
%find_lang %{name}
%check
make check