File mingw32-w32pth.spec of Package mingw32-w32pth
#
# spec file for package mingw32-w32pth
#
# 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: mingw32-w32pth
Version: 2.0.4
Release: 0
Summary: An emulation of PTH for MS Windows
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://www.gnupg.org
Source0: ftp://ftp.g10code.com/g10code/w32pth/w32pth-%{version}.tar.bz2
Patch0: w32pth-2.0.4-mingw.patch
Patch1: w32pth-2.0.4-deffile.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
%_mingw32_package_header_debug
BuildArch: noarch
%description
This is an emulation of GNU PTH for MS Windows (W32). It works by blocking all
threads when outside of one of the pth functions and using standard W32 threads
and syncronization mechanisms to emulate the behaviour of PTH.
It is currently limited to what GnuPG 2.0 requires.
%package -n mingw32-libw32pth0
Summary: An emulation of PTH for MS Windows
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libw32pth0
This is an emulation of GNU PTH for MS Windows (W32). It works by blocking all
threads when outside of one of the pth functions and using standard W32 threads
and syncronization mechanisms to emulate the behaviour of PTH.
It is currently limited to what GnuPG 2.0 requires.
%package devel
Summary: An emulation of PTH for MS Windows (development tools)
Group: Development/Libraries/C and C++
%description devel
This is an emulation of GNU PTH for MS Windows (W32). It works by blocking all
threads when outside of one of the pth functions and using standard W32 threads
and syncronization mechanisms to emulate the behaviour of PTH.
It is currently limited to what GnuPG 2.0 requires.
%_mingw32_debug_package
%prep
%setup -q -n w32pth-%{version}
%patch -P 0 -p1 -b .mingw
%patch -P 1 -p1 -b .deffile
%build
NOCONFIGURE=indeed AUTOMAKE=automake gnome-autogen.sh
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--enable-shared --disable-static
%{_mingw32_make} RC=%{_mingw32_windres} %{?_smp_mflags} || %{_mingw32_make} RC=%{_mingw32_windres}
%install
make DESTDIR=%{buildroot} install
%files -n mingw32-libw32pth0
%defattr(-,root,root)
%{_mingw32_bindir}/libw32pth-0.dll
%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/pth-config
%{_mingw32_libdir}/libw32pth.dll.a
%{_mingw32_libdir}/libw32pth.def
%{_mingw32_includedir}/pth.h
%changelog