File ytnef.spec of Package ytnef

#
# spec file for package ytnef
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           ytnef
Version:        1.9.3
Release:        0
Summary:        Yerase's TNEF Stream Reader
License:        GPL-2.0-or-later
Group:          System/Base
URL:            https://github.com/Yeraze/ytnef
Source:         %{name}-%{version}.tar.xz
Patch0:         ytnef.patch
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
%setup -q
%patch -P 0 -p1

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

%install
%make_install
find %{buildroot} -ls
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libytnef0 -p /sbin/ldconfig
%postun -n libytnef0 -p /sbin/ldconfig

%files
%license COPYING
%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