[libvmime] - Downgrade to GIT 20120406 (#1008068) - Added virtual provides libvmime(abi) and libvmime(api) for

Robert Scheck robert at fedoraproject.org
Sun Dec 8 12:51:52 UTC 2013


commit ac566641f7f35e1d5ff75640b826161bae237e71
Author: Robert Scheck <robert at fedoraproject.org>
Date:   Sun Dec 8 13:51:36 2013 +0100

    - Downgrade to GIT 20120406 (#1008068)
    - Added virtual provides libvmime(abi) and libvmime(api) for other packages as libvmime 0.9.2 does still not ensure any API/ABI compatibility for years now

 libvmime-0.9.2-gnutls.patch |   86 -------------------------------------------
 libvmime.spec               |   40 +++++++++++--------
 sources                     |    2 +-
 3 files changed, 24 insertions(+), 104 deletions(-)
---
diff --git a/libvmime.spec b/libvmime.spec
index d9cc354..4924688 100644
--- a/libvmime.spec
+++ b/libvmime.spec
@@ -1,3 +1,4 @@
+%global apiver  20120406
 %global static  1
 %global sasl    1
 %global gnutls  1
@@ -5,7 +6,7 @@
 Summary:        Powerful library for MIME messages and Internet messaging services
 Name:           libvmime
 Version:        0.9.2
-Release:        0.8.20130324git%{?dist}
+Release:        0.9.20120406git%{?dist}
 License:        GPLv3+
 Group:          System Environment/Libraries
 URL:            http://www.vmime.org/
@@ -14,14 +15,13 @@ URL:            http://www.vmime.org/
 #
 # When generating tarball package from upstream git:
 # - git clone git://github.com/kisli/vmime libvmime-0.9.2
-# - cd libvmime-0.9.2; git checkout f381654277d5ee4fd0c3c743f970dcaf096fa796
-# - rm -f examples/example[0-9]  # Remove strange binaries from checkout
+# - cd libvmime-0.9.2; git checkout b5927243a27b30cad4b303308c953d6a2d48bc0b
 # - rm -rf .git; cd ..; tar cvfj libvmime-0.9.2.tar.bz2 libvmime-0.9.2
 # - Use the visible date of latest git log entry for %{release} in spec file
 Source0:        %{name}-%{version}.tar.bz2
-Patch0:         libvmime-0.9.2-gnutls.patch
+Provides:       %{name}(abi) = %{apiver}
 BuildRequires:  sendmail, %{?sasl:libgsasl-devel}, %{?gnutls:gnutls-devel}
-BuildRequires:  cmake
+BuildRequires:  scons, libtool, autoconf, automake
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -36,9 +36,10 @@ complete mail client.
 %package devel
 Summary:        Development headers for the libvmime library
 Group:          Development/Libraries
+Provides:       %{name}(api) = %{apiver}
 Requires:       %{name}%{?_isa} = %{version}-%{release}
 Requires:       pkgconfig, %{?sasl:libgsasl-devel}, %{?gnutls:gnutls-devel}
-%if !%{static}
+%if !0%{?static}
 Obsoletes:      %{name}-static <= %{version}-%{release}
 %endif
 
@@ -46,11 +47,11 @@ Obsoletes:      %{name}-static <= %{version}-%{release}
 The libvmime package contains header files and libraries necessary
 for developing applications which use the libvmime C++ class library.
 
-%if %{static}
+%if 0%{?static}
 %package static
 Summary:        Static library for the libvmime library
 Group:          Development/Libraries
-Requires:       %{name}-devel = %{version}-%{release}
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
 
 %description static
 The libvmime-static package includes static libraries of the libvmime
@@ -59,22 +60,22 @@ library. Install it if you need to link statically with libvmime.
 
 %prep
 %setup -q
-%if 0%{?rhel}%{?fedora} < 7
-%patch0 -p1 -b .gnutls
-%endif
+scons autotools
 
 %build
-%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .
+export EXTRA_CFLAGS="$RPM_OPT_FLAGS"
+%configure %{!?static:--disable-static}
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
 
-%if !%{static}
-# Don't install any static .a files
-rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.a
-%endif
+# Docs are available online and are installed in the wrong location
+rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/vmime/
+
+# Don't install any libtool .la files
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -94,13 +95,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/%{name}.so
 %{_libdir}/pkgconfig/vmime.pc
 
-%if %{static}
+%if 0%{?static}
 %files static
 %defattr(-,root,root,-)
 %{_libdir}/%{name}.a
 %endif
 
 %changelog
+* Sun Dec 08 2013 Robert Scheck <robert at fedoraproject.org> 0.9.2-0.9.20120406git
+- Downgrade to GIT 20120406 (#1008068)
+- Added virtual provides libvmime(abi) and libvmime(api) for other packages as
+  libvmime 0.9.2 does still not ensure any API/ABI compatibility for years now
+
 * Mon Aug 05 2013 Robert Scheck <robert at fedoraproject.org> 0.9.2-0.8.20130324git
 - Upgrade to GIT 20130324
 - Added subpackage with static library for 3rd party developers (#746829)
diff --git a/sources b/sources
index 14f774d..854f256 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fc9536709dd74864b6679dfa177d1479  libvmime-0.9.2.tar.bz2
+c30b8c2d418579fb9fb89953071f455c  libvmime-0.9.2.tar.bz2


More information about the scm-commits mailing list