# # spec file for package libvmime # # Copyright (c) 2018 SUSE LINUX 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/ # %define lversion 0.9.2k2 Name: libvmime %define lname libvmime1 Summary: Library for working with RFC 5322, MIME messages and IMAP/POP/SMTP License: GPL-3.0-or-later Group: Development/Libraries/C and C++ Version: 0.9.2.85 Release: 1%{?dist} Url: http://vmime.org/ Source: https://github.com/Kopano-dev/vmime/archive/v%{lversion}.tar.gz Patch1: https://copr-dist-git.fedorainfracloud.org/cgit/pvieperen/Kopano/libvmime.git/plain/libvmime-nodatetime.diff?id=926845ac1128f0417d06aba80c4363fa160214b3 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ImageMagick BuildRequires: cmake >= 2.8.3 BuildRequires: gtk3-devel BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: inkscape BuildRequires: gnutls-devel BuildRequires: libgsasl-devel BuildRequires: pkg-config %define with_pdf 1 BuildRequires: texlive-latex BuildRequires: texlive-collection-fontsrecommended BuildRequires: tex(courier.sty) BuildRequires: tex(fancyheadings.sty) BuildRequires: tex(pcrr7t.tfm) BuildRequires: tex(ucs.sty) BuildRequires: xz %description VMime is a C++ class library for working with RFC5322 and MIME-conforming messages (RFC2045–2049), as well as Internet messaging services like IMAP, POP or SMTP. 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. %package -n %lname Summary: Library for working with MIME messages and IMAP/POP/SMTP Group: System/Libraries %description -n %lname VMime is a C++ class library for working with RFC5322 and MIME-conforming messages (RFC2045–2049), as well as Internet messaging services like IMAP, POP or SMTP. 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. %package devel Summary: Development files for vmime, an e-mail message library Group: Development/Libraries/C and C++ Requires: %name = %version %description devel VMime is a C++ class library for working with RFC5322 and MIME-conforming messages (RFC2045–2049), as well as Internet messaging services like IMAP, POP or SMTP. This subpackage contains the headers for the library's API. %prep %setup -qn vmime-%{lversion} %patch -P 1 -p1 %build %if 0%{?with_pdf} pushd doc/book/ make book_pdf popd %endif cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1" %cmake \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ -DLIB_INSTALL_DIR:PATH="%_libdir" \ -DSYSCONF_INSTALL_DIR:PATH="%_sysconfdir" \ -DSHARE_INSTALL_PREFIX:PATH="%_datadir" \ -DCMAKE_INSTALL_LIBDIR:PATH="%_libdir" \ -DVMIME_SENDMAIL_PATH:STRING="%_sbindir/sendmail" \ -DVMIME_BUILD_SAMPLES:BOOL=OFF \ -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \ -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="$cf" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" make %{?_smp_mflags} VERBOSE=1 %install b="%buildroot" %if 0%{?with_pdf} mkdir -p "$b/%_docdir/%name" cp -a doc/book/book.pdf "$b/%_docdir/%name/" %endif %make_install mv "$b/%_prefix/cmake" "$b/%_datadir/" find "$b" -type f -name "*.la" -delete %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING %_libdir/%name-kopano.so.2* %files devel %defattr(-,root,root) %_includedir/vmime %_libdir/%name.so %_libdir/%name-kopano.so %_libdir/pkgconfig/*.pc %_datadir/cmake/ %if 0%{?with_pdf} %_docdir/%name %endif %changelog * Mon May 27 2019 pvieperen77@gmail.com - Bumped to 0.9.2k2 * Mon Apr 1 2019 pvieperen77@gmail.com - Fixed building voor 32bit * Thu Nov 8 2018 jengelh@inai.de - Add 0001-vmime-support-multi-address-Reply-To.patch * Mon Jun 25 2018 jengelh@inai.de - Update to new git snapshot v0.9.2-50-ga9b8221 * Dropped support for boost::shared_ptr<>, enabled exclusive C++11 use of std::shared_ptr. * Handle parsing of (RFC-nonconforming) address lines containing bare at signs, like "a@b.c " or "=?UTF-8?Q?a=c2=a0recipient_=28foo@bar.com=29?= ". * Add SMTPS with AUTH PLAIN without SASL. * Tue Jun 12 2018 mark.verlinde@gmail.com - adapt for build (centos) el7 * Mon Apr 23 2018 jengelh@inai.de - Add no-override-cflags.diff so that vmime becomes externally buildable with other -O/-g levels. * Thu Jul 13 2017 jengelh@inai.de - Update description * Thu Jul 13 2017 olaf@aepfle.de - Remove openssl because gnutls is preferd already * Wed Mar 8 2017 bosim@opensuse.org - Don't stop the build due to SLES missing GSASL. * Mon Jan 23 2017 jengelh@inai.de - Resolve wrong name of cmake variable: CMAKE_RELEASE_TYPE -> CMAKE_BUILD_TYPE * Tue Jan 3 2017 jengelh@inai.de - Update to final release 0.9.2 * Always ignore newlines between words. - Drop dont-fixup.diff (issue fixed upstream), drop libvmime-sotag.diff (no longer needed). * Sun Oct 30 2016 jengelh@inai.de - Update to new git snapshot 047cacb1dba516ca902b36a290f2b81555658c1e [0.9.2~g500] * Skip multiple (bogus) colons after header field name - Add dont-fixup.diff * Wed Jun 22 2016 jengelh@inai.de - Update to new git snapshot 4d1a6ad2f267e3b83f7c04122af8d8e7ee9a2113 [0.9.2~g490] * handle "x-uuencode" type * Skip word on unexpected error when fixing broken words. * XOAUTH2 auth mechanism support * Wed May 13 2015 jengelh@inai.de - Ship COPYING file * Mon Aug 25 2014 dap@open.by, jengelh@inai.de - Update to new git snapshot 30ea54f269efa673a1eb5bc07e71715b67607dbc * No upstream changelog was provided - Turn on SASL, TLS support - Remove vmime-0.9.2-header-value-on-next-line.diff (no longer applies) * Thu Dec 19 2013 jengelh@inai.de - Use existing postscript fonts as BuildRequires (suggestion by user WernerFink) * Mon Aug 5 2013 ro@suse.de - BuildRequire texlive-bin-latex only for <= 12.3 * Wed Mar 27 2013 jengelh@inai.de - Update to new git snapshot (54b5fe13f7e7cb6c4f63884e91ff472b42b63147) - Removed because merged: vmime-0.8.1-charset-catch.diff, vmime-mixed-qp-in-parameter.diff, vmime-0.9.2-qp-in-buffers.diff - Removed because they no longer apply: vmime-automake1_13.diff, vmime-noansiflag.patch * Sun Mar 3 2013 jengelh@inai.de - Add vmime-automake1_13.diff to fix up ancient autotools constructs * Sat Aug 11 2012 jengelh@inai.de - Make the package build on RHEL6 * Thu Jul 12 2012 jengelh@inai.de - Enable always generating 7-bit parameters (https://jira.zarafa.com/browse/ZCP-9475) * Thu May 10 2012 crrodriguez@opensuse.org - Use RPM_OPT_FLAGS - Do not use -ansi gcc flag. * Fri Mar 16 2012 jengelh@medozas.de - Update to new SVN snapshot rev 603 (ZCP 7.0.6 dependency) * Set Diffie-Hellman prime size (bug SF#3434852) * Thu Jun 30 2011 jengelh@medozas.de - Initial package for build.opensuse.org