2012-03-06 13:38:49 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package libvmime
|
|
|
|
|
#
|
2018-04-23 10:00:35 +02:00
|
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
2018-04-23 10:00:35 +02:00
|
|
|
|
License: GPL-3.0-or-later
|
2012-03-22 12:34:38 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-06-25 14:27:33 +02:00
|
|
|
|
Version: 0.9.2.50
|
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
|
|
|
|
|
2018-06-25 14:27:33 +02:00
|
|
|
|
#Source: https://github.com/kisli/vmime/archive/v%%version.tar.gz
|
|
|
|
|
Source: vmime-%version.tar.xz
|
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
|
2017-03-21 20:44:56 +01:00
|
|
|
|
%if !0%{?sle_version}
|
2012-03-22 12:34:38 +01:00
|
|
|
|
BuildRequires: libgsasl-devel
|
2016-10-24 15:38:51 +02:00
|
|
|
|
%endif
|
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
|
2017-07-13 16:12:00 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC2822 and
|
|
|
|
|
MIME-conforming messages (RFC2045–2049), as well as Internet
|
|
|
|
|
messaging services like IMAP, POP or SMTP.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
2017-07-13 16:12:00 +02:00
|
|
|
|
VMime 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 features to build a mail client.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%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
|
2017-07-13 16:12:00 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC2822 and
|
|
|
|
|
MIME-conforming messages (RFC2045–2049), as well as Internet
|
|
|
|
|
messaging services like IMAP, POP or SMTP.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
2017-07-13 16:12:00 +02:00
|
|
|
|
VMime 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 features to build a mail client.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%package devel
|
2017-07-13 16:12:00 +02:00
|
|
|
|
Summary: Development files for vmime, an e-mail message library
|
2012-03-22 12:34:38 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %lname = %version
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%description devel
|
2017-07-13 16:12:00 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC2822 and
|
|
|
|
|
MIME-conforming messages (RFC2045–2049), as well as Internet
|
|
|
|
|
messaging services like IMAP, POP or SMTP.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
2017-07-13 16:12:00 +02:00
|
|
|
|
This subpackage contains the headers for the library's API.
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2016-06-22 19:41:27 +02:00
|
|
|
|
%setup -qn vmime-%version
|
2018-06-25 14:27:33 +02: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"
|
2018-06-25 14:27:33 +02:00
|
|
|
|
%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" \
|
2018-06-25 15:16:01 +02:00
|
|
|
|
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="$cf" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING=" " \
|
|
|
|
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \
|
|
|
|
|
-DCMAKE_C_FLAGS:STRING=" "
|
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
|
2018-06-25 14:27:33 +02:00
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
# https://github.com/kisli/vmime/issues/200
|
|
|
|
|
mv "$b/usr/%_libdir" "$b/usr/"
|
|
|
|
|
mv "$b/usr/cmake" "$b/%_datadir/"
|
|
|
|
|
|
2016-06-22 19:41:27 +02:00
|
|
|
|
find "$b" -type f -name "*.la" -delete
|
2018-06-25 14:27:33 +02:00
|
|
|
|
# Bump number a bit, for Kopano Core
|
|
|
|
|
perl -i -pe 's{Version:.*}{Version: %version}' "$b/%_libdir/pkgconfig/vmime.pc"
|
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
|
2018-06-25 14:27:33 +02:00
|
|
|
|
%_datadir/cmake/
|
2013-04-08 14:53:19 +02:00
|
|
|
|
%if 0%{?with_pdf}
|
|
|
|
|
%_docdir/%name
|
|
|
|
|
%endif
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|