Accepting request 936075 from server:mail

- Wrap a number of build dependencies into %{?with_pdf}
(Add DEB recipe for own uses)

OBS-URL: https://build.opensuse.org/request/show/936075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvmime?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2021-12-06 23:00:21 +00:00 committed by Git OBS Bridge
commit e3bc670ae2
9 changed files with 72 additions and 5 deletions

5
debian.changelog Normal file
View File

@ -0,0 +1,5 @@
libvmime (0.9.2.165-0) unstable; urgency=low
* Initial package.
-- openSUSE <opensuse@opensuse.org> Mon, 29 Nov 2021 10:00:00 +0100

18
debian.control Normal file
View File

@ -0,0 +1,18 @@
Source: libvmime
Priority: optional
Section: mail
Maintainer: openSUSE <opensuse@opensuse.org>
Standards-Version: 4.5.0
Build-Depends: debhelper-compat (= 12)
Package: libvmime-suse4
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Library for working with MIME messages and IMAP/POP/SMTP
.
Package: libvmime-dev
Architecture: any
Depends: ${misc:Depends}, libvmime-suse4 (= ${binary:Version})
Description: Development files for vmime, an e-mail message library
.

View File

@ -0,0 +1 @@
usr/include/*

View File

@ -0,0 +1 @@
usr/lib/*/libvmime*.so.*

21
debian.rules Normal file
View File

@ -0,0 +1,21 @@
#!/usr/bin/make -f
include /usr/share/dpkg/buildflags.mk
export DH_VERBOSE=1
%:
dh $@ --parallel
override_dh_auto_configure:
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH="/usr/lib/${DEB_HOST_MULTIARCH}" \
-DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail"
-DVMIME_BUILD_SAMPLES:BOOL=OFF \
-DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \
-DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="${CPPFLAGS} ${CXXFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING=" " \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="${CPPFLAGS} ${CFLAGS}" \
-DCMAKE_C_FLAGS:STRING=" " \
-DCMAKE_SHARED_LINKER_FLAGS_RELEASE="${LDFLAGS}"

2
debian.series Normal file
View File

@ -0,0 +1,2 @@
libvmime-nodatetime.diff
libvmime-soname.diff

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Dec 4 16:08:42 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Wrap a number of build dependencies into %{?with_pdf}
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 24 09:49:33 UTC 2021 - Jan Engelhardt <jengelh@inai.de> Wed Nov 24 09:49:33 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

13
libvmime.dsc Normal file
View File

@ -0,0 +1,13 @@
Format: 1.0
Source: libvmime
Architecture: any
Version: 0.9.2.165
DEBTRANSFORM-RELEASE: 1
Maintainer: openSUSE <opensuse@opensuse.org>
Homepage: https://opensuse.org/
Standards-Version: 4.5.0
Build-Depends:
cmake (>= 2.8.3), debhelper-compat (>= 12), devscripts, fakeroot, g++,
libgnutls28-dev, libgsasl7-dev, g++ (>= 7), make, m4, openssl,
pkg-config (>= 0.23)
Files:

View File

@ -29,23 +29,25 @@ URL: http://vmime.org/
Source: vmime-%version.tar.xz Source: vmime-%version.tar.xz
Patch1: libvmime-nodatetime.diff Patch1: libvmime-nodatetime.diff
Patch2: libvmime-soname.diff Patch2: libvmime-soname.diff
BuildRequires: ImageMagick
BuildRequires: cmake >= 2.8.3 BuildRequires: cmake >= 2.8.3
BuildRequires: doxygen
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: inkscape
BuildRequires: libgnutls-devel BuildRequires: libgnutls-devel
%if !0%{?sle_version} %if !0%{?sle_version}
BuildRequires: libgsasl-devel BuildRequires: libgsasl-devel
%endif %endif
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: xz
%if 0%{?with_pdf}
BuildRequires: ImageMagick
BuildRequires: doxygen
BuildRequires: inkscape
BuildRequires: texlive-latex BuildRequires: texlive-latex
BuildRequires: texlive-collection-fontsrecommended BuildRequires: texlive-collection-fontsrecommended
BuildRequires: tex(courier.sty) BuildRequires: tex(courier.sty)
BuildRequires: tex(fancyheadings.sty) BuildRequires: tex(fancyheadings.sty)
BuildRequires: tex(pcrr7t.tfm) BuildRequires: tex(pcrr7t.tfm)
BuildRequires: tex(ucs.sty) BuildRequires: tex(ucs.sty)
BuildRequires: xz %endif
%description %description
VMime is a C++ class library for working with RFC5322 and VMime is a C++ class library for working with RFC5322 and
@ -94,7 +96,6 @@ popd
%cmake \ %cmake \
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \
-DLIB_INSTALL_DIR:PATH="%_libdir" \
-DSYSCONF_INSTALL_DIR:PATH="%_sysconfdir" \ -DSYSCONF_INSTALL_DIR:PATH="%_sysconfdir" \
-DSHARE_INSTALL_PREFIX:PATH="%_datadir" \ -DSHARE_INSTALL_PREFIX:PATH="%_datadir" \
-DCMAKE_INSTALL_LIBDIR:PATH="%_libdir" \ -DCMAKE_INSTALL_LIBDIR:PATH="%_libdir" \