From b46d8167cc4acd88eeb1b052e2105ab49fe1f9a0977c491ae42c10f2bee51aa7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 24 Nov 2021 11:04:37 +0000 Subject: [PATCH] - Update to snapshot 0.9.2.165 (edcb4b4b1f1f) OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=28 --- _service | 4 ++-- libvmime-soname.diff | 41 +++++++++++++++++++++++++++++++++++++++++ libvmime.changes | 10 ++++++++++ libvmime.spec | 18 +++++++++--------- vmime-0.9.2.165.tar.xz | 3 +++ vmime-0.9.2.96.tar.xz | 3 --- 6 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 libvmime-soname.diff create mode 100644 vmime-0.9.2.165.tar.xz delete mode 100644 vmime-0.9.2.96.tar.xz diff --git a/_service b/_service index 2cc97d4..6c60cc7 100644 --- a/_service +++ b/_service @@ -1,8 +1,8 @@ git - https://github.com/kopano-dev/vmime - v0.9.2k4 + https://github.com/kisli/vmime + edcb4b4b1f1feb5d823d2eaba6aa6dda462d0b00 v0.9.2 0.9.2.@TAG_OFFSET@ diff --git a/libvmime-soname.diff b/libvmime-soname.diff new file mode 100644 index 0000000..3f2ffa3 --- /dev/null +++ b/libvmime-soname.diff @@ -0,0 +1,41 @@ +commit fb47e5911366daba6e29c5909880e3ca99ea4d90 +Author: Jan Engelhardt +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 4) + 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} libvmime.so) ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libvmime.so DESTINATION ${CMAKE_INSTALL_LIBDIR}/ COMPONENT libraries) ++ + ENDIF() + + # Static library diff --git a/libvmime.changes b/libvmime.changes index 5a22e5b..09a63f2 100644 --- a/libvmime.changes +++ b/libvmime.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Nov 24 09:49:33 UTC 2021 - Jan Engelhardt + +- 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 diff --git a/libvmime.spec b/libvmime.spec index 709104b..1013502 100644 --- a/libvmime.spec +++ b/libvmime.spec @@ -17,17 +17,18 @@ Name: libvmime -%define lname libvmime-kopano3 +%define lname libvmime-suse4 +Version: 0.9.2.165 +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++ -Version: 0.9.2.96 -Release: 0 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: ImageMagick BuildRequires: cmake >= 2.8.3 BuildRequires: doxygen @@ -90,7 +91,6 @@ make book_pdf popd %endif -cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1" %cmake \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ @@ -110,7 +110,7 @@ cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1" -DCMAKE_CXX_FLAGS:STRING=" " \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \ -DCMAKE_C_FLAGS:STRING=" " -make %{?_smp_mflags} VERBOSE=1 +%cmake_build %install b="%buildroot" @@ -121,21 +121,21 @@ cp -a doc/book/book.pdf "$b/%_docdir/%name/" %cmake_install find "$b" -type f -name "*.la" -delete mkdir -p "$b/%_datadir" -mv "$b/%_prefix/cmake" "$b/%_datadir/" +#mv "$b/%_prefix/cmake" "$b/%_datadir/" %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %license COPYING -%_libdir/libvmime-kopano.so.3* +%_libdir/libvmime-suse.so.4* %files devel %_includedir/vmime %_libdir/libvmime.so -%_libdir/libvmime-kopano.so +%_libdir/libvmime-suse.so %_libdir/pkgconfig/*.pc -%_datadir/cmake/ +%_libdir/cmake/ %if 0%{?with_pdf} %_docdir/%name %endif diff --git a/vmime-0.9.2.165.tar.xz b/vmime-0.9.2.165.tar.xz new file mode 100644 index 0000000..586de0c --- /dev/null +++ b/vmime-0.9.2.165.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec6541f779ee90e46c015ef3a2da2387629df3e81efde2e7e3b1db1058c0a4f6 +size 383884 diff --git a/vmime-0.9.2.96.tar.xz b/vmime-0.9.2.96.tar.xz deleted file mode 100644 index 64f44bf..0000000 --- a/vmime-0.9.2.96.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d016207a6ac72250cf7f32e45c321e54645915e2201b6f1417595462fbb22697 -size 379076