File gnustep-Pantomime.spec of Package gnustep-Pantomime

#
# spec file for package gnustep-Pantomime
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define _name Pantomime
%define _ver 1.4

Name:           gnustep-Pantomime
Version:        1.4.0
Release:        0
License:        LGPL-2.1
Summary:        The Pantomime framework supports the major mail protocols: POP3, IMAP, and SMTP
Url:            http://wiki.gnustep.org/index.php/Pantomime
Group:          System/Libraries
Source:         %{_name}-%{version}.tar.gz

Requires:       gnustep-back

BuildRequires:  gcc-objc
BuildRequires:  gnustep-make
BuildRequires:  gnustep-base-devel
BuildRequires:  pkgconfig(openssl)
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pantomime provides a set of Objective-C classes that model a mail system. Pantomime can be seen as a JavaMail 1.2 clone written in Objective-C.
Pantomime is almost entirely written in Objective-C. The C language is only used where performance is critical. Pantomime uses a little bit of ELM code.
Pantomime is used in the project GNUMail. It has been included since the release 0.7.0pre2 of GNUMail.app.
Features
  * A full MIME encoder and decoder
  * A 'folder view' to local mailboxes (Berkeley Format), POP3 accounts or IMAP mailboxes
  * A powerful API to work on all aspects of Message objects
  * A local mailer and a SMTP conduit for sending messages
  * APOP and SMTP AUTH support
  * IMAP and POP3 URL Scheme support
  * iconv and Core Foundation support
  * UNIX mbox and maildir support
  * SSL/TLS support for IMAP, POP3 and SMTP
  * and more!

%package -n lib%{_name}
Summary:        Shared libraries of %{_name}
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}

%description -n lib%{_name}
Pantomime provides a set of Objective-C classes that model a mail system.
This package contains shared libraries of %{_name}.

%package -n lib%{_name}-devel
Summary:        Development files of %{_name}
Group:          Development/Objective-C
Provides:       %{name}-devel = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}
Requires:       lib%{_name} = %{version}-%{release}

%description -n lib%{_name}-devel
Pantomime provides a set of Objective-C classes that model a mail system.
This package contains development files of %{_name}.

%prep
%setup -q -n %{_name}-%{version}

%build
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}

%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
ln -sf GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so.%{_ver} %{buildroot}%{_libdir}/lib%{_name}.so.%{_ver}
ln -sf GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so.%{version} %{buildroot}%{_libdir}/lib%{_name}.so.%{version}
ln -sf Versions/%{_ver}/Resources %{buildroot}%{_libdir}/GNUstep/Frameworks/%{_name}.framework/
%fdupes %{buildroot}%{_libdir}/GNUstep/Frameworks/%{_name}.framework/

%post -n lib%{_name} -p /sbin/ldconfig

%postun -n lib%{_name} -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc Documentation/* ChangeLog*
%{_libdir}/GNUstep
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Headers
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/%{_name}
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/lib%{_name}.so
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/Current
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so.*
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/Headers
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/%{_name}
%exclude %{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so

%files -n lib%{_name}
%defattr(-,root,root)
%{_libdir}/lib%{_name}.so.*
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so.*

%files -n lib%{_name}-devel
%defattr(-,root,root)
%{_includedir}/%{_name}
%{_libdir}/lib%{_name}.so
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Headers
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/%{_name}
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/lib%{_name}.so
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/Current
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/Headers
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/%{_name}
%{_libdir}/GNUstep/Frameworks/%{_name}.framework/Versions/%{_ver}/lib%{_name}.so

%changelog
openSUSE Build Service is sponsored by