forked from pool/libvmime
2535eddad7
- Update to new SVN snapshot rev 603 (ZCP 7.0.6 dependency) * Set Diffie-Hellman prime size (bug SF#3434852) OBS-URL: https://build.opensuse.org/request/show/110162 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvmime?expand=0&rev=2
139 lines
4.2 KiB
RPMSpec
139 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package libvmime
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
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
|
|
#Source: http://downloads.sf.net/vmime/%name-%version.tar.bz2
|
|
Source: %name-0.9.1+svn603.tar.bz2
|
|
Source2: spice_source.sh
|
|
Patch1: libvmime-nodatetime.diff
|
|
# PATCH-WORKAROUND-UPSTREAM libvmime-sotag.diff
|
|
Patch2: libvmime-sotag.diff
|
|
# PATCH-FEATURE-UPSTREAM vmime-0.8.1-charset-catch.diff x -- ZCP team will deal with this in time
|
|
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
|
|
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
|
|
%if 0%{?suse_version} >= 1100
|
|
BuildRequires: gettext-tools
|
|
BuildRequires: libgnutls-devel
|
|
BuildRequires: libselinux-devel
|
|
%else
|
|
%if 0%{?suse_version} > 0
|
|
BuildRequires: gnutls-devel
|
|
%endif
|
|
%endif
|
|
%if 0%{?fedora_version} > 0
|
|
BuildRequires: gettext
|
|
BuildRequires: gnutls-devel
|
|
%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
|
|
Summary: Library for working with MIME messages and IMAP/POP/SMTP
|
|
Group: System/Libraries
|
|
|
|
%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
|
|
Summary: Library for working with MIME messages and IMAP/POP/SMTP
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%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
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -p1
|
|
|
|
%build
|
|
# sendmail's awesome location.
|
|
export PATH="$PATH:/usr/sbin";
|
|
%if 0%{?suse_version} >= 1100
|
|
scons autotools;
|
|
# SL10: Rely on scons already having been run before the tarball was made.
|
|
%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
|