SHA256
1
0
forked from pool/libvmime

[info=e68844707f6935fa176d44c9ca68207db27f4615e66f42558c214b4605772087]

OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=52
This commit is contained in:
Jan Engelhardt 2024-07-24 12:02:07 +00:00 committed by Git OBS Bridge
commit 1bc54e830a
19 changed files with 546 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1721822337
commit: e68844707f6935fa176d44c9ca68207db27f4615e66f42558c214b4605772087
url: https://src.opensuse.org/jengelh/libvmime
revision: master

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/kisli/vmime</param>
<param name="revision">d03ad5f0f6d3b2d54009ccdc7d1f7670218b263c</param>
<param name="parent-tag">v0.9.2</param>
<param name="versionformat">0.9.2+g@TAG_OFFSET@</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:456b3a8e6bad33ab468bbf6cfb7a43240a7a67670ccc2f9f32b5bab8a697fae6
size 256

5
debian.changelog Normal file
View File

@ -0,0 +1,5 @@
libvmime (0.9.2+g203-0) unstable; urgency=low
* Initial package.
-- openSUSE <opensuse@opensuse.org> Mon, 29 Nov 2021 10:00:00 +0100

19
debian.control Normal file
View File

@ -0,0 +1,19 @@
Source: libvmime
Priority: optional
Section: mail
Maintainer: openSUSE <opensuse@opensuse.org>
Standards-Version: 4.5.0
Build-Depends: debhelper-compat (= 12)
Package: libvmime-suse8
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Library for working with MIME messages and IMAP/POP/SMTP
.
Package: libvmime-dev
Architecture: any
Depends: ${misc:Depends}, libvmime-suse8 (= ${binary:Version}),
libgsasl-dev | libgsasl7-dev, libgnutls28-dev
Description: Development files for vmime, an e-mail message library
.

View File

@ -0,0 +1,3 @@
usr/include/*
usr/lib/*/*.so
usr/lib/*/pkgconfig/

View File

@ -0,0 +1 @@
usr/lib/*/libvmime*.so.*

View File

@ -0,0 +1 @@
usr/lib/*/libvmime*.so.*

View File

@ -0,0 +1 @@
usr/lib/*/libvmime*.so.*

21
debian.rules Normal file
View File

@ -0,0 +1,21 @@
#!/usr/bin/make -f
include /usr/share/dpkg/buildflags.mk
export DH_VERBOSE=1
%:
dh $@ --parallel
override_dh_auto_configure:
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH="/usr/lib/${DEB_HOST_MULTIARCH}" \
-DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/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="${CPPFLAGS} ${CXXFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING=" " \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="${CPPFLAGS} ${CFLAGS}" \
-DCMAKE_C_FLAGS:STRING=" " \
-DCMAKE_SHARED_LINKER_FLAGS_RELEASE="${LDFLAGS}"

2
debian.series Normal file
View File

@ -0,0 +1,2 @@
libvmime-nodatetime.diff
libvmime-soname.diff

22
libvmime-nodatetime.diff Normal file
View File

@ -0,0 +1,22 @@
From 6908ad636e59339b9042205e6fd22444f45a7529 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Wed, 27 Mar 2013 17:52:26 +0100
Subject: [PATCH] src: avoid __DATE__ and __TIME__
---
src/vmime/base.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: vmime/src/vmime/base.cpp
===================================================================
--- vmime.orig/src/vmime/base.cpp
+++ vmime/src/vmime/base.cpp
@@ -75,7 +75,7 @@ const string libname() { return (VMIME_P
*
* @return library version
*/
-const string libversion() { return (VMIME_VERSION " (" __DATE__ " " __TIME__ ")"); }
+const string libversion() { return (VMIME_VERSION " (_""_DATE_""_ causes unnecessary rebuilds - avoid)"); }
/** Return the library API version (eg: "6:1:6").
*

41
libvmime-soname.diff Normal file
View File

@ -0,0 +1,41 @@
commit fb47e5911366daba6e29c5909880e3ca99ea4d90
Author: Jan Engelhardt <jengelh@inai.de>
Date: Sun Jun 30 10:14:21 2019 +0200
Add some distinguishing library name identifiers as per
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy#When_there_is_no_versioning
ordinal clause 3 (packaging Git snapshot with ABI changing midway).
---
CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: vmime-0.9.2.165/CMakeLists.txt
===================================================================
--- vmime-0.9.2.165.orig/CMakeLists.txt
+++ vmime-0.9.2.165/CMakeLists.txt
@@ -50,7 +50,7 @@ SET(VMIME_VERSION_MICRO 2)
# . Interfaces added/removed/changed: CURRENT++, REVISION=0
# . Interfaces added (upward-compatible changes): AGE++
# . Interfaces removed: AGE=0
-SET(VMIME_API_VERSION_CURRENT 1)
+SET(VMIME_API_VERSION_CURRENT 8)
SET(VMIME_API_VERSION_REVISION 0)
SET(VMIME_API_VERSION_AGE 0)
@@ -163,11 +163,15 @@ IF(VMIME_BUILD_SHARED_LIBRARY)
SET_TARGET_PROPERTIES(
${VMIME_LIBRARY_NAME}
PROPERTIES
+ OUTPUT_NAME "vmime-suse"
VERSION "${VMIME_API_VERSION}"
SOVERSION "${VMIME_API_VERSION_CURRENT}"
COMPILE_FLAGS -DVMIME_SHARED
)
+ execute_process(COMMAND ln -s libvmime-suse.so.${VMIME_API_VERSION_CURRENT} ${CMAKE_BINARY_DIR}/libvmime.so)
+ install(FILES ${CMAKE_BINARY_DIR}/libvmime.so DESTINATION ${CMAKE_INSTALL_LIBDIR}/ COMPONENT libraries)
+
ENDIF()
# Static library

222
libvmime.changes Normal file
View File

@ -0,0 +1,222 @@
-------------------------------------------------------------------
Wed Jul 24 11:58:38 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update libvmime-soname.diff to support out-of-tree cmake builds
-------------------------------------------------------------------
Wed Jun 19 10:05:25 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2+git203 (43b262bd)
* another potential multiplication overflows
* build: upgrade to C++17 when ICU is used
* Fix a test failure in testNewFromString and
pathTest::testGenerate
-------------------------------------------------------------------
Tue May 21 14:25:12 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2+git196 (d296c2d)
* vmime: prevent loss of a space when a multi-word mailbox name
contains an umlaut
-------------------------------------------------------------------
Wed Apr 24 17:39:08 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2+git191 (d03ad5f0)
* url: fix an off-by-one error in parsing hostnames
* url: strip leading slash from url-path
* Support FIPS under OpenSSL 3
-------------------------------------------------------------------
Sun Feb 25 23:52:52 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Reinstate %optflags
-------------------------------------------------------------------
Sun Dec 31 16:19:00 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2+git188 (c3c6242ed)
* Fix emission of bugs Envelope-From to sendmail:// transports.
* Add parsing feedback via parsingContext
- Drop 0001-Avoid-generating-illegal-Envelope-From-with-sendmail.patch
(merged)
-------------------------------------------------------------------
Mon Dec 18 03:46:09 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-Avoid-generating-illegal-Envelope-From-with-sendmail.patch
-------------------------------------------------------------------
Sun Sep 25 18:34:03 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Force-add -fPIC under RHEL and derivatives
-------------------------------------------------------------------
Sat Jun 11 14:40:34 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2.175 (fc69321d)
* Added utility function to convert byteArray to HEX string.
* Added support for digest algorithm SHA256 (in certificates).
-------------------------------------------------------------------
Sat Jan 8 12:56:59 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Add BuildRequires for RH/CentOS
-------------------------------------------------------------------
Sat Dec 4 16:08:42 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Wrap a number of build dependencies into %{?with_pdf}
-------------------------------------------------------------------
Wed Nov 24 09:49:33 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 0.9.2.165 (edcb4b4b1f1f)
* imap: Added support for pipelined and out-of-order replies.
* smtp: Add basic support for delivery status notifications (DSN)
* mime: Reply-To is now an addressList in accordance with the RFC
(API change)
- Add libvmime-soname.diff
-------------------------------------------------------------------
Sun Oct 6 14:21:40 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to 0.9.2k4 (0.9.2.96)
* Skip delimiter lines that are not exactly equal to the boundary
-------------------------------------------------------------------
Tue May 28 10:38:46 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to Kopano branch of vmime, 0.9.2k2 (0.9.2.85)
* Unbreak own hostname qualification on POSIX systems
-------------------------------------------------------------------
Mon Jun 25 12:21:09 UTC 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 <e@f.g>" or
"=?UTF-8?Q?a=c2=a0recipient_=28foo@bar.com=29?= <e@f.g>".
* Add SMTPS with AUTH PLAIN without SASL.
-------------------------------------------------------------------
Mon Apr 23 07:58:00 UTC 2018 - jengelh@inai.de
- Add no-override-cflags.diff so that vmime becomes externally
buildable with other -O/-g levels.
-------------------------------------------------------------------
Thu Jul 13 14:11:54 UTC 2017 - jengelh@inai.de
- Update description
-------------------------------------------------------------------
Thu Jul 13 11:48:42 UTC 2017 - olaf@aepfle.de
- Remove openssl because gnutls is preferd already
-------------------------------------------------------------------
Wed Mar 8 09:43:48 UTC 2017 - bosim@opensuse.org
- Don't stop the build due to SLES missing GSASL.
-------------------------------------------------------------------
Mon Jan 23 22:44:49 UTC 2017 - jengelh@inai.de
- Resolve wrong name of cmake variable:
CMAKE_RELEASE_TYPE -> CMAKE_BUILD_TYPE
-------------------------------------------------------------------
Tue Jan 3 11:51:36 UTC 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 18:36:29 UTC 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 17:05:17 UTC 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 07:33:44 UTC 2015 - jengelh@inai.de
- Ship COPYING file
-------------------------------------------------------------------
Mon Aug 25 05:27:53 UTC 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 13:53:29 UTC 2013 - jengelh@inai.de
- Use existing postscript fonts as BuildRequires
(suggestion by user WernerFink)
-------------------------------------------------------------------
Mon Aug 5 17:48:54 CEST 2013 - ro@suse.de
- BuildRequire texlive-bin-latex only for <= 12.3
-------------------------------------------------------------------
Wed Mar 27 18:26:20 UTC 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 19:47:40 UTC 2013 - jengelh@inai.de
- Add vmime-automake1_13.diff to fix up ancient autotools constructs
-------------------------------------------------------------------
Sat Aug 11 14:44:08 UTC 2012 - jengelh@inai.de
- Make the package build on RHEL6
-------------------------------------------------------------------
Thu Jul 12 16:40:45 UTC 2012 - jengelh@inai.de
- Enable always generating 7-bit parameters
(https://jira.zarafa.com/browse/ZCP-9475)
-------------------------------------------------------------------
Thu May 10 00:13:33 UTC 2012 - crrodriguez@opensuse.org
- Use RPM_OPT_FLAGS
- Do not use -ansi gcc flag.
-------------------------------------------------------------------
Fri Mar 16 12:33:11 UTC 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 14:59:15 UTC 2011 - jengelh@medozas.de
- Initial package for build.opensuse.org

13
libvmime.dsc Normal file
View File

@ -0,0 +1,13 @@
Format: 1.0
Source: libvmime
Architecture: any
Version: 0.9.2+g203
DEBTRANSFORM-RELEASE: 1
Maintainer: openSUSE <opensuse@opensuse.org>
Homepage: https://opensuse.org/
Standards-Version: 4.5.0
Build-Depends:
cmake (>= 2.8.3), debhelper-compat (>= 12), devscripts, fakeroot, g++,
libgnutls28-dev, libgsasl7-dev, g++ (>= 7), make, m4, openssl,
pkg-config (>= 0.23)
Files:

147
libvmime.spec Normal file
View File

@ -0,0 +1,147 @@
#
# spec file for package libvmime
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: libvmime
%define lname libvmime-suse8
Version: 0.9.2+g203
Release: 0
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++
URL: http://vmime.org/
#Source: https://github.com/kisli/vmime/archive/v%%version.tar.gz
Source: vmime-%version.tar.xz
Patch1: libvmime-nodatetime.diff
Patch2: libvmime-soname.diff
BuildRequires: cmake >= 2.8.3
BuildRequires: gcc-c++
%if 0%{?rhel} || 0%{?fedora_version}
BuildRequires: gnutls-devel
%else
BuildRequires: libgnutls-devel
%endif
%if !0%{?sle_version}
BuildRequires: libgsasl-devel
%endif
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: xz
%if 0%{?with_pdf}
BuildRequires: ImageMagick
BuildRequires: doxygen
BuildRequires: inkscape
BuildRequires: texlive-collection-fontsrecommended
BuildRequires: texlive-latex
BuildRequires: tex(courier.sty)
BuildRequires: tex(fancyheadings.sty)
BuildRequires: tex(pcrr7t.tfm)
BuildRequires: tex(ucs.sty)
%endif
%description
VMime is a C++ class library for working with RFC5322 and
MIME-conforming messages (RFC20452049), 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 (RFC20452049), 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: %lname = %version
%description devel
VMime is a C++ class library for working with RFC5322 and
MIME-conforming messages (RFC20452049), as well as Internet
messaging services like IMAP, POP or SMTP.
This subpackage contains the headers for the library's API.
%prep
%autosetup -p1 -n vmime-%version
%build
%if 0%{?with_pdf}
pushd doc/book/
make book_pdf
popd
%endif
%cmake \
-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" \
-DVMIME_SENDMAIL_PATH:STRING="%_sbindir/sendmail" \
-DVMIME_BUILD_SAMPLES:BOOL=OFF \
%if 0%{?sle_version}
-DVMIME_HAVE_SASL_SUPPORT:BOOL=OFF \
%endif
-DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \
-DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="%optflags" \
-DCMAKE_C_FLAGS:STRING="%optflags" \
-DVMIME_BUILD_DOCUMENTATION:BOOL=OFF
%cmake_build
%install
b="%buildroot"
%if 0%{?with_pdf}
mkdir -p "$b/%_docdir/%name"
cp -a doc/book/book.pdf "$b/%_docdir/%name/"
%endif
%cmake_install
find "$b" -type f -name "*.la" -delete
%ldconfig_scriptlets -n %lname
%files -n %lname
%license COPYING
%_libdir/libvmime-suse.so.*
%files devel
%_includedir/vmime
%_libdir/libvmime.so
%_libdir/libvmime-suse.so
%_libdir/pkgconfig/*.pc
%_libdir/cmake/
%if 0%{?with_pdf}
%_docdir/%name
%endif
%changelog

BIN
vmime-0.9.2+g203.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.