2012-03-06 13:38:49 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package libvmime
|
|
|
|
|
#
|
2024-02-20 12:05:29 +01:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
|
2023-12-18 04:53:16 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-06 13:38:49 +01:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2012-03-22 12:34:38 +01:00
|
|
|
|
Name: libvmime
|
2024-02-20 12:05:29 +01:00
|
|
|
|
%define lname libvmime-suse6
|
|
|
|
|
Version: 0.9.2+g188
|
2021-11-24 12:04:37 +01:00
|
|
|
|
Release: 0
|
2019-05-28 13:58:22 +02:00
|
|
|
|
Summary: Library for working with RFC 5322, 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++
|
2020-05-24 01:02:34 +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
|
2021-11-24 12:04:37 +01:00
|
|
|
|
Patch2: libvmime-soname.diff
|
2013-04-08 14:53:19 +02:00
|
|
|
|
BuildRequires: cmake >= 2.8.3
|
2012-03-22 12:34:38 +01:00
|
|
|
|
BuildRequires: gcc-c++
|
2022-01-08 13:57:16 +01:00
|
|
|
|
%if 0%{?centos_version}
|
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
%else
|
2014-08-25 07:57:56 +02:00
|
|
|
|
BuildRequires: libgnutls-devel
|
2022-01-08 13:57:16 +01:00
|
|
|
|
%endif
|
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
|
2022-01-08 13:57:16 +01:00
|
|
|
|
BuildRequires: openssl-devel
|
2016-06-22 19:41:27 +02:00
|
|
|
|
BuildRequires: pkg-config
|
2021-12-04 17:09:48 +01:00
|
|
|
|
BuildRequires: xz
|
|
|
|
|
%if 0%{?with_pdf}
|
|
|
|
|
BuildRequires: ImageMagick
|
|
|
|
|
BuildRequires: doxygen
|
2021-12-04 17:27:19 +01:00
|
|
|
|
BuildRequires: inkscape
|
2013-12-30 10:22:26 +01:00
|
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
2023-12-18 04:53:16 +01:00
|
|
|
|
BuildRequires: texlive-latex
|
2013-04-08 14:53:19 +02:00
|
|
|
|
BuildRequires: tex(courier.sty)
|
|
|
|
|
BuildRequires: tex(fancyheadings.sty)
|
|
|
|
|
BuildRequires: tex(pcrr7t.tfm)
|
|
|
|
|
BuildRequires: tex(ucs.sty)
|
2021-12-04 17:09:48 +01:00
|
|
|
|
%endif
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2019-05-28 13:58:22 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC5322 and
|
2017-07-13 16:12:00 +02:00
|
|
|
|
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
|
2019-05-28 13:58:22 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC5322 and
|
2017-07-13 16:12:00 +02:00
|
|
|
|
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
|
2019-05-28 13:58:22 +02:00
|
|
|
|
VMime is a C++ class library for working with RFC5322 and
|
2017-07-13 16:12:00 +02:00
|
|
|
|
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
|
2020-05-24 01:02:34 +02:00
|
|
|
|
%autosetup -p1 -n vmime-%version
|
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
|
|
|
|
|
|
2018-06-25 14:27:33 +02:00
|
|
|
|
%cmake \
|
2019-05-28 13:58:22 +02:00
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
|
|
|
|
|
-DINCLUDE_INSTALL_DIR:PATH="%_includedir" \
|
|
|
|
|
-DSYSCONF_INSTALL_DIR:PATH="%_sysconfdir" \
|
|
|
|
|
-DSHARE_INSTALL_PREFIX:PATH="%_datadir" \
|
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH="%_libdir" \
|
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" \
|
2022-09-25 20:34:19 +02:00
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%{?redhat_version:-fPIC} %{?almalinux_version:-fPIC}" \
|
2018-06-25 15:16:01 +02:00
|
|
|
|
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \
|
2022-09-25 20:34:19 +02:00
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%{?redhat_version:-fPIC} %{?almalinux_version:-fPIC}" \
|
2022-01-08 13:57:16 +01:00
|
|
|
|
-DVMIME_BUILD_DOCUMENTATION:BOOL=OFF
|
2021-11-24 12:04:37 +01:00
|
|
|
|
%cmake_build
|
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
|
2016-06-22 19:41:27 +02:00
|
|
|
|
find "$b" -type f -name "*.la" -delete
|
2019-05-28 13:58:22 +02:00
|
|
|
|
mkdir -p "$b/%_datadir"
|
2021-11-24 12:04:37 +01:00
|
|
|
|
#mv "$b/%_prefix/cmake" "$b/%_datadir/"
|
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
|
2020-05-24 01:02:34 +02:00
|
|
|
|
%license COPYING
|
2024-02-20 12:05:29 +01:00
|
|
|
|
%_libdir/libvmime-suse.so.6*
|
2012-03-06 13:38:49 +01:00
|
|
|
|
|
|
|
|
|
%files devel
|
2013-04-08 14:53:19 +02:00
|
|
|
|
%_includedir/vmime
|
|
|
|
|
%_libdir/libvmime.so
|
2021-11-24 12:04:37 +01:00
|
|
|
|
%_libdir/libvmime-suse.so
|
2012-03-06 13:38:49 +01:00
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2021-11-24 12:04:37 +01:00
|
|
|
|
%_libdir/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
|