SHA256
1
0
forked from pool/libvmime
libvmime/libvmime.spec

126 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libvmime
#
# Copyright (c) 2011 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
Version: 0.9.2
Release: 0
Group: Development/Libraries/C and C++
URL: http://vmime.sf.net/
License: GPL-3.0+
#Source: http://downloads.sf.net/vmime/%name-%version.tar.bz2
Source: %name-0.9.1+.tar.bz2
Source2: spice_source.sh
#Svn-Clone: https://vmime.svn.sourceforge.net/svnroot/vmime
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
# PATCH-FIX-UPSTREAM libvmime-libgnutls28.diff
Patch4: libvmime-libgnutls28.diff
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: autoconf, automake, gcc-c++, libgsasl-devel, libtool
BuildRequires: libgcrypt-devel, pkgconfig, postfix, scons, xz
%if 0%{?suse_version} >= 1100
BuildRequires: gettext-tools, libgnutls-devel, libselinux-devel
%else
%if 0%{?suse_version} > 0
BuildRequires: gnutls-devel
%endif
%endif
%if 0%{?fedora_version} > 0
BuildRequires: gettext, 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 -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