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