Accepting request 933957 from server:mail

- Update to snapshot 0.9.2.165 (edcb4b4b1f1f)

OBS-URL: https://build.opensuse.org/request/show/933957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvmime?expand=0&rev=24
This commit is contained in:
Dominique Leuenberger 2021-11-26 23:51:26 +00:00 committed by Git OBS Bridge
commit 9150ad431e
6 changed files with 65 additions and 14 deletions

View File

@ -1,8 +1,8 @@
<services> <services>
<service name="tar_scm" mode="disabled"> <service name="tar_scm" mode="disabled">
<param name="scm">git</param> <param name="scm">git</param>
<param name="url">https://github.com/kopano-dev/vmime</param> <param name="url">https://github.com/kisli/vmime</param>
<param name="revision">v0.9.2k4</param> <param name="revision">edcb4b4b1f1feb5d823d2eaba6aa6dda462d0b00</param>
<param name="parent-tag">v0.9.2</param> <param name="parent-tag">v0.9.2</param>
<param name="versionformat">0.9.2.@TAG_OFFSET@</param> <param name="versionformat">0.9.2.@TAG_OFFSET@</param>
</service> </service>

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 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

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
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> Sun Oct 6 14:21:40 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -17,17 +17,18 @@
Name: libvmime 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 Summary: Library for working with RFC 5322, MIME messages and IMAP/POP/SMTP
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Version: 0.9.2.96
Release: 0
URL: http://vmime.org/ URL: http://vmime.org/
#Source: https://github.com/kisli/vmime/archive/v%%version.tar.gz #Source: https://github.com/kisli/vmime/archive/v%%version.tar.gz
Source: vmime-%version.tar.xz Source: vmime-%version.tar.xz
Patch1: libvmime-nodatetime.diff Patch1: libvmime-nodatetime.diff
Patch2: libvmime-soname.diff
BuildRequires: ImageMagick BuildRequires: ImageMagick
BuildRequires: cmake >= 2.8.3 BuildRequires: cmake >= 2.8.3
BuildRequires: doxygen BuildRequires: doxygen
@ -90,7 +91,6 @@ make book_pdf
popd popd
%endif %endif
cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1"
%cmake \ %cmake \
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \
@ -110,7 +110,7 @@ cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1"
-DCMAKE_CXX_FLAGS:STRING=" " \ -DCMAKE_CXX_FLAGS:STRING=" " \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \
-DCMAKE_C_FLAGS:STRING=" " -DCMAKE_C_FLAGS:STRING=" "
make %{?_smp_mflags} VERBOSE=1 %cmake_build
%install %install
b="%buildroot" b="%buildroot"
@ -121,21 +121,21 @@ cp -a doc/book/book.pdf "$b/%_docdir/%name/"
%cmake_install %cmake_install
find "$b" -type f -name "*.la" -delete find "$b" -type f -name "*.la" -delete
mkdir -p "$b/%_datadir" mkdir -p "$b/%_datadir"
mv "$b/%_prefix/cmake" "$b/%_datadir/" #mv "$b/%_prefix/cmake" "$b/%_datadir/"
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files -n %lname %files -n %lname
%license COPYING %license COPYING
%_libdir/libvmime-kopano.so.3* %_libdir/libvmime-suse.so.4*
%files devel %files devel
%_includedir/vmime %_includedir/vmime
%_libdir/libvmime.so %_libdir/libvmime.so
%_libdir/libvmime-kopano.so %_libdir/libvmime-suse.so
%_libdir/pkgconfig/*.pc %_libdir/pkgconfig/*.pc
%_datadir/cmake/ %_libdir/cmake/
%if 0%{?with_pdf} %if 0%{?with_pdf}
%_docdir/%name %_docdir/%name
%endif %endif

BIN
vmime-0.9.2.165.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
vmime-0.9.2.96.tar.xz (Stored with Git LFS)

Binary file not shown.