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: 1.9.2.20170424.0d95a90
Release: 0
Summary: Yerase's TNEF Stream Reader
License: GPL-2.0+
Group: System/Base
Source: %{name}-%{version}.tar.xz
Patch0: ytnef.patch
Url: https://github.com/Yeraze/ytnef
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%patch0 -p1
%build
./autogen.sh
%configure \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot} -ls
find %{buildroot} -name "*.la" -print -delete
%post -n libytnef0 -p /sbin/ldconfig
%postun -n libytnef0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.md
%{_bindir}/*
%files -n libytnef0
%defattr(-,root,root)
%doc COPYING
%{_libdir}/*.so.*
%files -n libytnef-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog