File mingw64-libytnef.spec of Package mingw64-libytnef
#
# spec file for package mingw64-libytnef
#
# Copyright (c) 2014 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/
#
Name: mingw64-libytnef
Version: 1.5
Release: 0
Summary: MinGW Windows port of TNEF Stream Parser Library
License: GPL-2.0-only
Group: Development/Libraries/C and C++
Url: http://ytnef.sourceforge.net/
Source0: http://downloads.sourceforge.net/ytnef/libytnef-1.5.tar.gz
Source1000: %{name}-%{version}-rpmlintrc
Patch0: libytnef-1.5-dll.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%description
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%package -n mingw64-libytnef0
Summary: MinGW Windows port of TNEF Stream Parser Library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libytnef0
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%package devel
Summary: MinGW Windows port of TNEF Stream Parser Library (devel)
Group: Development/Libraries/C and C++
%description devel
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%_mingw64_debug_package
%prep
%setup -q -n libytnef-%{version}
%patch -P 0 -p1 -b .dll
%build
autoreconf -f -i
%{_mingw64_configure} \
--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libytnef0
%defattr(-,root,root)
%{_mingw64_bindir}/libytnef-0.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libytnef
%{_mingw64_libdir}/libytnef.dll.a
%changelog