2012-03-06 13:38:49 +01:00
|
|
|
#
|
|
|
|
# spec file for package libvmime
|
|
|
|
#
|
2013-03-11 10:19:07 +01:00
|
|
|
# Copyright (c) 2013 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
|
2017-01-04 12:49:39 +01:00
|
|
|
%define lname libvmime1
|
2017-01-03 12:56:10 +01:00
|
|
|
Summary: Library for working with RFC 2822, MIME messages and IMAP/POP/SMTP
|
2012-03-22 12:34:38 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-03 12:56:10 +01:00
|
|
|
Version: 0.9.2
|
2012-03-22 12:34:38 +01:00
|
|
|
Release: 0
|
2013-04-08 14:53:19 +02:00
|
|
|
Url: http://vmime.org/
|
2012-03-22 12:34:38 +01:00
|
|
|
|
2017-01-03 12:56:10 +01:00
|
|
|
Source: https://github.com/kisli/vmime/archive/v%version.tar.gz
|
2012-03-22 12:34:38 +01:00
|
|
|
Patch1: libvmime-nodatetime.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: ImageMagick
|
2014-08-25 07:57:56 +02:00
|
|
|
%if 0%{?suse_version} < 1310
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: cmake >= 2.8.3
|
2014-08-25 07:57:56 +02:00
|
|
|
BuildRequires: doxygen
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: gcc-c++
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: inkscape
|
2014-08-25 07:57:56 +02:00
|
|
|
BuildRequires: libgnutls-devel
|
2016-10-24 15:38:51 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: libgsasl-devel
|
2016-10-24 15:38:51 +02:00
|
|
|
%endif
|
2014-08-25 07:57:56 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
2016-06-22 19:41:27 +02:00
|
|
|
BuildRequires: pkg-config
|
2014-08-25 07:57:56 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2013-04-08 14:53:19 +02:00
|
|
|
%define with_pdf 1
|
2013-08-05 20:47:56 +02:00
|
|
|
%if 0%{?suse_version} < 1300
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: texlive-bin-latex
|
2013-08-05 20:47:56 +02:00
|
|
|
%endif
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: texlive-latex
|
|
|
|
%if 0%{?suse_version} >= 1230
|
2013-12-30 10:22:26 +01:00
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
2013-04-08 14:53:19 +02:00
|
|
|
BuildRequires: tex(courier.sty)
|
|
|
|
BuildRequires: tex(fancyheadings.sty)
|
|
|
|
BuildRequires: tex(pcrr7t.tfm)
|
|
|
|
BuildRequires: tex(ucs.sty)
|
|
|
|
%endif
|
|
|
|
%endif
|
2012-03-22 12:34:38 +01:00
|
|
|
BuildRequires: xz
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%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
|
2016-06-22 19:41:27 +02:00
|
|
|
%setup -qn vmime-%version
|
2017-01-04 12:49:39 +01:00
|
|
|
%patch -P 1 -p1
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%build
|
2013-04-08 14:53:19 +02:00
|
|
|
%if 0%{?with_pdf}
|
|
|
|
pushd doc/book/
|
|
|
|
make book_pdf
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1"
|
|
|
|
cmake . \
|
2016-10-25 01:00:10 +02:00
|
|
|
-DVMIME_SENDMAIL_PATH:STRING="%_sbindir/sendmail" \
|
2014-08-25 07:57:56 +02:00
|
|
|
-DVMIME_BUILD_SAMPLES:BOOL=OFF \
|
2017-03-21 20:16:55 +01:00
|
|
|
%if 0%{?sle_version}
|
2017-03-08 10:52:46 +01:00
|
|
|
-DVMIME_HAVE_SASL_SUPPORT:BOOL=OFF \
|
2016-10-24 15:38:51 +02:00
|
|
|
%endif
|
2014-08-25 07:57:56 +02:00
|
|
|
-DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \
|
2013-04-08 14:53:19 +02:00
|
|
|
-DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \
|
2017-01-23 23:28:41 +01:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
|
2013-04-08 14:53:19 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
|
2016-10-30 20:18:26 +01:00
|
|
|
-DCMAKE_CXX_FLAGS_DEBUG:STRING="-g" \
|
2014-08-25 07:57:56 +02:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="$cf -std=gnu++11" \
|
|
|
|
%else
|
2016-06-22 19:41:27 +02:00
|
|
|
-DCMAKE_CXX_FLAGS:STRING="$cf -std=gnu++0x" \
|
2014-08-25 07:57:56 +02:00
|
|
|
%endif
|
|
|
|
-DCMAKE_C_FLAGS:STRING="$cf"
|
2013-04-08 14:53:19 +02:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%install
|
2016-06-22 19:41:27 +02:00
|
|
|
b="%buildroot"
|
2013-04-08 14:53:19 +02:00
|
|
|
%if 0%{?with_pdf}
|
|
|
|
mkdir -p "$b/%_docdir/%name"
|
|
|
|
cp -a doc/book/book.pdf "$b/%_docdir/%name/"
|
|
|
|
%endif
|
|
|
|
make install DESTDIR="$b"
|
2016-06-22 19:41:27 +02:00
|
|
|
find "$b" -type f -name "*.la" -delete
|
2012-03-06 13:38:49 +01:00
|
|
|
|
2013-04-08 14:53:19 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-03-06 13:38:49 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
2015-05-13 09:36:46 +02:00
|
|
|
%doc COPYING
|
2017-01-04 12:49:39 +01:00
|
|
|
%_libdir/%name.so.1*
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-04-08 14:53:19 +02:00
|
|
|
%_includedir/vmime
|
|
|
|
%_libdir/libvmime.so
|
2012-03-06 13:38:49 +01:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2013-04-08 14:53:19 +02:00
|
|
|
%if 0%{?with_pdf}
|
|
|
|
%_docdir/%name
|
|
|
|
%endif
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
%changelog
|