2012-03-06 13:38:49 +01:00
|
|
|
#
|
|
|
|
# spec file for package libvmime
|
|
|
|
#
|
2012-03-22 12:34:38 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-03-06 13:38:49 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-03-22 12:34:38 +01:00
|
|
|
Name: libvmime
|
|
|
|
%define lname libvmime-0_9_2-0
|
|
|
|
Summary: Library for working with MIME messages and IMAP/POP/SMTP
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Version: 0.9.2
|
|
|
|
Release: 0
|
|
|
|
Url: http://vmime.sf.net/
|
|
|
|
|
|
|
|
#Svn-Clone: https://vmime.svn.sourceforge.net/svnroot/vmime/trunk
|
2012-09-14 12:29:27 +02:00
|
|
|
#Source: http://downloads.sf.net/vmime/%name-%version.tar.bz2
|
2012-03-22 12:34:38 +01:00
|
|
|
Source: %name-0.9.1+svn603.tar.bz2
|
|
|
|
Source2: spice_source.sh
|
|
|
|
Patch1: libvmime-nodatetime.diff
|
2012-03-06 13:38:49 +01:00
|
|
|
# PATCH-WORKAROUND-UPSTREAM libvmime-sotag.diff
|
2012-03-22 12:34:38 +01:00
|
|
|
Patch2: libvmime-sotag.diff
|
2012-03-06 13:38:49 +01:00
|
|
|
# PATCH-FEATURE-UPSTREAM vmime-0.8.1-charset-catch.diff x -- ZCP team will deal with this in time
|
2012-03-22 12:34:38 +01:00
|
|
|
Patch3: vmime-0.8.1-charset-catch.diff
|
|
|
|
Patch4: vmime-0.9.2-header-value-on-next-line.diff
|
|
|
|
Patch5: vmime-mixed-qp-in-parameter.diff
|
|
|
|
Patch6: vmime-0.9.2-qp-in-buffers.diff
|
2012-05-10 14:33:25 +02:00
|
|
|
Patch7: vmime-noansiflag.patch
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgsasl-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: postfix
|
|
|
|
BuildRequires: scons
|
|
|
|
BuildRequires: xz
|
2012-03-06 13:38:49 +01:00
|
|
|
%if 0%{?suse_version} >= 1100
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: gettext-tools
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2012-03-06 13:38:49 +01:00
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} > 0
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: gnutls-devel
|
2012-03-06 13:38:49 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
2012-09-14 12:29:27 +02:00
|
|
|
%if 0%{?fedora_version} > 0 || 0%{?redhat_version} || 0%{?centos_version}
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gnutls-devel
|
2012-03-06 13:38:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
VMime is a powerful C++ class library for working with MIME messages
|
|
|
|
and Internet messaging services like IMAP, POP or SMTP.
|
|
|
|
|
|
|
|
With VMime you can parse, generate and modify messages, and also
|
|
|
|
connect to store and transport services to receive or send messages
|
|
|
|
over the Internet. The library offers all the features to build a
|
|
|
|
complete mail client.
|
|
|
|
|
|
|
|
%package -n %lname
|
2012-03-22 12:34:38 +01:00
|
|
|
Summary: Library for working with MIME messages and IMAP/POP/SMTP
|
|
|
|
Group: System/Libraries
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
VMime is a powerful C++ class library for working with MIME messages
|
|
|
|
and Internet messaging services like IMAP, POP or SMTP.
|
|
|
|
|
|
|
|
With VMime you can parse, generate and modify messages, and also
|
|
|
|
connect to store and transport services to receive or send messages
|
|
|
|
over the Internet. The library offers all the features to build a
|
|
|
|
complete mail client.
|
|
|
|
|
|
|
|
%package devel
|
2012-03-22 12:34:38 +01:00
|
|
|
Summary: Library for working with MIME messages and IMAP/POP/SMTP
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
VMime is a powerful C++ class library for working with MIME messages
|
|
|
|
and Internet messaging services like IMAP, POP or SMTP.
|
|
|
|
|
|
|
|
With VMime you can parse, generate and modify messages, and also
|
|
|
|
connect to store and transport services to receive or send messages
|
|
|
|
over the Internet. The library offers all the features to build a
|
|
|
|
complete mail client.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn vmime
|
2012-03-22 12:34:38 +01:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -p1
|
2012-05-10 14:33:25 +02:00
|
|
|
%patch7
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%build
|
2012-09-14 12:29:27 +02:00
|
|
|
export CFLAGS="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1";
|
|
|
|
export CXXFLAGS="$CFLAGS";
|
2012-03-06 13:38:49 +01:00
|
|
|
# sendmail's awesome location.
|
|
|
|
export PATH="$PATH:/usr/sbin";
|
2012-09-14 12:29:27 +02:00
|
|
|
%if 0%{?suse_version} >= 1100 || 0%{?!suse_version}
|
2012-03-06 13:38:49 +01:00
|
|
|
scons autotools;
|
2012-09-14 12:29:27 +02:00
|
|
|
# SL10 and other too old distros:
|
|
|
|
# Rely on scons already having been run before the tarball was made.
|
2012-03-06 13:38:49 +01:00
|
|
|
%endif
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b" docdir="%_docdir/%name";
|
|
|
|
find "$b" -type f -name "*.la" -delete;
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check;
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/%{name}*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %_docdir/%name
|
|
|
|
%_includedir/*
|
|
|
|
%_libdir/%{name}*.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|