SHA256
1
0
forked from pool/libvmime

reimport debian recipe

OBS-URL: https://build.opensuse.org/package/show/server:mail/libvmime?expand=0&rev=33
This commit is contained in:
Jan Engelhardt 2022-06-12 14:58:45 +00:00 committed by Git OBS Bridge
parent 9d0a9014e2
commit 80bd01b4f7
3 changed files with 8 additions and 3 deletions

View File

@ -13,6 +13,7 @@ Description: Library for working with MIME messages and IMAP/POP/SMTP
Package: libvmime-dev Package: libvmime-dev
Architecture: any 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 Description: Development files for vmime, an e-mail message library
. .

View File

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

View File

@ -98,6 +98,8 @@ make book_pdf
popd popd
%endif %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 \ %cmake \
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \
@ -113,9 +115,9 @@ popd
-DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \ -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \ -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="$cf" \ -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_RELWITHDEBINFO:STRING="$cf" \
-DCMAKE_C_FLAGS:STRING=" " \ -DCMAKE_C_FLAGS:STRING="%{?centos_version:-fPIC} " \
-DVMIME_BUILD_DOCUMENTATION:BOOL=OFF -DVMIME_BUILD_DOCUMENTATION:BOOL=OFF
%cmake_build %cmake_build