File ytnef.spec of Package ytnef

#
# spec file for package ytnef
#
# Copyright (c) 2017 SUSE LINUX 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/
#


Name:           ytnef
Version:        0
Release:        0
Summary:        Yerase's TNEF Stream Reader
License:        GPL-2.0+
Group:          System/Base  
Patch0:         ytnef.patch
Url:            https://github.com/Yeraze/ytnef
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig

%description
Yerase's TNEF Stream Reader.  Can take a TNEF Stream (winmail.dat) sent from
Microsoft Outlook (or similar products) and extract the attachments, including
construction of Contact Cards & Calendar entries.

%package -n libytnef0
Summary:        Yerase's TNEF Stream Reader
Group:          System/Base  
Obsoletes:      libytnef0 < %version-%release
Obsoletes:      libytnef0 > %version-%release

%description -n libytnef0
Yerase's TNEF Stream Reader.  Can take a TNEF Stream (winmail.dat) sent from
Microsoft Outlook (or similar products) and extract the attachments, including
construction of Contact Cards & Calendar entries.

%package -n libytnef-devel
Summary:        Yerase's TNEF Stream Reader
Group:          Development/Libraries/Other
Requires:       libytnef0 = %version-%release

%description -n libytnef-devel
Claws Mail (previously known as Sylpheed-Claws) is a lightweight and
highly configurable email client and news reader based on the GTK+ GUI
toolkit, it runs on the X Window System.

%prep
rm -rf %_builddir/%name-%version
mv %_sourcedir/%name-%version %_builddir/%name-%version
%setup -c -T -D
pushd '.'
%patch -P 0 -p1
popd

%build
./autogen.sh
%configure \
	--disable-static
%make_build

%install
%make_install
find %buildroot -ls
find %buildroot -name "*.la" -print -delete

%post -n libytnef0 -p /sbin/ldconfig

%postun -n libytnef0 -p /sbin/ldconfig

%files
%doc README.md
%_bindir/*

%files -n libytnef0
%license COPYING
%_libdir/*.so.*

%files -n libytnef-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*

%changelog
openSUSE Build Service is sponsored by