diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..94a8316 --- /dev/null +++ b/debian.changelog @@ -0,0 +1,5 @@ +libvmime (0.9.2.165-0) unstable; urgency=low + + * Initial package. + + -- openSUSE Mon, 29 Nov 2021 10:00:00 +0100 diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..750d862 --- /dev/null +++ b/debian.control @@ -0,0 +1,18 @@ +Source: libvmime +Priority: optional +Section: mail +Maintainer: openSUSE +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 + . diff --git a/debian.libvmime-dev.install b/debian.libvmime-dev.install new file mode 100644 index 0000000..0c47bc7 --- /dev/null +++ b/debian.libvmime-dev.install @@ -0,0 +1 @@ +usr/include/* diff --git a/debian.libvmime-suse4.install b/debian.libvmime-suse4.install new file mode 100644 index 0000000..f28726b --- /dev/null +++ b/debian.libvmime-suse4.install @@ -0,0 +1 @@ +usr/lib/*/libvmime*.so.* diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..34f3422 --- /dev/null +++ b/debian.rules @@ -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}" diff --git a/debian.series b/debian.series new file mode 100644 index 0000000..986da02 --- /dev/null +++ b/debian.series @@ -0,0 +1,2 @@ +libvmime-nodatetime.diff +libvmime-soname.diff diff --git a/libvmime.changes b/libvmime.changes index 09a63f2..c4f49c6 100644 --- a/libvmime.changes +++ b/libvmime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 4 16:08:42 UTC 2021 - Jan Engelhardt + +- Wrap a number of build dependencies into %{?with_pdf} + ------------------------------------------------------------------- Wed Nov 24 09:49:33 UTC 2021 - Jan Engelhardt diff --git a/libvmime.dsc b/libvmime.dsc new file mode 100644 index 0000000..5a3a7f3 --- /dev/null +++ b/libvmime.dsc @@ -0,0 +1,13 @@ +Format: 1.0 +Source: libvmime +Architecture: any +Version: 0.9.2.165 +DEBTRANSFORM-RELEASE: 1 +Maintainer: openSUSE +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: diff --git a/libvmime.spec b/libvmime.spec index 1013502..26b7557 100644 --- a/libvmime.spec +++ b/libvmime.spec @@ -29,9 +29,7 @@ URL: http://vmime.org/ Source: vmime-%version.tar.xz Patch1: libvmime-nodatetime.diff Patch2: libvmime-soname.diff -BuildRequires: ImageMagick BuildRequires: cmake >= 2.8.3 -BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: inkscape BuildRequires: libgnutls-devel @@ -39,13 +37,17 @@ BuildRequires: libgnutls-devel BuildRequires: libgsasl-devel %endif BuildRequires: pkg-config +BuildRequires: xz +%if 0%{?with_pdf} +BuildRequires: ImageMagick +BuildRequires: doxygen BuildRequires: texlive-latex BuildRequires: texlive-collection-fontsrecommended BuildRequires: tex(courier.sty) BuildRequires: tex(fancyheadings.sty) BuildRequires: tex(pcrr7t.tfm) BuildRequires: tex(ucs.sty) -BuildRequires: xz +%endif %description VMime is a C++ class library for working with RFC5322 and @@ -94,7 +96,6 @@ popd %cmake \ -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DINCLUDE_INSTALL_DIR:PATH="%_includedir" \ - -DLIB_INSTALL_DIR:PATH="%_libdir" \ -DSYSCONF_INSTALL_DIR:PATH="%_sysconfdir" \ -DSHARE_INSTALL_PREFIX:PATH="%_datadir" \ -DCMAKE_INSTALL_LIBDIR:PATH="%_libdir" \