From 80bd01b4f70def09031f240b7fb315aedd2bc71843db6ba977e7b5ffd2ba14d7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 12 Jun 2022 14:58:45 +0000 Subject: [PATCH] reimport debian recipe OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=33 --- debian.control | 3 ++- debian.libvmime-dev.install | 2 ++ libvmime.spec | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian.control b/debian.control index feb27ac..84bf8ec 100644 --- a/debian.control +++ b/debian.control @@ -13,6 +13,7 @@ Description: Library for working with MIME messages and IMAP/POP/SMTP Package: libvmime-dev Architecture: any -Depends: ${misc:Depends}, libvmime-suse5 (= ${binary:Version}) +Depends: ${misc:Depends}, libvmime-suse5 (= ${binary:Version}), + libgsasl-dev | libgsasl7-dev, libgnutls28-dev Description: Development files for vmime, an e-mail message library . diff --git a/debian.libvmime-dev.install b/debian.libvmime-dev.install index 0c47bc7..b107715 100644 --- a/debian.libvmime-dev.install +++ b/debian.libvmime-dev.install @@ -1 +1,3 @@ usr/include/* +usr/lib/*/*.so +usr/lib/*/pkgconfig/ diff --git a/libvmime.spec b/libvmime.spec index 7a2376e..1446679 100644 --- a/libvmime.spec +++ b/libvmime.spec @@ -98,6 +98,8 @@ make book_pdf popd %endif +# for some reason I don't care researching in detail, CentOS8 dies with +# a PIC-related relocation error during cmake-configure. Hence forcing -fPIC. %cmake \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ @@ -113,9 +115,9 @@ popd -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \ -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="$cf" \ - -DCMAKE_CXX_FLAGS:STRING=" " \ + -DCMAKE_CXX_FLAGS:STRING="%{?centos_version:-fPIC} " \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$cf" \ - -DCMAKE_C_FLAGS:STRING=" " \ + -DCMAKE_C_FLAGS:STRING="%{?centos_version:-fPIC} " \ -DVMIME_BUILD_DOCUMENTATION:BOOL=OFF %cmake_build