Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
claws-mail-extra-plugins
claws-mail-extra-plugins.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File claws-mail-extra-plugins.spec of Package claws-mail-extra-plugins
# # spec file for package claws-mail-extra-plugins # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} <= 1140 %define build_geolocation 1 %else %define build_geolocation 0 %endif # The right combination of libraries is only in greater than or # equal to 11.4 for now %if 0%{?suse_version} >= 1140 %define build_gdata 1 %else %define build_gdata 0 %endif Name: claws-mail-extra-plugins Version: 3.8.0 Release: 0 # NOTE: Try to enable gdata and geolocation plugins again. Last checked for 3.7.10 on 12.1. Summary: Plugins for Claws Mail License: GPL-2.0+ Group: Productivity/Networking/Email/Clients Url: http://claws-mail.org Source0: http://downloads.sourceforge.net/project/sylpheed-claws/extra%20plugins/3.8.0/%{name}-%{version}.tar.bz2 Patch0: claws-mail-extra-plugins-libytnef_shlib.patch # PATCH-FIX-OPENSUSE claws-mail-extra-plugins-fancy-build.patch -- Fix build of fancy plugin on 11.4 Patch1: claws-mail-extra-plugins-fancy-build.patch BuildRequires: claws-mail-devel >= 3.7.10.41 BuildRequires: db-devel BuildRequires: enchant-devel BuildRequires: fdupes BuildRequires: gettext BuildRequires: ghostscript-library BuildRequires: gpgme-devel BuildRequires: gtk2-devel BuildRequires: libarchive-devel BuildRequires: libchamplain-devel BuildRequires: libcurl-devel BuildRequires: libsoup-devel BuildRequires: libtool BuildRequires: libwebkit-devel BuildRequires: pcre-devel BuildRequires: perl >= 5.8 BuildRequires: pkgconfig BuildRequires: python-gtk-devel %if %{build_gdata} BuildRequires: pkgconfig(libgdata) >= 0.6.4 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: perl = %{perl_version} Requires: %{name}-lang = %{version} Requires: claws-mail Provides: sylpheed-claws-extra-plugins = %{version} Obsoletes: sylpheed-claws-extra-plugins < %{version} %description Various plugins for Claws Mail. %package devel Summary: Plugins for Claws Mail License: GPL-2.0+ Group: Development/Libraries/Other Requires: %{name} = %{version} %description devel Development files for Claws Mail plugins. %package -n libytnef0 Summary: TNEF Stream Parser Library License: GPL-3.0 Group: System/Libraries %description -n libytnef0 This is the TNEF Stream Parser Library to parse TNEF files. %package -n libytnef-devel Summary: TNEF Stream Parser Library - Development Files License: GPL-3.0 Group: Development/Libraries/Other Requires: libytnef0 = %{version} Requires: gtk2-devel %description -n libytnef-devel This is the TNEF Stream Parser Library to parse TNEF files. %lang_package %prep %setup -q pushd tnef_parse* %patch0 -p2 popd %if 0%{?suse_version} == 1140 pushd fancy-* %patch1 -p0 popd # Patch geolocation plugin to accept libchamplain 0.8.0 grep -q "champlain-gtk-0.8 > 0.8.0" geolocation_plugin-0.0.7/configure sed -i "s:champlain-gtk-0.8 > 0.8.0:champlain-gtk-0.8 >= 0.8.0:g" geolocation_plugin-0.0.7/configure %endif %if 0%{?suse_version} == 1130 # Patch geolocation plugin to accept weird version of clutter-gtk in 11.3 clutterpc=$(basename $(rpm -ql clutter-gtk-devel | grep clutter-gtk.*.pc | sed s/\.pc//)) sed -i "s:clutter-gtk-0.10:$clutterpc:g" geolocation_plugin-0.0.7/configure %endif %if ! %{build_geolocation} rm -r %{_builddir}/%{name}-%{version}/geolocation_plugin-0.0.7 %endif %if ! %{build_gdata} rm -r %{_builddir}/%{name}-%{version}/gdata_plugin-0.3 %endif %build # special hack for tnef reconfiguration (patch touches Makefile.am) pushd tnef_parse* autoreconf -fiv popd # build all plugins # each plugin has its own src-dir for i in $(find -maxdepth 1 -type d -not -name .) do pushd $i %configure --disable-static --with-pic make %{?_smp_mflags} popd done %install # install all plugins with documentation for i in $(find -maxdepth 1 -type d -not -name .) do pushd $i %makeinstall docdir=%{buildroot}%{_docdir}/%{name}/$i mkdir -p $docdir cp $(find . -regex './\(AUTHORS\|ChangeLog\|COPYING\|INSTALL\|NEWS\|README\)' -size +0k -exec chmod 644 '{}' \; -print0 | xargs --null) $docdir popd done # remove doc files with generic-build-instructions rm %{buildroot}%{_defaultdocdir}/claws-mail-extra-plugins/*/INSTALL # remove *.la files find %{buildroot} -type f -name "*.la" -delete -print %find_lang acpi_notifier plugins.lang %find_lang address_keeper plugins.lang %find_lang archive plugins.lang %find_lang attachwarner plugins.lang %find_lang bsfilter_plugin plugins.lang %find_lang clamd plugins.lang %find_lang fancy plugins.lang %if %{build_gdata} %find_lang gdata_plugin plugins.lang %endif %if %{build_geolocation} %find_lang geolocation_plugin plugins.lang %endif %find_lang gtkhtml2_viewer plugins.lang %find_lang notification_plugin plugins.lang %find_lang python_plugin plugins.lang %find_lang rssyl plugins.lang %find_lang spam_report plugins.lang %find_lang tnef_parse plugins.lang %find_lang vcalendar plugins.lang %fdupes %{buildroot}%{_defaultdocdir}/claws-mail-extra-plugins %post -n libytnef0 -p /sbin/ldconfig %postun -n libytnef0 -p /sbin/ldconfig %files %defattr(-, root, root) %doc %{_docdir}/%{name} %{_libdir}/claws-mail/plugins/*.so %files devel %defattr(-, root, root) %dir %{_includedir}/claws-mail/plugins %{_includedir}/claws-mail/plugins/archive/ %{_includedir}/claws-mail/plugins/notification_plugin/ %{_includedir}/claws-mail/plugins/vcalendar/ %files -n libytnef0 %defattr(-, root, root) %{_libdir}/libytnef.so.* %files -n libytnef-devel %defattr(-, root, root) %{_libdir}/libytnef.so %{_includedir}/mapi*h %{_includedir}/tnef-*.h %{_includedir}/ytnef.h %files lang -f plugins.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor